blob: ad0e6a2f925d6aad87bde6c6ba61c0f8e5166603 (
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
# $Header: /var/cvsroot/gentoo-x86/net-misc/dynfw/dynfw-1.0.1.ebuild,v 1.6 2002/10/04 06:11:05 vapier 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 sparc sparc64"
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
}
|