summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-05-12 14:45:44 +0000
committerCédric Krier <cedk@gentoo.org>2007-05-12 14:45:44 +0000
commit64fbea79ce9eeff7e783de553d0ac64d39d59c6b (patch)
tree084dd93f55529dae1d0fe8b9f5ecf7b65db48fb9 /net-firewall/tuxfrw
parentVersion bump (diff)
downloadgentoo-2-64fbea79ce9eeff7e783de553d0ac64d39d59c6b.tar.gz
gentoo-2-64fbea79ce9eeff7e783de553d0ac64d39d59c6b.tar.bz2
gentoo-2-64fbea79ce9eeff7e783de553d0ac64d39d59c6b.zip
net-firewall/tuxfrw: Version bump and fix bug #175296
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-firewall/tuxfrw')
-rw-r--r--net-firewall/tuxfrw/ChangeLog7
-rw-r--r--net-firewall/tuxfrw/files/digest-tuxfrw-2.623
-rw-r--r--net-firewall/tuxfrw/metadata.xml1
-rw-r--r--net-firewall/tuxfrw/tuxfrw-2.62.ebuild75
4 files changed, 85 insertions, 1 deletions
diff --git a/net-firewall/tuxfrw/ChangeLog b/net-firewall/tuxfrw/ChangeLog
index 881ce7fe65b4..9097a0901b9f 100644
--- a/net-firewall/tuxfrw/ChangeLog
+++ b/net-firewall/tuxfrw/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-firewall/tuxfrw
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.11 2007/05/06 10:04:16 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.12 2007/05/12 14:45:44 cedk Exp $
+
+*tuxfrw-2.62 (12 May 2007)
+
+ 12 May 2007; Cedric Krier <cedk@gentoo.org> +tuxfrw-2.62.ebuild:
+ Version bump and fix bug #175296
06 May 2007; Marius Mauch <genone@gentoo.org> tuxfrw-2.61.ebuild:
Replacing einfo with elog
diff --git a/net-firewall/tuxfrw/files/digest-tuxfrw-2.62 b/net-firewall/tuxfrw/files/digest-tuxfrw-2.62
new file mode 100644
index 000000000000..739fb2a8c28d
--- /dev/null
+++ b/net-firewall/tuxfrw/files/digest-tuxfrw-2.62
@@ -0,0 +1,3 @@
+MD5 c077798e68027f8f50d6c36aa94fb3bc tuxfrw-2.62.tar.gz 37156
+RMD160 b46502d236647be1057a380c85cd65d6dde5c111 tuxfrw-2.62.tar.gz 37156
+SHA256 e4052dfd132fc18f939ef166d55ac695365fb811e059f6fd288d4306d6cbad33 tuxfrw-2.62.tar.gz 37156
diff --git a/net-firewall/tuxfrw/metadata.xml b/net-firewall/tuxfrw/metadata.xml
index 03aa50bab7e3..45af64335706 100644
--- a/net-firewall/tuxfrw/metadata.xml
+++ b/net-firewall/tuxfrw/metadata.xml
@@ -2,4 +2,5 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>netmon</herd>
+<longdescription>a complete firewall automation tool for GNU/Linux</longdescription>
</pkgmetadata>
diff --git a/net-firewall/tuxfrw/tuxfrw-2.62.ebuild b/net-firewall/tuxfrw/tuxfrw-2.62.ebuild
new file mode 100644
index 000000000000..ecef88bf9bc8
--- /dev/null
+++ b/net-firewall/tuxfrw/tuxfrw-2.62.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/tuxfrw-2.62.ebuild,v 1.1 2007/05/12 14:45:44 cedk Exp $
+
+inherit eutils linux-info
+
+# The version of the manual.
+MANUAL_PV="2.60"
+
+DESCRIPTION="TuxFrw is a complete firewall automation tool for GNU/Linux."
+HOMEPAGE="http://tuxfrw.sf.net/"
+SRC_URI="mirror://sourceforge/tuxfrw/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+DEPEND="net-firewall/iptables"
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 4 23 ; then
+ eerror "${P} requires a 2.4 kernel version of at least 2.4.23."
+ eerror "You must upgrade your kernel."
+ die "Kernel version not supported"
+ fi
+
+ CONFIG_CHECK="NETFILTER IP_NF_TARGET_REDIRECT"
+ CONFIG_CHECK="${CONFIG_CHECK} IP_NF_IPTABLES IP_NF_MATCH_TOS IP_NF_FILTER"
+ CONFIG_CHECK="${CONFIG_CHECK} IP_NF_TARGET_REJECT IP_NF_TARGET_REJECT"
+ CONFIG_CHECK="${CONFIG_CHECK} IP_NF_TARGET_LOG IP_NF_MANGLE"
+ CONFIG_CHECK="${CONFIG_CHECK} IP_NF_TARGET_MASQUERADE"
+
+ if kernel_is lt 2 6 20; then
+ CONFIG_CHECK="${CONFIG_CHECK} IP_NF_CONNTRACK IP_NF_FTP IP_NF_NAT IP_NF_NAT_FTP"
+ else
+ CONFIG_CHECK="${CONFIG_CHECK} NF_CONNTRACK NF_CONNTRACK_FTP NF_NAT NF_NAT_FTP"
+ fi
+ check_extra_config
+}
+
+src_install() {
+ diropts -m0700
+ dodir /etc/tuxfrw
+ dodir /etc/tuxfrw/rules
+
+ insinto /etc/tuxfrw/
+ insopts -m0600
+ CONF_MOD="tf_PIGMEAT.mod tf_KERNEL.mod tf_BASE.mod tuxfrw.conf"
+ for conf_mod in ${CONF_MOD}; do
+ doins ${conf_mod}
+ done
+
+
+ insinto /etc/tuxfrw/rules
+ insopts -m0600
+ CONF_RULES="tf_*-*.mod tf_INPUT.mod tf_OUTPUT.mod tf_FORWARD.mod"
+ CONF_RULES="${CONF_RULES} tf_MANGLE.mod"
+ for conf_rule in ${CONF_RULES} ; do
+ doins ${conf_rule}
+ done
+
+ doinitd "${FILESDIR}"/tuxfrw
+
+ dosbin tuxfrw
+
+ dodoc AUTHORS CREDITS ChangeLog README VERSION
+ dodoc manual/${PN}-manual-${MANUAL_PV}-en.txt
+}
+
+pkg_postinst() {
+ elog "Configure /etc/tuxfrw/tuxfrw.conf manually"
+ elog "To start: /etc/init.d/tuxfrw start "
+ elog "To load on boot: rc-update add tuxfrw default"
+}