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/dynfw-1.0.1.ebuild | |
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/dynfw-1.0.1.ebuild')
-rw-r--r-- | net-firewall/dynfw/dynfw-1.0.1.ebuild | 43 |
1 files changed, 24 insertions, 19 deletions
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" } |