summaryrefslogtreecommitdiff
blob: 48684d46d6984cf5e5c0fe77c283d6ed8082bf5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.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"

KEYWORDS="x86 sparc"
LICENSE="GPL-2"
SLOT="0"
IUSE=""

RDEPEND="app-shells/bash"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

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"

	insinto /usr/share
	insopts "-m0755"
	doins dynfw.sh || die "doins failed"
}