1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="An enterprise grade authenticating firewall based on netfilter"
8 HOMEPAGE="http://www.nufw.org/"
9 SRC_URI="http://www.nufw.org/download/${PN}/${P}-1.tar.bz2"
14 IUSE="debug gdbm ident ldap mysql pam pam_nuauth pic postgres prelude \
15 unicode nfqueue nfconntrack static"
17 DEPEND=">=dev-libs/glib-2
19 >=dev-libs/cyrus-sasl-2
22 gdbm? ( sys-libs/gdbm )
23 ident? ( net-libs/libident )
24 ldap? ( >=net-nds/openldap-2 )
25 mysql? ( dev-db/mysql )
27 pam_nuauth? ( sys-libs/pam )
28 postgres? ( dev-db/postgresql )
29 nfqueue? ( net-firewall/libnfnetlink
30 net-firewall/libnetfilter_queue )
31 nfconntrack? ( net-firewall/libnetfilter_conntrack )"
38 -e "s/nuauth-key.pem/nuauth.key/" \
39 -e "s/nuauth-cert.pem/nuauth.pem/" \
40 conf/nuauth.conf || die "sed failed"
45 $(use_enable static) \
46 $(use_enable pam_nuauth pam-nuauth) \
48 $(use_with prelude prelude-log) \
49 $(use_with mysql mysql-log) \
50 $(use_with postgres pgsql-log) \
51 $(use_with pam system-auth) \
56 $(use_with nfconntrack) \
57 $(use_with unicode utf8) \
59 --sysconfdir="/etc/nufw" \
60 --localstatedir="/var" \
62 emake || die "emake failed"
66 emake DESTDIR="${D}" install || die "emake install failed"
68 newinitd "${FILESDIR}"/nufw-init.d nufw
69 newconfd "${FILESDIR}"/nufw-conf.d nufw
71 newinitd "${FILESDIR}"/nuauth-init.d nuauth
72 newconfd "${FILESDIR}"/nuauth-conf.d nuauth
75 doins conf/nuauth.conf
78 keepdir /var/run/nuauth
80 dodoc AUTHORS ChangeLog NEWS README TODO
84 dodoc conf/*.{nufw,schema,conf,dump,xml}