summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-firewall/nufw')
-rw-r--r--net-firewall/nufw/ChangeLog7
-rw-r--r--net-firewall/nufw/Manifest32
-rw-r--r--net-firewall/nufw/files/digest-nufw-2.0.33
-rw-r--r--net-firewall/nufw/files/nuauth-conf.d5
-rw-r--r--net-firewall/nufw/files/nuauth-init.d20
-rw-r--r--net-firewall/nufw/files/nufw-2.0.3-configure.patch107
-rw-r--r--net-firewall/nufw/files/nufw-conf.d5
-rw-r--r--net-firewall/nufw/files/nufw-init.d20
-rw-r--r--net-firewall/nufw/nufw-2.0.3.ebuild69
9 files changed, 268 insertions, 0 deletions
diff --git a/net-firewall/nufw/ChangeLog b/net-firewall/nufw/ChangeLog
new file mode 100644
index 000000000..1574efe47
--- /dev/null
+++ b/net-firewall/nufw/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for net-firewall/nufw
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 28 Jun 2006; Cedric Krier <ced@ced.homedns.org> ChangeLog:
+ New Ebuild for bug 138378
+
diff --git a/net-firewall/nufw/Manifest b/net-firewall/nufw/Manifest
new file mode 100644
index 000000000..568937b6d
--- /dev/null
+++ b/net-firewall/nufw/Manifest
@@ -0,0 +1,32 @@
+AUX nuauth-conf.d 139 RMD160 b3aa3eb741649e5dc7604d1a3842f5bf3c8249e6 SHA1 80148317b437fe220ba58d3cbce14070517d7c08 SHA256 af6375dd5b70d67360836637eac365cc68708b24236c9be231ae29e93d2013b7
+MD5 fab56791ad1a3eb776de0a3a6739fe7e files/nuauth-conf.d 139
+RMD160 b3aa3eb741649e5dc7604d1a3842f5bf3c8249e6 files/nuauth-conf.d 139
+SHA256 af6375dd5b70d67360836637eac365cc68708b24236c9be231ae29e93d2013b7 files/nuauth-conf.d 139
+AUX nuauth-init.d 413 RMD160 900875a2a78cfedb362ab67b1ada36ee2811aace SHA1 fa807d6a3362eb1bd1cc24fcdae64875ea908148 SHA256 abfae772aa31489c598dc9a55b2edba9f084d333d1bd3c040a99454d05014f11
+MD5 62dfb5626b5dd591e50301c9b6fa5b45 files/nuauth-init.d 413
+RMD160 900875a2a78cfedb362ab67b1ada36ee2811aace files/nuauth-init.d 413
+SHA256 abfae772aa31489c598dc9a55b2edba9f084d333d1bd3c040a99454d05014f11 files/nuauth-init.d 413
+AUX nufw-2.0.3-configure.patch 2583 RMD160 7ce7bf80574927b33665674baa77cdf14f5c4a16 SHA1 998909192928bb1dee0be4f4ce05fc8a6db036c0 SHA256 61b2fd30d218c94a965b6adf39a1ca57270fee46810e10ccd962622516037493
+MD5 cb9b263f7902d6bbf689c3b6c8ade487 files/nufw-2.0.3-configure.patch 2583
+RMD160 7ce7bf80574927b33665674baa77cdf14f5c4a16 files/nufw-2.0.3-configure.patch 2583
+SHA256 61b2fd30d218c94a965b6adf39a1ca57270fee46810e10ccd962622516037493 files/nufw-2.0.3-configure.patch 2583
+AUX nufw-conf.d 210 RMD160 c323ca6713ec32b06623f0cea68423e380858305 SHA1 9c50a589c097e7554883f99fd1d68c6963c5141c SHA256 74c644660c0299c7918ff9790f93d5a33bb9eb94e9871dd47a22a48e91d55502
+MD5 3a9df77957ee2b827a053f607e396971 files/nufw-conf.d 210
+RMD160 c323ca6713ec32b06623f0cea68423e380858305 files/nufw-conf.d 210
+SHA256 74c644660c0299c7918ff9790f93d5a33bb9eb94e9871dd47a22a48e91d55502 files/nufw-conf.d 210
+AUX nufw-init.d 396 RMD160 6a102bc8c121915cdc2926f3e586f696c00d981c SHA1 5f54b986959de67416805e491d2734b0d6536c7b SHA256 6e8c31b66e16ac9ba25ee64533f85c4b7fd56c1114423c9f4539ed9c772eccf0
+MD5 fda07c56d230e80e96cb46b8a655ef74 files/nufw-init.d 396
+RMD160 6a102bc8c121915cdc2926f3e586f696c00d981c files/nufw-init.d 396
+SHA256 6e8c31b66e16ac9ba25ee64533f85c4b7fd56c1114423c9f4539ed9c772eccf0 files/nufw-init.d 396
+DIST nufw-2.0.3.tar.gz 976961 RMD160 47ec2bb290e5370a7dc10f27cab8b1b0f202aa47 SHA1 e68c3975e02e755ab166672caa4288060e07cf72 SHA256 89d2b16c2813e34c0efa11070f1f084254f09d09ed136889289a252e3de559cd
+EBUILD nufw-2.0.3.ebuild 1499 RMD160 5e03dd56489465417cd2aa0381792b5abd0c9642 SHA1 0f1fce53c59236568289555559c0b8daead61bf2 SHA256 3b75a031e50e0048aea8fe5c8dafcb69d5124c0b1936d5b2eea7b30a46cca8a5
+MD5 41772ad045f3772d6377b55237e442ef nufw-2.0.3.ebuild 1499
+RMD160 5e03dd56489465417cd2aa0381792b5abd0c9642 nufw-2.0.3.ebuild 1499
+SHA256 3b75a031e50e0048aea8fe5c8dafcb69d5124c0b1936d5b2eea7b30a46cca8a5 nufw-2.0.3.ebuild 1499
+MISC ChangeLog 208 RMD160 d521291eb88fd2e60543f8f48ed035ca83544ee4 SHA1 38a20fc70a419dc638d972c825570c2cd32d85ab SHA256 0540fbab1a86024f89c850e6367017c2fc2780b715bd25195cf1ef4363aea68a
+MD5 dc42d040068ceb4998526719a8e8e815 ChangeLog 208
+RMD160 d521291eb88fd2e60543f8f48ed035ca83544ee4 ChangeLog 208
+SHA256 0540fbab1a86024f89c850e6367017c2fc2780b715bd25195cf1ef4363aea68a ChangeLog 208
+MD5 7a8bf2dcab133fa20ebf14ab5c6a5cb0 files/digest-nufw-2.0.3 232
+RMD160 6db4b0c6edf2ab8ab0d70c01cd761959e1520a56 files/digest-nufw-2.0.3 232
+SHA256 640c0e900b8436399db9b77a808ab3cad703b4ab5a0aa1f2ba41a27e69fa261b files/digest-nufw-2.0.3 232
diff --git a/net-firewall/nufw/files/digest-nufw-2.0.3 b/net-firewall/nufw/files/digest-nufw-2.0.3
new file mode 100644
index 000000000..20a6ad67f
--- /dev/null
+++ b/net-firewall/nufw/files/digest-nufw-2.0.3
@@ -0,0 +1,3 @@
+MD5 7331d902fa6fa6a0317d02c423171a09 nufw-2.0.3.tar.gz 976961
+RMD160 47ec2bb290e5370a7dc10f27cab8b1b0f202aa47 nufw-2.0.3.tar.gz 976961
+SHA256 89d2b16c2813e34c0efa11070f1f084254f09d09ed136889289a252e3de559cd nufw-2.0.3.tar.gz 976961
diff --git a/net-firewall/nufw/files/nuauth-conf.d b/net-firewall/nufw/files/nuauth-conf.d
new file mode 100644
index 000000000..1e4b079f3
--- /dev/null
+++ b/net-firewall/nufw/files/nuauth-conf.d
@@ -0,0 +1,5 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NUAUTH_OPTIONS=""
diff --git a/net-firewall/nufw/files/nuauth-init.d b/net-firewall/nufw/files/nuauth-init.d
new file mode 100644
index 000000000..1e73faee2
--- /dev/null
+++ b/net-firewall/nufw/files/nuauth-init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ before net
+}
+
+start() {
+ ebegin "Starting nuauth"
+ start-stop-daemon --start --quiet --exec /usr/sbin/nuauth -- -D ${NUAUTH_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nuauth"
+ start-stop-daemon --stop --quiet --pidfile /var/run/nuauth/nuauth.pid
+ eend $?
+}
diff --git a/net-firewall/nufw/files/nufw-2.0.3-configure.patch b/net-firewall/nufw/files/nufw-2.0.3-configure.patch
new file mode 100644
index 000000000..18d2ea036
--- /dev/null
+++ b/net-firewall/nufw/files/nufw-2.0.3-configure.patch
@@ -0,0 +1,107 @@
+diff -ur nufw-2.0.3~/configure nufw-2.0.3/configure
+--- nufw-2.0.3~/configure 2006-06-28 01:34:15.000000000 +0200
++++ nufw-2.0.3/configure 2006-06-28 01:39:09.000000000 +0200
+@@ -20041,59 +20041,59 @@
+ # Check whether --with-prelude-log or --without-prelude-log was given.
+ if test "${with_prelude_log+set}" = set; then
+ withval="$with_prelude_log"
+- enable_prelude_log="yes"
++ enable_prelude_log=$withval
+ else
+- enable_prelude_log=""
++ enable_prelude_log="no"
+ fi;
+
+ # Check whether --with-mysql-log or --without-mysql-log was given.
+ if test "${with_mysql_log+set}" = set; then
+ withval="$with_mysql_log"
+- enable_mysql_log="yes"
++ enable_mysql_log=$withval
+ else
+- enable_mysql_log=""
++ enable_mysql_log="no"
+ fi;
+
+ # Check whether --with-pgsql-log or --without-pgsql-log was given.
+ if test "${with_pgsql_log+set}" = set; then
+ withval="$with_pgsql_log"
+- enable_pgsql_log="yes"
++ enable_pgsql_log=$withval
+ else
+- enable_pgsql_log=""
++ enable_pgsql_log="no"
+ fi;
+
+
+ # Check whether --with-system-auth or --without-system-auth was given.
+ if test "${with_system_auth+set}" = set; then
+ withval="$with_system_auth"
+- enable_system_auth="yes"
++ enable_system_auth=$withval
+ else
+- enable_system_auth=""
++ enable_system_auth="no"
+ fi;
+
+
+ # Check whether --with-ldap or --without-ldap was given.
+ if test "${with_ldap+set}" = set; then
+ withval="$with_ldap"
+- ldap="yes"
++ ldap=$withval
+ else
+- ldap=""
++ ldap="no"
+ fi;
+
+ # Check whether --with-gdbm or --without-gdbm was given.
+ if test "${with_gdbm+set}" = set; then
+ withval="$with_gdbm"
+- gdbm="yes"
++ gdbm=$withval
+ else
+- gdbm=""
++ gdbm="no"
+ fi;
+
+ # Check whether --with-ident or --without-ident was given.
+ if test "${with_ident+set}" = set; then
+ withval="$with_ident"
+- ident="yes"
++ ident=$withval
+ else
+- ident=""
++ ident="no"
+ fi;
+
+
+@@ -20101,9 +20101,9 @@
+ # Check whether --with-nfqueue or --without-nfqueue was given.
+ if test "${with_nfqueue+set}" = set; then
+ withval="$with_nfqueue"
+- use_nfqueue="yes"
++ use_nfqueue=$withval
+ else
+- use_nfqueue=""
++ use_nfqueue="no"
+ fi;
+
+
+@@ -20121,7 +20121,7 @@
+ # Check whether --with-fixedtimeout or --without-fixedtimeout was given.
+ if test "${with_fixedtimeout+set}" = set; then
+ withval="$with_fixedtimeout"
+- have_conntrack_fixedtimeout="yes"
++ have_conntrack_fixedtimeout=${withval}
+ fi;
+
+
+@@ -20130,7 +20130,7 @@
+ enableval="$enable_debug"
+ debug=$enableval
+ else
+- debug=""
++ debug="no"
+ fi;
+ # Check whether --enable-nufw or --disable-nufw was given.
+ if test "${enable_nufw+set}" = set; then
diff --git a/net-firewall/nufw/files/nufw-conf.d b/net-firewall/nufw/files/nufw-conf.d
new file mode 100644
index 000000000..07d0c127c
--- /dev/null
+++ b/net-firewall/nufw/files/nufw-conf.d
@@ -0,0 +1,5 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NUFW_OPTIONS="-k /etc/nufw/nufw-key.pem -c /etc/nufw/nufw-cert.pem -d 127.0.0.1 -p 4129"
diff --git a/net-firewall/nufw/files/nufw-init.d b/net-firewall/nufw/files/nufw-init.d
new file mode 100644
index 000000000..6379eb375
--- /dev/null
+++ b/net-firewall/nufw/files/nufw-init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ before net
+}
+
+start() {
+ ebegin "Starting nufw"
+ start-stop-daemon --start --quiet --exec /usr/sbin/nufw -- -D ${NUFW_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nufw"
+ start-stop-daemon --stop --quiet --pidfile /var/run/nufw.pid
+ eend $?
+}
diff --git a/net-firewall/nufw/nufw-2.0.3.ebuild b/net-firewall/nufw/nufw-2.0.3.ebuild
new file mode 100644
index 000000000..47f85d1c8
--- /dev/null
+++ b/net-firewall/nufw/nufw-2.0.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="NuFW is an authenticating gateway"
+HOMEPAGE="http://www.nufw.org/"
+SRC_URI="http://www.nufw.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="prelude postgres mysql ldap gdbm pam"
+
+DEPEND=">=dev-libs/glib-2
+ net-firewall/iptables
+ >=net-libs/gnutls-1.1
+ >=dev-libs/cyrus-sasl-2
+ mysql? ( dev-db/mysql )
+ postgres? ( dev-db/postgresql )
+ ldap? ( >=net-nds/openldap-2 )
+ gdbm? ( sys-libs/gdbm )"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-configure.patch"
+}
+
+src_compile() {
+ econf \
+ $(use_with prelude prelude-log) \
+ $(use_with postgres pgsql-log) \
+ $(use_with mysql mysql-log) \
+ $(use_with ldap) \
+ $(use_with gdbm) \
+ $(use_with pam system-auth) \
+ --sysconfdir="/etc/nufw" \
+ --localstatedir="/var" \
+ --disable-debug \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ newinitd ${FILESDIR}/nufw-init.d nufw
+ newconfd ${FILESDIR}/nufw-conf.d nufw
+ newinitd ${FILESDIR}/nuauth-init.d nuauth
+ newconfd ${FILESDIR}/nuauth-conf.d nuauth
+
+ insinto /etc/nufw
+ doins conf/nuauth.conf
+
+ keepdir /var/run/nuauth
+
+ dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
+ docinto doc
+ dodoc doc/*
+ docinto doc/modules
+ dodoc doc/modules/*
+ docinto scripts
+ dodoc scripts/*
+ docinto conf
+ dodoc conf/*
+}