/[gentoo-x86]/net-firewall/arno-iptables-firewall/arno-iptables-firewall-1.9.2a.ebuild
Gentoo

Contents of /net-firewall/arno-iptables-firewall/arno-iptables-firewall-1.9.2a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 3 15:49:32 2009 UTC (5 years, 3 months ago) by darkside
Branch: MAIN
(non maintainer commit) Version bump for security bug 261507, ebuild by Johannes Kellner
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=1
6
7 DESCRIPTION="Arno's iptables firewall script"
8 HOMEPAGE="http://rocky.molphys.leidenuniv.nl/"
9 SRC_URI="http://rocky.eld.leidenuniv.nl/iptables-firewall/${PN}_${PV}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="+plugins"
15
16 DEPEND=">=net-firewall/iptables-1.2.5"
17 RDEPEND="${DEPEND}"
18
19 S=${WORKDIR}/${PN}_${PV}
20
21 src_install() {
22 insinto /etc/arno-iptables-firewall
23
24 # update the default location of the environment script
25 sed -e 's:/usr/local/share/:/usr/share/:' \
26 etc/arno-iptables-firewall/firewall.conf > \
27 "${T}"/firewall.conf
28 doins "${T}"/firewall.conf
29 doins etc/arno-iptables-firewall/custom-rules
30
31 sed -e 's:local/::' \
32 contrib/Gentoo/firewall.conf > \
33 "${T}"/arno-iptables-firewall.confd
34 newconfd "${T}"/arno-iptables-firewall.confd arno-iptables-firewall
35 newinitd contrib/Gentoo/rc.firewall arno-iptables-firewall
36
37 dobin bin/arno-fwfilter
38 dosbin bin/arno-iptables-firewall
39
40 insinto /usr/share/arno-iptables-firewall/
41 doins share/arno-iptables-firewall/environment
42
43 if use plugins
44 then
45 insinto /etc/arno-iptables-firewall/plugins
46 doins etc/arno-iptables-firewall/plugins/*
47
48 insinto /usr/share/arno-iptables-firewall/plugins
49 doins share/arno-iptables-firewall/plugins/*.plugin
50
51 exeinto /usr/share/arno-iptables-firewall/plugins
52 doexe share/arno-iptables-firewall/plugins/dyndns-host-open-helper
53 doexe share/arno-iptables-firewall/plugins/traffic-accounting-helper
54 doexe share/arno-iptables-firewall/plugins/traffic-accounting-log-rotate
55 doexe share/arno-iptables-firewall/plugins/traffic-accounting-show
56
57 docinto plugins
58 dodoc share/arno-iptables-firewall/plugins/*.CHANGELOG
59 fi
60
61 dodoc CHANGELOG README
62
63 doman share/man/man1/arno-fwfilter.1 share/man/man8/arno-iptables-firewall.8
64 }
65
66 pkg_postinst () {
67 elog "You will need to configure /etc/${PN}/firewall.conf before using this"
68 elog "package. To start the script, run:"
69 elog " /etc/init.d/${PN} start"
70 echo
71 elog "If you want to start this script at boot, run:"
72 elog " rc-update add ${PN} default"
73 echo
74 ewarn "When you start the firewall, the default is to,"
75 ewarn "DROP ALL existing connections! So be carefull when installing"
76 ewarn "on a remote host! There is a option to disable this behavior"
77 ewarn "for testting."
78 echo
79 ewarn "When you stop this script, all firewall rules are flushed!"
80 echo
81 }

  ViewVC Help
Powered by ViewVC 1.1.20