From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-firewall/arno-iptables-firewall/Manifest | 8 ++ .../arno-iptables-firewall-2.0.1e.ebuild | 90 +++++++++++++++++++++ .../arno-iptables-firewall-2.0.1f_rc1.ebuild | 92 ++++++++++++++++++++++ .../files/arno-iptables-firewall | 27 +++++++ net-firewall/arno-iptables-firewall/metadata.xml | 15 ++++ 5 files changed, 232 insertions(+) create mode 100644 net-firewall/arno-iptables-firewall/Manifest create mode 100644 net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild create mode 100644 net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1f_rc1.ebuild create mode 100644 net-firewall/arno-iptables-firewall/files/arno-iptables-firewall create mode 100644 net-firewall/arno-iptables-firewall/metadata.xml (limited to 'net-firewall/arno-iptables-firewall') diff --git a/net-firewall/arno-iptables-firewall/Manifest b/net-firewall/arno-iptables-firewall/Manifest new file mode 100644 index 000000000000..e0631c966839 --- /dev/null +++ b/net-firewall/arno-iptables-firewall/Manifest @@ -0,0 +1,8 @@ +AUX arno-iptables-firewall 404 SHA256 01f07c4609b02d3efeb3e0f3eb1025ca767efd170d2102a7839776d57aff8470 SHA512 3491c556150ac4c39447f17cb48caa2542c42c632d960f604ccdd475cbec239b8fec8523606c146427e644a929b2c5522f3c21a47712fd67880ac3815d3ab983 WHIRLPOOL d9f5823f7e393eaa3721bdd7b0770225bdbbe68b4d83ffbee21b660502435c9dc714539f6225434814a60797bc6c5955dd5ca524b07b33cd939b404daca5bd2f +DIST arno-iptables-firewall_2.0.1e.tar.gz 126238 SHA256 fa7b865e5d9b8e077cba73b2f28695a2fd691092a0a7f9e1c16ee369fc27fe43 SHA512 244b3bbf08b2d97128908aece487388bb71ced002cc129885144f4eacf9cf6053c9eb1225a1cd33fdefc502f1e6822a85710d35a7884e99cfde35d34f3fd4f70 WHIRLPOOL f6c1b5ade8b4acdcc4c8e90e19a84335c3932d2a58bbba2221a91b7cbd228c4d6072af6e21836314d86ef005780b47c5ce85198219b345116af529178e2133c1 +DIST arno-iptables-firewall_2.0.1f-rc1.tar.gz 129834 SHA256 84f3e96bb85dbcad2916922d537aa0f188df59ece7ea9d9c0f669468938713e0 SHA512 cf7c2f97e74e01be48a8206be3116156740dfd2022df957651b587de1492157363249c067a778209c1e239f53c30426c32e6b1f901949c37ab2b5d690542d620 WHIRLPOOL 969e09b206cf1e132e93151461297fdb3b40ba849b4b4c9ff9e2ef8095526e4e8340b348e2bc97cfe9838b7de3f42cb1acae7c21d6261dcab5392e26ba81afc4 +EBUILD arno-iptables-firewall-2.0.1e.ebuild 2345 SHA256 7e600bd1113962306d859d13783e9c0e1582c99f5c056431e88ce8240abb6d23 SHA512 9392101cb729e11ed1aaa688b96489241cfe4d9e08038b787a6793f292ca9f2c5fe0c03e93f87a6f8c1bac9ef191bb92ca28a41598165762ee9a0ad20263033b WHIRLPOOL fac7ed2a4974003e2febb9fa34540a9017ba90883f4140dccaa8e19a63e920f6a3f20fb931eb08dfbcee275068d69cfac9d432fe86afc47e2538b7a539d0581e +EBUILD arno-iptables-firewall-2.0.1f_rc1.ebuild 2382 SHA256 db684215795e22c26e4fb8325a75e251d1b183eb0f30cccd0ed8d42b9e24453a SHA512 ffa821cda34330f02d5973d40959def681690afcb5c8f0f3352459bf3a35027ff8c1528cda612bef66d9f9b471c121721d47182aca8f5aaeb9333be44a299240 WHIRLPOOL aad21b976f28e9977fb0bb0585370b6fcaf7124aa5290b9f9846a2d574b5d78c890306302bff8d7c781ea0d2081480d80cc0da96f48b06903320d10c3eddf05e +MISC ChangeLog 3738 SHA256 947a905c567c2c50745ac2eb9c378a783c6decbfa4df7786fe7a0cc869d42e76 SHA512 1bbb1d3bae3c2999e1885df3f794ef02b6b0c9202e76c8c332536b1b6cd6fd6154fc16436c640eef27380f8511099820adaab4813b674d006e8b934f3e22bc0b WHIRLPOOL 25603cbad72eb1200824b4ad38d71943b1183bf91b6a630f95960bd635b8ce55edfcbeb315d8f91841879bef51d571aa24dbc179c23cb57aaf903fc0f39e54e8 +MISC ChangeLog-2015 3027 SHA256 03a97849c92cbddd77ca2d61d5692685fd617844d888c5d974262c1333e5e3ac SHA512 135c97f3f8860ba52ac35b2f4d9a3c5101661ca6f9612222747a8f517cb42e190a4ef498835928f85d1b81b3762cbffa4b6ed2f87fc16432a457a1da3a5cdee6 WHIRLPOOL b9594525173419640948b75900726dab052bbff0e10c8e57002a6e98aba5a988921c2d8c11e92e64e7a9a5f030bcf99b2c6f1aaa30d510dd6508abb9afb855d4 +MISC metadata.xml 423 SHA256 42e239edd5085c07bbea7adc06f774a8f94c412410198ebe1bf66828f1ec8737 SHA512 4d3402711020fd7ddecf5eae405bf4f72246347ea887f2f803c317c8b2d94ff830f68cf39e97526522f2d30845d95319e117efd49f06f685c046d0752c67546a WHIRLPOOL 29d07382af50d5fc0cfedcfa7515d899fd2f5b82faaf600c72d97567eae862f9241da364f0e4a738a415db4f5103debfbadd3f0c1ac094ad79563a4999ef3a3d diff --git a/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild new file mode 100644 index 000000000000..4d1cd0080b77 --- /dev/null +++ b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1e.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit readme.gentoo systemd + +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-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 (for OpenRC) +systemctl start ${PN} (for systemd) + +If you want to start this script at boot, run: + +rc-update add ${PN} default (for OpenRC) +systemctl enable ${PN} (for systemd)" + +src_prepare() { + sed -i -e 's:/usr/local/share/:/usr/libexec/:' \ + etc/"${PN}"/firewall.conf || die "Sed failed!" + sed -i -e 's:/usr/local/sbin/:/usr/sbin/:' \ + lib/systemd/system/"${PN}.service" || die "Sed failed!" +} + +src_install() { + insinto /etc/"${PN}" + doins etc/"${PN}"/firewall.conf + doins etc/"${PN}"/custom-rules + + doinitd "${FILESDIR}/${PN}" + systemd_dounit lib/systemd/system/"${PN}.service" + + 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/arno-iptables-firewall-2.0.1f_rc1.ebuild b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1f_rc1.ebuild new file mode 100644 index 000000000000..6ed34cb59a3b --- /dev/null +++ b/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.1f_rc1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit readme.gentoo systemd versionator + +DESCRIPTION="Arno's iptables firewall script" +HOMEPAGE="http://rocky.eld.leidenuniv.nl" + +MY_PV=$(replace_version_separator 3 -) +SRC_URI="http://rocky.eld.leidenuniv.nl/${PN}/${PN}_${MY_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-r1 + sys-apps/iproute2 + plugins? ( net-dns/bind-tools )" + +S="${WORKDIR}/${PN}_${MY_PV/rc/RC}" + +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 (for OpenRC) +systemctl start ${PN} (for systemd) + +If you want to start this script at boot, run: + +rc-update add ${PN} default (for OpenRC) +systemctl enable ${PN} (for systemd)" + +src_prepare() { + sed -i -e 's:/usr/local/share/:/usr/libexec/:' \ + etc/"${PN}"/firewall.conf || die "Sed failed!" + sed -i -e 's:/usr/local/sbin/:/usr/sbin/:' \ + lib/systemd/system/"${PN}.service" || die "Sed failed!" +} + +src_install() { + insinto /etc/"${PN}" + doins etc/"${PN}"/firewall.conf + doins etc/"${PN}"/custom-rules + + doinitd "${FILESDIR}/${PN}" + systemd_dounit lib/systemd/system/"${PN}.service" + + 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..40e32a9d8de0 --- /dev/null +++ b/net-firewall/arno-iptables-firewall/files/arno-iptables-firewall @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +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 +} diff --git a/net-firewall/arno-iptables-firewall/metadata.xml b/net-firewall/arno-iptables-firewall/metadata.xml new file mode 100644 index 000000000000..46b4fd2b7b23 --- /dev/null +++ b/net-firewall/arno-iptables-firewall/metadata.xml @@ -0,0 +1,15 @@ + + + + + erkiferenc@gmail.com + Ferenc Erki + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Install optional plugins + + -- cgit v1.2.3