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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Oct 10 13:28:39 2009 UTC (4 years, 11 months ago) by vostorga
Branch: MAIN
Version bump to 1.9.2d , bug 287237
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-1.9.2a.ebuild,v 1.1 2009/07/03 15:49:32 darkside Exp $
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/${PN}/${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 || die
28 doins "${T}"/firewall.conf || die
29 doins etc/arno-iptables-firewall/custom-rules || die
30
31 sed -e 's:local/::' \
32 contrib/Gentoo/firewall.conf > \
33 "${T}"/arno-iptables-firewall.confd || die
34 newconfd "${T}"/arno-iptables-firewall.confd arno-iptables-firewall \
35 || die
36 newinitd contrib/Gentoo/rc.firewall arno-iptables-firewall || die
37
38 dobin bin/arno-fwfilter || die
39 dosbin bin/arno-iptables-firewall || die
40
41 insinto /usr/share/arno-iptables-firewall/
42 doins share/arno-iptables-firewall/environment || die
43
44 if use plugins
45 then
46 insinto /etc/arno-iptables-firewall/plugins
47 doins etc/arno-iptables-firewall/plugins/* || die
48
49 insinto /usr/share/arno-iptables-firewall/plugins
50 doins share/arno-iptables-firewall/plugins/*.plugin || die
51
52 exeinto /usr/share/arno-iptables-firewall/plugins
53 doexe share/arno-iptables-firewall/plugins/dyndns-host-open-helper \
54 || die
55 doexe share/arno-iptables-firewall/plugins/traffic-accounting-helper \
56 || die
57 doexe \
58 share/arno-iptables-firewall/plugins/traffic-accounting-log-rotate \
59 || die
60 doexe \
61 share/arno-iptables-firewall/plugins/traffic-accounting-show || die
62
63 docinto plugins
64 dodoc share/arno-iptables-firewall/plugins/*.CHANGELOG || die
65 fi
66
67 dodoc CHANGELOG README || die "dodoc failed"
68
69 doman share/man/man1/arno-fwfilter.1 \
70 share/man/man8/arno-iptables-firewall.8 || die "doman failed"
71 }
72
73 pkg_postinst () {
74 elog "You will need to configure /etc/${PN}/firewall.conf before using this"
75 elog "package. To start the script, run:"
76 elog " /etc/init.d/${PN} start"
77 echo
78 elog "If you want to start this script at boot, run:"
79 elog " rc-update add ${PN} default"
80 echo
81 ewarn "When you start the firewall, the default is to,"
82 ewarn "DROP ALL existing connections! So be carefull when installing"
83 ewarn "on a remote host! There is a option to disable this behavior"
84 ewarn "for testing."
85 echo
86 ewarn "When you stop this script, all firewall rules are flushed!"
87 echo
88 }

  ViewVC Help
Powered by ViewVC 1.1.20