/[gentoo-x86]/net-irc/ngircd/ngircd-17.1.ebuild
Gentoo

Contents of /net-irc/ngircd/ngircd-17.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Apr 29 20:23:36 2015 UTC (16 months, 4 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/ngircd/ngircd-17.1.ebuild,v 1.6 2015/02/22 09:16:18 mgorny Exp $
4
5 EAPI="5"
6
7 inherit autotools-utils eutils user
8
9 DESCRIPTION="A IRC server written from scratch"
10 HOMEPAGE="http://ngircd.barton.de/"
11 SRC_URI="ftp://ngircd.barton.de/pub/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 x86 ~x64-macos"
16 IUSE="debug gnutls ident ipv6 pam ssl tcpd zlib"
17
18 DEPEND="
19 >=sys-apps/sed-4
20 ident? ( net-libs/libident )
21 ssl? (
22 gnutls? ( net-libs/gnutls )
23 !gnutls? ( dev-libs/openssl )
24 )
25 pam? ( virtual/pam )
26 tcpd? ( sys-apps/tcp-wrappers )
27 zlib? ( sys-libs/zlib )
28 "
29 RDEPEND="${DEPEND}"
30
31 RESTRICT="test"
32
33 src_configure() {
34 if ! use prefix; then
35 sed -i \
36 -e "s:;ServerUID = 65534:ServerUID = ngircd:" \
37 -e "s:;ServerGID = 65534:ServerGID = nogroup:" \
38 doc/sample-ngircd.conf.tmpl || die
39 fi
40
41 local myeconfargs=(
42 --docdir="${EPREFIX}"/usr/share/doc/${PF}
43 --sysconfdir="${EPREFIX}"/etc/ngircd
44 --without-zeroconf
45 $(use_enable ipv6)
46 $(use_with zlib)
47 $(use_with tcpd tcp-wrappers)
48 $(use_with ident)
49 $(use_with pam)
50 $(use_enable debug)
51 $(use_enable debug sniffer)
52 )
53
54 if use ssl; then
55 myeconfargs+=(
56 $(use_with !gnutls openssl)
57 $(use_with gnutls)
58 )
59 else
60 myeconfargs+=(
61 --without-gnutls
62 --without-ssl
63 )
64 fi
65
66 autotools-utils_src_configure
67 }
68
69 src_install() {
70 autotools-utils_src_install
71
72 newinitd "${FILESDIR}"/ngircd.init.d ngircd
73 }
74
75 pkg_postinst() {
76 if ! use prefix; then
77 enewuser ngircd
78 chown ngircd "${ROOT}"/etc/ngircd/ngircd.conf
79 fi
80 }

  ViewVC Help
Powered by ViewVC 1.1.20