From f57637b35b968b079993a5b1dbed170190f4355d Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Thu, 27 Jan 2005 20:29:26 +0000 Subject: Corrected the installation of tuxfrw main script. Package-Manager: portage-2.0.51-r15 --- net-firewall/tuxfrw/ChangeLog | 9 ++- net-firewall/tuxfrw/Manifest | 16 +---- net-firewall/tuxfrw/files/digest-tuxfrw-2.58 | 1 - net-firewall/tuxfrw/files/digest-tuxfrw-2.58-r1 | 1 + net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild | 77 +++++++++++++++++++++++++ net-firewall/tuxfrw/tuxfrw-2.58.ebuild | 74 ------------------------ 6 files changed, 89 insertions(+), 89 deletions(-) delete mode 100644 net-firewall/tuxfrw/files/digest-tuxfrw-2.58 create mode 100644 net-firewall/tuxfrw/files/digest-tuxfrw-2.58-r1 create mode 100644 net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild delete mode 100644 net-firewall/tuxfrw/tuxfrw-2.58.ebuild (limited to 'net-firewall/tuxfrw') diff --git a/net-firewall/tuxfrw/ChangeLog b/net-firewall/tuxfrw/ChangeLog index 3da0a22eb3e7..eb5cd5929589 100644 --- a/net-firewall/tuxfrw/ChangeLog +++ b/net-firewall/tuxfrw/ChangeLog @@ -1,6 +1,13 @@ # 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.2 2005/01/25 10:58:10 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/tuxfrw/ChangeLog,v 1.3 2005/01/27 20:29:26 angusyoung Exp $ + +*tuxfrw-2.58-r1 (27 Jan 2005) + + 27 Jan 2005; Otavio R. Piske +tuxfrw-2.58-r1.ebuild, + -tuxfrw-2.58.ebuild: + Removed old ebuild that was not installing main script and added -r1 that does + this correctly *tuxfrw-2.58 (24 Jan 2005) diff --git a/net-firewall/tuxfrw/Manifest b/net-firewall/tuxfrw/Manifest index 6670e93f7ecd..4d4228a171f2 100644 --- a/net-firewall/tuxfrw/Manifest +++ b/net-firewall/tuxfrw/Manifest @@ -1,15 +1,5 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 6b93c79e762416b05dc38963e3b5a4e2 tuxfrw-2.58.ebuild 2005 -MD5 ae0eca40d72acca5a54db4d81034e2d3 ChangeLog 640 +MD5 e173f8266166779299c64e976a375464 tuxfrw-2.58-r1.ebuild 2060 +MD5 7c0a635933651d88914a01d1d2e8ddd1 ChangeLog 874 MD5 ac3074aa551da20b321f380c591f0847 metadata.xml 256 -MD5 ed2c6cea0dbd3b533794fb7f3e43f3d0 files/digest-tuxfrw-2.58 62 +MD5 ed2c6cea0dbd3b533794fb7f3e43f3d0 files/digest-tuxfrw-2.58-r1 62 MD5 232c3594bfcdf37631020d2a52bcba00 files/tuxfrw 774 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.9.10 (GNU/Linux) - -iD8DBQFB9iZLI1lqEGTUzyQRAiOcAJ0fSHzzhCSsBOsCCEc6YHVJiLqelwCggQ3p -pX34x0yPZ+sB1iH5qJEVOL0= -=Gem8 ------END PGP SIGNATURE----- diff --git a/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 b/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 deleted file mode 100644 index 9fd061836488..000000000000 --- a/net-firewall/tuxfrw/files/digest-tuxfrw-2.58 +++ /dev/null @@ -1 +0,0 @@ -MD5 780e8671fdbd0e443c3290cc97052692 tuxfrw-2.58.tar.gz 36193 diff --git a/net-firewall/tuxfrw/files/digest-tuxfrw-2.58-r1 b/net-firewall/tuxfrw/files/digest-tuxfrw-2.58-r1 new file mode 100644 index 000000000000..9fd061836488 --- /dev/null +++ b/net-firewall/tuxfrw/files/digest-tuxfrw-2.58-r1 @@ -0,0 +1 @@ +MD5 780e8671fdbd0e443c3290cc97052692 tuxfrw-2.58.tar.gz 36193 diff --git a/net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild b/net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild new file mode 100644 index 000000000000..80a4b15c9bc7 --- /dev/null +++ b/net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild @@ -0,0 +1,77 @@ +# 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-r1.ebuild,v 1.1 2005/01/27 20:29:26 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 + + #doing binary install instead + dosbin ${S}/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" +} + diff --git a/net-firewall/tuxfrw/tuxfrw-2.58.ebuild b/net-firewall/tuxfrw/tuxfrw-2.58.ebuild deleted file mode 100644 index 47cef937f91e..000000000000 --- a/net-firewall/tuxfrw/tuxfrw-2.58.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# 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" -} - -- cgit v1.2.3-65-gdbad