/[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.5 - (show annotations) (download)
Mon Mar 10 10:58:31 2014 UTC (6 months, 1 week ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -2 lines
Remove virtual/libc dependency.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2014 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.4 2014/01/08 06:34:18 vapier Exp $
4
5 EAPI=4
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://ftp.berlios.de/pub/${PN}/${P}.tar.gz
12 ftp://ngircd.barton.de/pub/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 x86 ~x64-macos"
17 IUSE="debug gnutls ident ipv6 pam ssl tcpd zlib"
18
19 DEPEND="
20 >=sys-apps/sed-4
21 ident? ( net-libs/libident )
22 ssl? (
23 gnutls? ( net-libs/gnutls )
24 !gnutls? ( dev-libs/openssl )
25 )
26 pam? ( virtual/pam )
27 tcpd? ( sys-apps/tcp-wrappers )
28 zlib? ( sys-libs/zlib )
29 "
30 RDEPEND="${DEPEND}"
31
32 RESTRICT="test"
33
34 src_configure() {
35 if ! use prefix; then
36 sed -i \
37 -e "s:;ServerUID = 65534:ServerUID = ngircd:" \
38 -e "s:;ServerGID = 65534:ServerGID = nogroup:" \
39 doc/sample-ngircd.conf.tmpl || die
40 fi
41
42 local myeconfargs=(
43 --docdir="${EPREFIX}"/usr/share/doc/${PF}
44 --sysconfdir="${EPREFIX}"/etc/ngircd
45 --without-zeroconf
46 $(use_enable ipv6)
47 $(use_with zlib)
48 $(use_with tcpd tcp-wrappers)
49 $(use_with ident)
50 $(use_with pam)
51 $(use_enable debug)
52 $(use_enable debug sniffer)
53 )
54
55 if use ssl; then
56 myeconfargs+=(
57 $(use_with !gnutls openssl)
58 $(use_with gnutls)
59 )
60 else
61 myeconfargs+=(
62 --without-gnutls
63 --without-ssl
64 )
65 fi
66
67 autotools-utils_src_configure
68 }
69
70 src_install() {
71 autotools-utils_src_install
72
73 newinitd "${FILESDIR}"/ngircd.init.d ngircd
74 }
75
76 pkg_postinst() {
77 if ! use prefix; then
78 enewuser ngircd
79 chown ngircd "${ROOT}"/etc/ngircd/ngircd.conf
80 fi
81 }

  ViewVC Help
Powered by ViewVC 1.1.20