diff options
author | Otavio Rodolfo Piske <angusyoung@gentoo.org> | 2005-01-24 22:23:00 +0000 |
---|---|---|
committer | Otavio Rodolfo Piske <angusyoung@gentoo.org> | 2005-01-24 22:23:00 +0000 |
commit | 2363338f1757b7c5cf46b6608f92fdc7c38bc24b (patch) | |
tree | e7cac96d1e957d369336181984f75ae5c73c4b7d /net-firewall/tuxfrw | |
parent | added server jvm directory to ADDLDPATH. see bug #74589 (diff) | |
download | gentoo-2-2363338f1757b7c5cf46b6608f92fdc7c38bc24b.tar.gz gentoo-2-2363338f1757b7c5cf46b6608f92fdc7c38bc24b.tar.bz2 gentoo-2-2363338f1757b7c5cf46b6608f92fdc7c38bc24b.zip |
Initial release of TuxFrw, thus closing bug #51690.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'net-firewall/tuxfrw')
-rw-r--r-- | net-firewall/tuxfrw/ChangeLog | 13 | ||||
-rw-r--r-- | net-firewall/tuxfrw/Manifest | 5 | ||||
-rw-r--r-- | net-firewall/tuxfrw/files/digest-tuxfrw-2.58 | 1 | ||||
-rw-r--r-- | net-firewall/tuxfrw/files/tuxfrw | 46 | ||||
-rw-r--r-- | net-firewall/tuxfrw/metadata.xml | 9 | ||||
-rw-r--r-- | net-firewall/tuxfrw/tuxfrw-2.58.ebuild | 74 |
6 files changed, 148 insertions, 0 deletions
diff --git a/net-firewall/tuxfrw/ChangeLog b/net-firewall/tuxfrw/ChangeLog new file mode 100644 index 000000000000..448566844bd2 --- /dev/null +++ b/net-firewall/tuxfrw/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-firewall/tuxfirewall +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.1 2005/01/24 22:23:00 angusyoung Exp $ + +*tuxfrw-2.58 (24 Jan 2005) + + 24 Jan 2005; Otavio R. Piske <angusyoung@gentoo.org> +metadata.xml, + +files/tuxfrw, +tuxfrw-2.58.ebuild: + Ebuild for tuxfrw 2.58 (initial release). Ebuild originally submitted by + scootersmk <scootersmk@chartertn.net>. Init script originally submitted by + Enderson Tadeu S. Maia <enderson@gentoo.org>. Init script patch submitted by + TuxFrw creator, Marcelo Gondim <gondim@databras.com.br>. + diff --git a/net-firewall/tuxfrw/Manifest b/net-firewall/tuxfrw/Manifest new file mode 100644 index 000000000000..c5cb0be473f1 --- /dev/null +++ b/net-firewall/tuxfrw/Manifest @@ -0,0 +1,5 @@ +MD5 0869618ff4896c52c845d4c18b926f67 tuxfrw-2.58.ebuild 1606 +MD5 4cc1ac67ffcbe3c0926942081ca5c846 ChangeLog 125 +MD5 ac3074aa551da20b321f380c591f0847 metadata.xml 256 +MD5 ed2c6cea0dbd3b533794fb7f3e43f3d0 files/digest-tuxfrw-2.58 62 +MD5 232c3594bfcdf37631020d2a52bcba00 files/tuxfrw 774 diff --git a/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 b/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 new file mode 100644 index 000000000000..9fd061836488 --- /dev/null +++ b/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 @@ -0,0 +1 @@ +MD5 780e8671fdbd0e443c3290cc97052692 tuxfrw-2.58.tar.gz 36193 diff --git a/net-firewall/tuxfrw/files/tuxfrw b/net-firewall/tuxfrw/files/tuxfrw new file mode 100644 index 000000000000..05c7b402ac0e --- /dev/null +++ b/net-firewall/tuxfrw/files/tuxfrw @@ -0,0 +1,46 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +opts="start stop status restart natopen panic" + +depend() { + need net + provide firewall +} + +svc_start() { + ebegin "Starting firewall" + /usr/sbin/tuxfrw start + eend $? +} + +svc_stop() { + ebegin "Stopping firewall" + /usr/sbin/tuxfrw stop + eend $? +} + +status() { + ebegin "Firewll status" + /usr/sbin/tuxfrw status + eend $? +} + +restart() { + ebegin "Restarting firewall" + /usr/sbin/tuxfrw restart + eend $? +} + +natopen() { + ebegin "Opening firwall just with NAT" + /usr/sbin/tuxfrw natopen + eend $? +} + +panic() { + ebegin "Entering Firewall Panic Mode" + /usr/sbin/tuxfrw panic + eend $? +} diff --git a/net-firewall/tuxfrw/metadata.xml b/net-firewall/tuxfrw/metadata.xml new file mode 100644 index 000000000000..e788d53e1163 --- /dev/null +++ b/net-firewall/tuxfrw/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<maintainer> + <email>angusyoung@gentoo.org</email> + <name>Otavio R. Piske</name> +</maintainer> +</pkgmetadata> diff --git a/net-firewall/tuxfrw/tuxfrw-2.58.ebuild b/net-firewall/tuxfrw/tuxfrw-2.58.ebuild new file mode 100644 index 000000000000..47cef937f91e --- /dev/null +++ b/net-firewall/tuxfrw/tuxfrw-2.58.ebuild @@ -0,0 +1,74 @@ +# 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.58.ebuild,v 1.1 2005/01/24 22:23:00 angusyoung Exp $ + +inherit eutils kernel-mod + +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_preinst() { + check_KV + kernel-mod_getversion + + #check for kernel version (2.4.18 or higher) + if [ ${KV_MINOR} -eq 4 ] && [ ${KV_PATCH} -lt 18 ] ; then + eerror "${P} requires a 2.4 kernel version of at" + eerror "least 2.4.23. You must upgrade your kernel." + die "Kernel version not supported" + fi +} + +src_compile() { + einfo "Nothing to compile..." +} + +src_install() { + + diropts -m0700 + dodir /etc/tuxfrw + dodir /etc/tuxfrw/rules + + insinto /etc/tuxfrw/rules + insopts -m0600 + doins ${S}/tf_*-*.mod + doins ${S}/tf_INPUT.mod + doins ${S}/tf_OUTPUT.mod + doins ${S}/tf_FORWARD.mod + doins ${S}/tf_TOS.mod + + insinto /etc/tuxfrw + doins ${S}/tf_PIGMEAT.mod + doins ${S}/tf_KERNEL.mod + doins ${S}/tf_BASE.mod + doins ${S}/tf_ATK.mod + doins ${S}/tuxfrw.conf + + #needs gentoo style script + exeopts -m700 + exeinto /etc/init.d/ + doexe ${FILESDIR}/tuxfrw + + # Is this really needed ? + dodoc ${S}/AUTHORS ${S}/COPYING ${S}/CREDITS ${S}/ChangeLog ${S}/INSTALL + dodoc ${S}/README ${S}/VERSION ${S}/manual/${PN}-manual-${PV}-en.txt +} + +pkg_postinst() { + einfo " TuxFrw installation is finished! " + einfo " tfconf.sh is deprecated. Configure $CONF_DIR/tuxfrw.conf manually" + einfo " to start: /etc/init.d/tuxfrw start " + einfo " to load on boot: rc-update add tuxfrw default" + einfo "" + einfo "You will need to have iptables support compiled on your kernel" + einfo "in order to this package to work. The current list of modules" + einfo "needed can be found here:" + einfo "http://dev.gentoo.org/~angusyoung/docs/devel/tuxfrw/mod.txt" +} + |