summaryrefslogtreecommitdiff
blob: b13f87117a3e7c5c977ba88b18d676e97e5d465f (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/dynfw/dynfw-1.0.1.ebuild,v 1.4 2002/07/11 06:30:48 drobbins Exp $

S=${WORKDIR}/${P}

DESCRIPTION="Dynamic Firewall Tools for netfilter-based firewalls"
SRC_URI="http://gentoo.org/projects/${P}.tar.gz"
HOMEPAGE="http://gentoo.org/projects/dynfw"
DEPEND="sys-apps/bash"
KEYWORDS="x86"
SLOT="0"
LICENSE="GPL"

src_install () {
	dodir /usr/sbin
	dodir /usr/share

	local PREFIX
	PREFIX="/usr"

	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
}