summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2013-05-18 09:09:19 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2013-05-18 09:09:19 +0000
commitd8439c7f72e9972a506b96dc873a99db462df797 (patch)
treeea36a24b83718e88e7481cec28ec8316768ac17e /net-firewall/arno-iptables-firewall
parentVersion bump. (diff)
downloadhistorical-d8439c7f72e9972a506b96dc873a99db462df797.tar.gz
historical-d8439c7f72e9972a506b96dc873a99db462df797.tar.bz2
historical-d8439c7f72e9972a506b96dc873a99db462df797.zip
Cleanup, EAPI5, initscript and other fixes thanks to Ferenc Erki <erkiferenc@gmail.com>. Bug #465114
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64 Manifest-Sign-Key: 0xC2BA7F3C!
Diffstat (limited to 'net-firewall/arno-iptables-firewall')
-rw-r--r--net-firewall/arno-iptables-firewall/ChangeLog11
-rw-r--r--net-firewall/arno-iptables-firewall/Manifest32
-rw-r--r--net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1d-r1.ebuild88
-rw-r--r--net-firewall/arno-iptables-firewall/files/arno-iptables-firewall27
4 files changed, 142 insertions, 16 deletions
diff --git a/net-firewall/arno-iptables-firewall/ChangeLog b/net-firewall/arno-iptables-firewall/ChangeLog
index 0a4f98db5ff2..659f3169d74c 100644
--- a/net-firewall/arno-iptables-firewall/ChangeLog
+++ b/net-firewall/arno-iptables-firewall/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-firewall/arno-iptables-firewall
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog,v 1.6 2012/12/17 19:45:41 hwoarang Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/ChangeLog,v 1.7 2013/05/18 09:09:18 hwoarang Exp $
+
+*arno-iptables-firewall-2.0.1d-r1 (18 May 2013)
+
+ 18 May 2013; Markos Chandras <hwoarang@gentoo.org>
+ +arno-iptables-firewall-2.0.1d-r1.ebuild, +files/arno-iptables-firewall:
+ Cleanup, EAPI5, initscript and other fixes thanks to Ferenc Erki
+ <erkiferenc@gmail.com>. Bug #465114
*arno-iptables-firewall-2.0.1d (17 Dec 2012)
diff --git a/net-firewall/arno-iptables-firewall/Manifest b/net-firewall/arno-iptables-firewall/Manifest
index 38f2cd4b878a..3baf186e274a 100644
--- a/net-firewall/arno-iptables-firewall/Manifest
+++ b/net-firewall/arno-iptables-firewall/Manifest
@@ -1,29 +1,33 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX arno-iptables-firewall 403 SHA256 a345aaff1d7ab3c94bf67a653f4cb4bd6babc0b320874ed218f729402c1630c4 SHA512 0a32127ecdf36a2906ad3681afbace9ec0c3ebdc00ffd3f226f77c4ed7aa2217805fb2264ff92fb70b1525ac705a19f61002a0d5a2852078de4a025021e8db5a WHIRLPOOL 20090efbe04852499097c34e4e8ffdf3cb46fa4afe6cafa70b0c087d6c4e9cc85f826dcc9ab794f095aca34ab5aef194598c2a708d590a1d50688343cacafec5
AUX rc.firewall_replace_opts.patch 299 SHA256 73163088b2873a70bbc6dee814e260411ccee9cc0e8bd66e96da5e2def7dc7ed SHA512 eb5d266d4d7a48e5480268c6dc8da7ef242d45c4bdc537c3e81666d3d1720273bc21b325967b235765adf08ae5ddc6d6ab0ddce739aef811e02c16eac14d982c WHIRLPOOL 5b867e9b8844503c72739bebd4cff82271e54113b7d6e836c46e14af620cbd9609a9b8704b8f06ced13961c7cea2343b71254a73967d61ae828a79a2ac09bf9d
DIST arno-iptables-firewall_1.9.2a.tar.gz 95858 SHA256 1412a28fafbe423d3e5bcf820c4f92265f01d38908eae0f3506e53b6d55a7906
DIST arno-iptables-firewall_1.9.2d.tar.gz 97797 SHA256 2644299bffbf035bce28e5360a08941ce3fc773906fd7300e94cdf948cffd469
DIST arno-iptables-firewall_2.0.1d.tar.gz 125329 SHA256 177343362063125985e8b0008fe69bc6ca8d3ba252cfa35a316e708f52fef9c6 SHA512 a99f4fcf4f84a47cc1bda26b39e4f3dc7e10b74f3aeaea8a2519bf18f43ff08ec0bfbd0f078ac36ce12da31d3ac0eabc51231b4559cadca13cd4d75e0940bf9d WHIRLPOOL 2dd56678015cf49ed9442c63c5455c70e72a6f252d9278a56ae1eaabda34d597c44f7fdb97695656882754776385778a5e67d83e7e35e4554e5765e3a0e68b13
EBUILD arno-iptables-firewall-1.9.2a.ebuild 2596 SHA256 2f95f61a49838eabccac7ec23e349a49977c299bfb99734a83bf5aeed28b3659 SHA512 4eb492d50e1262808a9b70726fb10939ba4f298e6e1d545fac41598bf53a80a6e0ae2ff4444f9b60b06fe030312f75930e9c841dfe6a58f7c971da09cd02dec0 WHIRLPOOL ae41b57611deac699843e2f9eb22af50af4dddda3ef0c868772b87b8d32418c0a93cbd4507bca7d702872701d6dcd1bb3e40a339edc84ccc45f36264ccf9ae40
EBUILD arno-iptables-firewall-1.9.2d.ebuild 2772 SHA256 3cfbe389ad801ee33f4f78f3fddbb34c1e89adf39653be96708910d137753b85 SHA512 5ee67c3b389cc837d0ae60db5dcfd30edcb92c33f3b60b0b61f915134776dc91560a8052ffa7b3d2f0bad11514086aeb7102d8f8f109365ab3ef3bd5b8d9883d WHIRLPOOL ed745351c17184f6f59e8e9d81711f8c319d1a63ce597f1c7026336b08c99fd26edf7f12a0587d7a1501f77f7e516afa796640619e90ecaac146b935ad311610
+EBUILD arno-iptables-firewall-2.0.1d-r1.ebuild 2239 SHA256 cf75acd6e8414d4d496485ebbae1a4ca1a08af5a75aa49b0cdebb429e512c3d6 SHA512 15dd2a7049d7e11e787778682f99aba6799d289f255a2b49b68c3d48d9a22752f671bc644d9627559ed3baa6e9d6f3479ab8b23ac9d6386f28abdf93aaf35f5f WHIRLPOOL 305f2f4d38557a6c106fb1127c83d2138de210b21eccd53b6a6309087a84caf5d7dde11196ffccf8ceef67871ca4c1e5bb5f6a8b51913167333e210d92b968f9
EBUILD arno-iptables-firewall-2.0.1d.ebuild 2827 SHA256 ef6a6edaf882a0e859195d115ff3e8211c594fa4fe874c6fe23021e491ff8338 SHA512 b718e895c949343aa3e0019d247bf5f8d45904f0337e7f7f634af7fd848b75a0cddde52db6a7d17b1411c46571e5d62afd87e8318486c675644e406abee82e8f WHIRLPOOL fe58229a6b1cf89a0257eaed6361ba9e98a092569b4fad126095a6c103c6188cc47da60826234a0272e0c5fb247e0a648cd6c065405ccc3384cb7c0d00c42253
-MISC ChangeLog 1566 SHA256 09425f38d7db8545b203d151554c19b4dafbe3c02eb0130f14a1ec5541457de8 SHA512 a47892f0d224821362f9838d628d514c74b173ba2f87631c079c92b49944304828128eb2ff7ffa66e1ca421dfab98fe6a96ac99b45a3e82a4b82e6fe30ff4a7c WHIRLPOOL 24a59f0efbf8949f5cf0f555e3036648522b0c847f75f352bb86a519a4e3ec23967c9f52f75986a8f059d79c4a6d7c5bf2b1ee4f4054ba02f9852a237d5ee430
+MISC ChangeLog 1849 SHA256 c710033cb9a885512c01e1665a077d6f8d62b6ea90e0c886c5da765f104f92e3 SHA512 91f93de70e39f0b615c915b016a47417b141fa262abce3eb51eec53123f93da6e60d9ab3397eea5e21cf266442b7f74dc0c5884c6c66e293132284f490e804c5 WHIRLPOOL 4b640f7a184ca9211ac35ae0a7ec3cee5763248a6f14605ea73aaf8fd684beb6610a3fceeb782cdf1f1f688fa8da66e87ec431056398dc95119ad381a4646cc0
MISC metadata.xml 327 SHA256 51bfcccddfa15dee0e7319ea4ec01fd810be47612abba45196558ad492dfe966 SHA512 aca4ad309dddc381e87586be74ec5aed21caf525ebdbce48c452b7ac9701b36dc756cf6fb48b790ca8bc81332803e92ed63ac30d0a21a5f2bdd56cb4a76e5e0a WHIRLPOOL 1c15aa80e063313cffcc77ac63d3e58fadf4e5abfe75addf2d28991e6bb5f1b259735e1a7668717de7618a2e9b59df98cd173e49803bb0669624db006d8a401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lkm2F0UudnQANMiEbneH8qYldZzwbI2h10Wo5CZExVQ6IO6RceP
+5bNqUPEAXdGSgrzjIwrikBvhrC4yICz+87i0fMdRRMw+4RDRNJVkOTidr6EdacBZ
+VEhRT8JE/e0BVAoeAjdevI/EdKTWuYJxl1bQTnbs8l4nTDhNYHlwgjqoAVnUsGLC
+Xhi6smPLTFexZ+ayB/qEuolsqvYMvHrC4455o15f/SwhhoBUBEhMESua8xKJMmnj
+27kLnuKK+Uabeex+ni8UfIEeWIH2VkIlIu/sKgPulJbTF8wq7vkToMF6G12qikFE
+eyKnfo9EyI4fnLy8F7o0X5xx15OM9+lKFwOVDP+Wy6V8mhhWAsn2v8Kk6Rw/SINr
+K6UQt5plv4Gh91GItTxoaRbq6eJk+Roub8CAJad22+8m7Qeq3lR5PzfWeptss+Z+
+UyDv3vEXJIj4CR7BeWZVp1+OVzUjBHJX/tAU8kAJzxmiPK8kaR8EG+tJz7OCRClR
+44+aEhAq1vi8fqLdONUkgFyu8RBsFMgEPj/khJruyaF4ribTM3ubuZYb3Cm8eKis
+BrhyLsDeAMD22hfMTQ07
+=klCV
-----END PGP SIGNATURE-----
diff --git a/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1d-r1.ebuild b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1d-r1.ebuild
new file mode 100644
index 000000000000..99a23af84a21
--- /dev/null
+++ b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1d-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1d-r1.ebuild,v 1.1 2013/05/18 09:09:18 hwoarang Exp $
+
+EAPI=5
+
+inherit readme.gentoo
+
+DESCRIPTION="Arno's iptables firewall script"
+HOMEPAGE="http://rocky.eld.leidenuniv.nl"
+SRC_URI="http://rocky.eld.leidenuniv.nl/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+plugins"
+
+# sys-apps/coreutils dependency wrt
+# https://bugs.gentoo.org/show_bug.cgi?id=448716
+
+DEPEND=""
+RDEPEND="net-firewall/iptables
+ || ( <sys-apps/coreutils-8.20 >sys-apps/coreutils-8.20-r1 )
+ sys-apps/iproute2
+ plugins? ( net-dns/bind-tools )"
+
+S="${WORKDIR}/${PN}_${PV}"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="You will need to configure /etc/${PN}/firewall.conf
+before using this package. To start the script, run:
+
+/etc/init.d/${PN} start
+
+If you want to start this script at boot, run:
+
+rc-update add ${PN} default"
+
+src_prepare() {
+ sed -i -e 's:/usr/local/share/:/usr/libexec/:' \
+ etc/"${PN}"/firewall.conf || die "Sed failed!"
+}
+
+src_install() {
+
+ insinto /etc/"${PN}"
+ doins etc/"${PN}"/firewall.conf
+ doins etc/"${PN}"/custom-rules
+
+ doinitd "${FILESDIR}/${PN}"
+
+ dobin bin/arno-fwfilter
+ dosbin bin/"${PN}"
+
+ insinto /usr/libexec/"${PN}"
+ doins share/"${PN}"/environment
+
+ dodoc CHANGELOG README
+ readme.gentoo_create_doc
+
+ if use plugins
+ then
+ insinto /etc/"${PN}"/plugins
+ doins etc/"${PN}"/plugins/*
+
+ insinto /usr/libexec/"${PN}"/plugins
+ doins share/"${PN}"/plugins/*.plugin
+
+ exeinto /usr/libexec/"${PN}"/plugins
+ doexe share/"${PN}"/plugins/dyndns-host-open-helper
+ doexe share/"${PN}"/plugins/traffic-accounting-helper
+ doexe share/"${PN}"/plugins/traffic-accounting-log-rotate
+ doexe share/"${PN}"/plugins/traffic-accounting-show
+
+ docinto plugins
+ dodoc share/"${PN}"/plugins/*.CHANGELOG
+ fi
+
+ doman share/man/man1/arno-fwfilter.1 \
+ share/man/man8/"${PN}".8
+}
+
+pkg_postinst () {
+ ewarn "When you stop this script, all firewall rules are flushed!"
+ ewarn "Make sure to not use multiple firewall scripts simultaneously"
+ ewarn "unless you know what you are doing!"
+ readme.gentoo_print_elog
+}
diff --git a/net-firewall/arno-iptables-firewall/files/arno-iptables-firewall b/net-firewall/arno-iptables-firewall/files/arno-iptables-firewall
new file mode 100644
index 000000000000..7a56dfb24654
--- /dev/null
+++ b/net-firewall/arno-iptables-firewall/files/arno-iptables-firewall
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+command=/usr/sbin/arno-iptables-firewall
+description="Single- & multi-homed firewall script with DSL/ADSL support"
+
+extra_started_commands="reload"
+description_reload="Reload blocked hosts (blackhole) file"
+
+depend() {
+ before net
+ use logger
+}
+
+start() {
+ ${command} start
+}
+
+stop() {
+ ${command} stop
+}
+
+restart() {
+ ${command} restart
+}
+
+reload() {
+ ${command} force-reload
+}