diff options
author | Otavio Rodolfo Piske <angusyoung@gentoo.org> | 2005-10-04 14:56:36 +0000 |
---|---|---|
committer | Otavio Rodolfo Piske <angusyoung@gentoo.org> | 2005-10-04 14:56:36 +0000 |
commit | 2f6e840a826cb00ed9b2b00384101f34db033a94 (patch) | |
tree | 0181a20c45e8893328507798a8a977593007a180 /net-firewall/tuxfrw | |
parent | version bumpversion bump (diff) | |
download | historical-2f6e840a826cb00ed9b2b00384101f34db033a94.tar.gz historical-2f6e840a826cb00ed9b2b00384101f34db033a94.tar.bz2 historical-2f6e840a826cb00ed9b2b00384101f34db033a94.zip |
Added ebuild for tuxfrw 2.61. Added some checks on pkg_setup()Ã, also made src_install() a bit clearer. Removed useless src_compile().
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-firewall/tuxfrw')
-rw-r--r-- | net-firewall/tuxfrw/ChangeLog | 8 | ||||
-rw-r--r-- | net-firewall/tuxfrw/Manifest | 6 | ||||
-rw-r--r-- | net-firewall/tuxfrw/files/digest-tuxfrw-2.61 | 1 | ||||
-rw-r--r-- | net-firewall/tuxfrw/files/tuxfrw | 4 | ||||
-rw-r--r-- | net-firewall/tuxfrw/tuxfrw-2.61.ebuild | 76 |
5 files changed, 90 insertions, 5 deletions
diff --git a/net-firewall/tuxfrw/ChangeLog b/net-firewall/tuxfrw/ChangeLog index 31144c68570d..fa33d31496d1 100644 --- a/net-firewall/tuxfrw/ChangeLog +++ b/net-firewall/tuxfrw/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-firewall/tuxfrw # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.5 2005/09/25 12:52:27 angusyoung Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.6 2005/10/04 14:56:36 angusyoung Exp $ + +*tuxfrw-2.61 (04 Oct 2005) + + 04 Oct 2005; Otavio R. Piske <angusyoung@gentoo.org> files/tuxfrw, + +tuxfrw-2.61.ebuild: + Added tuxfrw-2.61. 25 Sep 2005; <otavio@gentoo.org> tuxfrw-2.58-r1.ebuild: Converted ebuild to linux-info. diff --git a/net-firewall/tuxfrw/Manifest b/net-firewall/tuxfrw/Manifest index 3ed7c812f97e..0c6b8c569bfe 100644 --- a/net-firewall/tuxfrw/Manifest +++ b/net-firewall/tuxfrw/Manifest @@ -1,5 +1,7 @@ MD5 eb9874965412ff5b2638b4bdd22a1f4f tuxfrw-2.58-r1.ebuild 2065 -MD5 44a7a36d9382201af4c8f14514e0c2ba ChangeLog 1053 +MD5 06da362850f6b1ef10239bba28fd3954 tuxfrw-2.61.ebuild 2295 +MD5 3ea93a42e7a68b385b327efc7d1ea37f ChangeLog 1195 MD5 ac3074aa551da20b321f380c591f0847 metadata.xml 256 +MD5 23fbd6f1103e398f2621bcbb4ff6a0df files/digest-tuxfrw-2.61 62 MD5 ed2c6cea0dbd3b533794fb7f3e43f3d0 files/digest-tuxfrw-2.58-r1 62 -MD5 232c3594bfcdf37631020d2a52bcba00 files/tuxfrw 774 +MD5 d9daedf197d9508efc355eb97e7d614d files/tuxfrw 766 diff --git a/net-firewall/tuxfrw/files/digest-tuxfrw-2.61 b/net-firewall/tuxfrw/files/digest-tuxfrw-2.61 new file mode 100644 index 000000000000..b167a898aecb --- /dev/null +++ b/net-firewall/tuxfrw/files/digest-tuxfrw-2.61 @@ -0,0 +1 @@ +MD5 3e146e61a6c16ebe9323fdf490f3037b tuxfrw-2.61.tar.gz 37123 diff --git a/net-firewall/tuxfrw/files/tuxfrw b/net-firewall/tuxfrw/files/tuxfrw index 05c7b402ac0e..727c1cbfe6cb 100644 --- a/net-firewall/tuxfrw/files/tuxfrw +++ b/net-firewall/tuxfrw/files/tuxfrw @@ -9,13 +9,13 @@ depend() { provide firewall } -svc_start() { +start() { ebegin "Starting firewall" /usr/sbin/tuxfrw start eend $? } -svc_stop() { +stop() { ebegin "Stopping firewall" /usr/sbin/tuxfrw stop eend $? diff --git a/net-firewall/tuxfrw/tuxfrw-2.61.ebuild b/net-firewall/tuxfrw/tuxfrw-2.61.ebuild new file mode 100644 index 000000000000..5a50352fbdc5 --- /dev/null +++ b/net-firewall/tuxfrw/tuxfrw-2.61.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/tuxfrw-2.61.ebuild,v 1.1 2005/10/04 14:56:36 angusyoung 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="~x86" +IUSE="" +DEPEND="net-firewall/iptables" + +pkg_setup() { + #check for kernel version (2.4.23 or higher) + get_version + + if [ ${KV_MINOR} -eq 4 ] && [ ${KV_PATCH} -lt 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 + + einfo "Now checking your kernel configuration. If, for some reason, it" + einfo "fails, you can get a list of modules needed here:" + einfo "http://dev.gentoo.org/~angusyoung/docs/devel/tuxfrw/mod.txt" + CONFIG_CHECK="NETFILTER IP_NF_CONNTRACK IP_NF_FTP 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_NAT IP_NF_MANGLE" + CONFIG_CHECK="${CONFIG_CHECK} IP_NF_TARGET_MASQUERADE IP_NF_NAT_FTP" + 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 + doins tuxfrw.conf + + exeopts -m700 + exeinto /etc/init.d/ + doexe ${FILESDIR}/tuxfrw + + dosbin ${S}/tuxfrw + + dodoc ${S}/AUTHORS ${S}/COPYING ${S}/CREDITS ${S}/ChangeLog ${S}/INSTALL + dodoc ${S}/README ${S}/VERSION ${S}/manual/${PN}-manual-${MANUAL_PV}-en.txt +} + +pkg_postinst() { + einfo "Configure /etc/tuxfrw/tuxfrw.conf manually" + einfo "To start: /etc/init.d/tuxfrw start " + einfo "To load on boot: rc-update add tuxfrw default" +} |