diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2003-12-08 06:19:17 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2003-12-08 06:19:17 +0000 |
commit | 49ea4010400eb96d309fbcca388be7fba109bbb3 (patch) | |
tree | 2b5ff5611e7384cc58f99a4992eff6b0d6bc7b4f /net-firewall/dynfw | |
parent | Fix the unpack routine, update the digest (diff) | |
download | historical-49ea4010400eb96d309fbcca388be7fba109bbb3.tar.gz historical-49ea4010400eb96d309fbcca388be7fba109bbb3.tar.bz2 historical-49ea4010400eb96d309fbcca388be7fba109bbb3.zip |
chown fix plus ebuild rewrite.
Diffstat (limited to 'net-firewall/dynfw')
-rw-r--r-- | net-firewall/dynfw/ChangeLog | 6 | ||||
-rw-r--r-- | net-firewall/dynfw/Manifest | 4 | ||||
-rw-r--r-- | net-firewall/dynfw/dynfw-1.0.1.ebuild | 43 |
3 files changed, 31 insertions, 22 deletions
diff --git a/net-firewall/dynfw/ChangeLog b/net-firewall/dynfw/ChangeLog index edcc6d95d6b5..4e306115133d 100644 --- a/net-firewall/dynfw/ChangeLog +++ b/net-firewall/dynfw/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-firewall/dynfw # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/dynfw/ChangeLog,v 1.3 2003/04/22 10:24:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/dynfw/ChangeLog,v 1.4 2003/12/08 06:19:16 mr_bones_ Exp $ + + 07 Dec 2003; Michael Sterrett <mr_bones_@gentoo.org> dynfw-1.0.1.ebuild: + started with fixing the chown for bug 35127, then ended up redoing the build + to use more portage functions. 24 Feb 2003; Martin Holzer <mholzer@gentoo.org> : Moved from net-misc/dynfw to net-firewall/dynfw. diff --git a/net-firewall/dynfw/Manifest b/net-firewall/dynfw/Manifest index b6819be0e79e..6746b75aca41 100644 --- a/net-firewall/dynfw/Manifest +++ b/net-firewall/dynfw/Manifest @@ -1,3 +1,3 @@ -MD5 f1b4c00ef798c9bee95ea2a1da35bb4c ChangeLog 875 -MD5 5ecf0fa8c5591f6926d4f9afa5327b16 dynfw-1.0.1.ebuild 838 +MD5 5be030468f1b085850e820a83739dea5 ChangeLog 1066 +MD5 a988eaa8def2d7e99e5a2f513040242e dynfw-1.0.1.ebuild 864 MD5 20a3d3a11bc1cae74ae8dc85a806c670 files/digest-dynfw-1.0.1 61 diff --git a/net-firewall/dynfw/dynfw-1.0.1.ebuild b/net-firewall/dynfw/dynfw-1.0.1.ebuild index ee6329e6223d..48684d46d698 100644 --- a/net-firewall/dynfw/dynfw-1.0.1.ebuild +++ b/net-firewall/dynfw/dynfw-1.0.1.ebuild @@ -1,30 +1,35 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/dynfw/dynfw-1.0.1.ebuild,v 1.3 2003/03/11 20:50:08 seemant Exp $ - -S=${WORKDIR}/${P} +# $Header: /var/cvsroot/gentoo-x86/net-firewall/dynfw/dynfw-1.0.1.ebuild,v 1.4 2003/12/08 06:19:16 mr_bones_ Exp $ DESCRIPTION="Dynamic Firewall Tools for netfilter-based firewalls" SRC_URI="http://gentoo.org/projects/${P}.tar.gz" HOMEPAGE="http://gentoo.org/projects/dynfw" -DEPEND="app-shells/bash" -KEYWORDS="x86 sparc " -SLOT="0" + +KEYWORDS="x86 sparc" LICENSE="GPL-2" +SLOT="0" +IUSE="" -src_install () { - dodir /usr/sbin - dodir /usr/share +RDEPEND="app-shells/bash" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" - local PREFIX - PREFIX="/usr" +src_unpack() { + unpack ${A} + cd ${S} + + sed -i \ + -e "s:##PREFIX##:/usr:g" \ + ipblock ipdrop tcplimit host-tcplimit user-outblock || \ + die "sed PREFIX failed" +} + +src_install () { + dosbin ipblock ipdrop tcplimit host-tcplimit user-outblock || \ + die "dosbin failed" - for x in ipblock ipdrop tcplimit host-tcplimit user-outblock - do - einfo Setting PREFIX in: ${x} - sed -e "s:##PREFIX##:${PREFIX}:g" < ${x} > ${D}/usr/sbin/${x} - chown 0.0 ${D}/usr/sbin/${x} - chmod 0755 ${D}/usr/sbin/${x} - done - install -m0755 dynfw.sh ${D}/usr/share + insinto /usr/share + insopts "-m0755" + doins dynfw.sh || die "doins failed" } |