Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/arno-iptables-firewall: arno-iptables-firewall-2.0.1e.ebuild ChangeLog arno-iptables-firewall-1.9.2d.ebuild arno-iptables-firewall-1.9.2a.ebuild arno-iptables-firewall-2.0.1d-r1.ebuild
Date: Wed, 02 Apr 2014 09:34:06
Message-Id: 20140402093356.D838C20060@flycatcher.gentoo.org
1 tomwij 14/04/02 09:33:56
2
3 Modified: ChangeLog
4 Added: arno-iptables-firewall-2.0.1e.ebuild
5 Removed: arno-iptables-firewall-1.9.2d.ebuild
6 arno-iptables-firewall-1.9.2a.ebuild
7 arno-iptables-firewall-2.0.1d-r1.ebuild
8 Log:
9 Version bump to 2.0.1e; fixes bug #500114, proxied commit for Ferenc Erki. Removed old.
10
11 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
12
13 Revision Changes Path
14 1.12 net-firewall/arno-iptables-firewall/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog?rev=1.12&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog?rev=1.12&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog?r1=1.11&r2=1.12
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog,v
23 retrieving revision 1.11
24 retrieving revision 1.12
25 diff -u -r1.11 -r1.12
26 --- ChangeLog 26 Jan 2014 11:03:38 -0000 1.11
27 +++ ChangeLog 2 Apr 2014 09:33:56 -0000 1.12
28 @@ -1,6 +1,15 @@
29 # ChangeLog for net-firewall/arno-iptables-firewall
30 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog,v 1.11 2014/01/26 11:03:38 ago Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog,v 1.12 2014/04/02 09:33:56 tomwij Exp $
33 +
34 +*arno-iptables-firewall-2.0.1e (02 Apr 2014)
35 +
36 + 02 Apr 2014; Tom Wijsman <TomWij@g.o>
37 + +arno-iptables-firewall-2.0.1e.ebuild, -arno-iptables-firewall-1.9.2a.ebuild,
38 + -arno-iptables-firewall-1.9.2d.ebuild,
39 + -arno-iptables-firewall-2.0.1d-r1.ebuild:
40 + Version bump to 2.0.1e; fixes bug #500114, proxied commit for Ferenc Erki.
41 + Removed old.
42
43 26 Jan 2014; Agostino Sarubbo <ago@g.o>
44 arno-iptables-firewall-2.0.1d-r2.ebuild:
45
46
47
48 1.1 net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild?rev=1.1&content-type=text/plain
52
53 Index: arno-iptables-firewall-2.0.1e.ebuild
54 ===================================================================
55 # Copyright 1999-2014 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild,v 1.1 2014/04/02 09:33:56 tomwij Exp $
58
59 EAPI=5
60 inherit readme.gentoo systemd
61
62 DESCRIPTION="Arno's iptables firewall script"
63 HOMEPAGE="http://rocky.eld.leidenuniv.nl"
64 SRC_URI="http://rocky.eld.leidenuniv.nl/${PN}/${PN}_${PV}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="+plugins"
70
71 # sys-apps/coreutils dependency wrt
72 # https://bugs.gentoo.org/show_bug.cgi?id=448716
73
74 DEPEND=""
75 RDEPEND="net-firewall/iptables
76 || ( <sys-apps/coreutils-8.20 >sys-apps/coreutils-8.20-r1 )
77 sys-apps/iproute2
78 plugins? ( net-dns/bind-tools )"
79
80 S="${WORKDIR}/${PN}_${PV}"
81
82 DISABLE_AUTOFORMATTING="yes"
83 DOC_CONTENTS="You will need to configure /etc/${PN}/firewall.conf
84 before using this package. To start the script, run:
85
86 /etc/init.d/${PN} start (for OpenRC)
87 systemctl start ${PN} (for systemd)
88
89 If you want to start this script at boot, run:
90
91 rc-update add ${PN} default (for OpenRC)
92 systemctl enable ${PN} (for systemd)"
93
94 src_prepare() {
95 sed -i -e 's:/usr/local/share/:/usr/libexec/:' \
96 etc/"${PN}"/firewall.conf || die "Sed failed!"
97 sed -i -e 's:/usr/local/sbin/:/usr/sbin/:' \
98 lib/systemd/system/"${PN}.service" || die "Sed failed!"
99 }
100
101 src_install() {
102 insinto /etc/"${PN}"
103 doins etc/"${PN}"/firewall.conf
104 doins etc/"${PN}"/custom-rules
105
106 doinitd "${FILESDIR}/${PN}"
107 systemd_dounit lib/systemd/system/"${PN}.service"
108
109 dobin bin/arno-fwfilter
110 dosbin bin/"${PN}"
111
112 insinto /usr/libexec/"${PN}"
113 doins share/"${PN}"/environment
114
115 dodoc CHANGELOG README
116 readme.gentoo_create_doc
117
118 if use plugins
119 then
120 insinto /etc/"${PN}"/plugins
121 doins etc/"${PN}"/plugins/*
122
123 insinto /usr/libexec/"${PN}"/plugins
124 doins share/"${PN}"/plugins/*.plugin
125
126 exeinto /usr/libexec/"${PN}"/plugins
127 doexe share/"${PN}"/plugins/dyndns-host-open-helper
128 doexe share/"${PN}"/plugins/traffic-accounting-helper
129 doexe share/"${PN}"/plugins/traffic-accounting-log-rotate
130 doexe share/"${PN}"/plugins/traffic-accounting-show
131
132 docinto plugins
133 dodoc share/"${PN}"/plugins/*.CHANGELOG
134 fi
135
136 doman share/man/man1/arno-fwfilter.1 \
137 share/man/man8/"${PN}".8
138 }
139
140 pkg_postinst () {
141 ewarn "When you stop this script, all firewall rules are flushed!"
142 ewarn "Make sure to not use multiple firewall scripts simultaneously"
143 ewarn "unless you know what you are doing!"
144 readme.gentoo_print_elog
145 }