summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-firewall/sanewall/ChangeLog10
-rw-r--r--net-firewall/sanewall/Manifest23
-rw-r--r--net-firewall/sanewall/files/sanewall.confd3
-rw-r--r--net-firewall/sanewall/files/sanewall.initd16
-rw-r--r--net-firewall/sanewall/sanewall-1.1.6-r1.ebuild57
5 files changed, 88 insertions, 21 deletions
diff --git a/net-firewall/sanewall/ChangeLog b/net-firewall/sanewall/ChangeLog
index 2c4dcf2f8395..ff761e7ca412 100644
--- a/net-firewall/sanewall/ChangeLog
+++ b/net-firewall/sanewall/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-firewall/sanewall
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/ChangeLog,v 1.4 2013/11/06 06:00:14 radhermit Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/ChangeLog,v 1.5 2014/11/28 17:04:05 radhermit Exp $
+
+*sanewall-1.1.6-r1 (28 Nov 2014)
+
+ 28 Nov 2014; Tim Harder <radhermit@gentoo.org> +sanewall-1.1.6-r1.ebuild,
+ files/sanewall.confd, files/sanewall.initd:
+ Add support to pass sanewall arguments (bug #493860).
*sanewall-1.1.6 (06 Nov 2013)
diff --git a/net-firewall/sanewall/Manifest b/net-firewall/sanewall/Manifest
index b62ff7e96368..0836e4d022b3 100644
--- a/net-firewall/sanewall/Manifest
+++ b/net-firewall/sanewall/Manifest
@@ -1,8 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX sanewall.confd 76 SHA256 64262b97bcaff9c16ad2a3cf1c756e811e830688aa974e4cbe8ccb930c06ba06 SHA512 8921a310e6940454c7d74dfcabd956f9334a3a493fdde00c5d7e5cb5135f6919025e22add73445eebf69eab11f0cfb8fad82d15408f97a6fcb4b8a08a1c4ec2b WHIRLPOOL d02520793b7b4be6ea210df611d73a25c6b216e8fb042cf908ea8f44c4a364648522cc1dbf9c8cbb1ebf959df3cb18f4373db2f010e62cde7b06f6272bc1a948
-AUX sanewall.initd 1068 SHA256 b746b42690ba1d808df0d4bdd329af853a3412c89d94b77485119060649013d9 SHA512 47f9e183f95ee38d1bfcb828f14aae1957f79385e6b669a45f93fe25d8410d006d36312a41a851a9c6c1580fe2a9d243a91a8559723586df4508fc33ab6e1873 WHIRLPOOL db47c55201d5798f03446685a5180c96f55a12c4d6f0c90f47cafe70c63ac0acaf732dffd3fa7096cbf6c6061f2b5b7200cf3f0fced638f12cd82426dd1d85d3
+AUX sanewall.confd 120 SHA256 b489da8c9a2254956191429aec83cfda2a33ca6624e3fe7f41ca38fbd6d67bd8 SHA512 5b8468d6e167ab00e37481618650f4844cb186465097a3cbca8a462940f324d50447d464d8db58666c77909231c3d664022bd7979501d3496ad627bf726cfa7e WHIRLPOOL f50ed841d8bf38ce0d81a413103a9934eb2ba8281c6902e4a37e93cd891dfb2f067e2ffdd903541d9d3a17c34a553094dc47eb3d0b4809c51c46bc14fe4a6146
+AUX sanewall.initd 1170 SHA256 86f7ae019f322607b6682c432e64d282f0f4d73142675b2d6c13c3b4e3d00559 SHA512 8e479b987af8391d9e346b1795960e773196e23f57c32cf638c0e3f30ee15767ec9cd64b33579b0ada0ee2cc9a61d83e7067671d8af74d7397d3b5d366a82bcf WHIRLPOOL ba940279751cf981d88d5519130c59afd1710f6ec854e510b92f6fcb09dab1fee3f8f337a689ae2f97ba228cd41620b2abd8ee421d0cfdd8267052e5c1f9147a
DIST sanewall-1.1.3.tar.xz 578564 SHA256 c03da8d51401175b3041755ded48d86df7e49e5dcf188029a6faea5809bab3fb SHA512 4613577a8bdd9fcb097f2ff1e74f52f3d6abea118cdcec2960d9ab3a179fb10d59769ed24c125d7e40ef4e635f7342914f34b4cdc8c1ca66161ff833ea3718ad WHIRLPOOL d52f6430a7c059977fff6956117026c2cab1dfd954d778ef906dfe03bd70facb3e14dadcf2e523f7fc0a59971ebb601cabe9dc24bff4a64332fe9270876defd1
DIST sanewall-1.1.4.tar.xz 584240 SHA256 06d4e134eb8267c3eedf00b7a89b61dc6c71cb0704603f5c3b8bc3f049a77947 SHA512 43051d2240babded55e903cdc039633a5f1092c615cd701a4565770dd52329eb3066fc23e93f377b776243607bc130627acae90d549f02bf4f937260708e27e9 WHIRLPOOL 1b59f58344a219f8764a19f3c59ed6f0b994f49d929777604f9053d6db1c2b3965e2e1fe1d7c75939cb1dea554a409676e58711e900b762ec77d2ae7e8072348
DIST sanewall-1.1.5.tar.xz 584940 SHA256 062b6300e9713612321349ce190145fde21638f696e229be4ba4018acaa46886 SHA512 1f530585a494cb7c2177ce2bcbd8e186b143cefc0210df26bef1f6d283d7caa0d05b8f0d449795fc21ff5af8ac30a56155e251c1e4c8d2bf92af5292393d017a WHIRLPOOL e5856d9bfae0ffebd9b043d9bca2c10c8841ab567263144e6bd7f5039b6fd84419f89b56e4430406a88240e17f865a8b33bc337b03a7b6e1b8523f3ad0367c66
@@ -10,17 +10,18 @@ DIST sanewall-1.1.6.tar.xz 585316 SHA256 c26a339a1ac945aa0ddffbbb92ac4dff07302da
EBUILD sanewall-1.1.3.ebuild 1610 SHA256 fc3ae75887854245649e9a08f9c6b4b2273e534ff6133248b3f76ccafe911371 SHA512 f0b209673cbe027eaadd4cb2939736e9b2abb4b7354bd6f9d1c9bb9b7e6bc544586c214367ca0776c57ad5bf1370ee5de11e13be0502a9a120151747568a39b3 WHIRLPOOL c5bf124c79180da7353755c077ce13c427c45af025b1e87d4c23f0ee103cc4d6ae22a89eb2f042b38cb9d9206e65ee7b480bbf03981bd47f3cd1f60f6f1f9e82
EBUILD sanewall-1.1.4.ebuild 1610 SHA256 e4a8dc8fdcd90a7a725548b222d81d75a9f6b873919bd61322a699e277995fc0 SHA512 9efbbef08a355660a7af7ed11d80ce4d2ebe06b7267857112ad4e84592c93238bafda49dbba706d7d025ae790789d993fb501e9592c6757a5a336f5648d4af53 WHIRLPOOL ee6c2b2501dde2674575ee899f0095425f5ccaa66fb4872087da8e1531a9c38abfb50e3864af66d9d7d4acd0ff31d8bb5a0a550eb767ab7214b04389b6545367
EBUILD sanewall-1.1.5.ebuild 1610 SHA256 20ce89afe56d140794501a0c78d1b0bb8481ebe083e33a960abc7a05c3a0526e SHA512 c0c2b50f27f59a7c591710b7afebafef1c0ec72bf3358b06d83dc744591fa7615ca038a6b58f9b56ce861808f86d30cc42892281c9921254680d27cafd5ceda6 WHIRLPOOL ab5d75541468ccb821a202055cc49fd2edc5fc8fd9a595ae87cb7c01fd855e2e158a6a7a9b5c963ed42b5294d1b3a40df07ef317534a31dadc3a1b0ecfb6aedf
+EBUILD sanewall-1.1.6-r1.ebuild 1619 SHA256 66021d14137b3210c1987e58b36657f8b2c42f2cc58e2c2b41c22fad3729b8fa SHA512 bbf4ce6a0bc05df0eb4996b0dd6d444ad4ca6e1161e555844e0c7219b6832ee7dc9ea7662a29c2905d5a31fcec48119ed2c5075caa067767b2adb311c82135c6 WHIRLPOOL eaa72c29b2a124bc0774b7d713399221ffebf43ee022d8571284c1f449dbf1fc95ba7430c46c227afcc744103339463fc50bab70fea1cdac4ab7e3b8bdda3af6
EBUILD sanewall-1.1.6.ebuild 1616 SHA256 f1f00d27652a7a863f369dcf7eae8efd0777cc3ada41eaf15f84b561e33b872d SHA512 3cb664566f7bd8b1560e62006a1fba6134b124356fe5f5f04cde845355d053dcd9aac6bce61a6c199bf7983ca5c65bed72ceb7703f7fbf6cd395636a7a9e91cf WHIRLPOOL be42cf5f0d7b120b934966137d5059a59c8c63da286d3aa75a028bb3567013af38eaf812341a18227ef9eaff5af1f0e31dae9e6156e0c382515097ae1a7388f0
-MISC ChangeLog 823 SHA256 cc2cfbbae8ad554dd868a7d65c3dc20c2af0fb9d28c0ae49a5a504eefb4b59f6 SHA512 19c6dec963e4d13e1a317b618bc20a20323dee4425e6dca29c26ecce2b1d7f93351cf474b86419427f3351871a41ae29f3bbd7b6a00816e594b0d2b5b7764dd9 WHIRLPOOL db9c9626b3ed33cc1cad5db9a9cc86289ea4f6a402b06971838e134aabd8bbe4394e3ae661ffb23ce345ff2b03062b1be8dd0c1f328f2d1ba6d48c2d6d12c548
+MISC ChangeLog 1036 SHA256 fa2d30460b58355a6b8c253ae26873b443f38aa07deaec4a9808b9a6e959a772 SHA512 dc64a73229d59159ed65a3737983d590e4b62c2d64ffe63a842d9da7b7e2c70695a89307752f92df3fdf5d917af2d8aa6fdb8852d771c1ea6720e48800f79b5b WHIRLPOOL c842af929acdd277f4eaa0d8605e9d628beda3b670357c5e9f5591a882e47d2834dd00b5a5c9d280cb66efee4cf6fb850687e22e306d13ef1545b0b86417ae34
MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iQEcBAEBCAAGBQJSedryAAoJEEqz6FtPBkyjGJ4H/jaSkOZepW1hz4uiXSpNL0mY
-SrXZvyaukKfR2dwpaLzL3jdHJN/Y2eEJkJLDaZDpouvfGdBGHe/KDC29djFcCQ2Z
-riQybVEn2KR1PEuEMW0d0Zu6haZo6E5L5t8/pLp+apRrRngGAd5hz/umA6sBjhew
-FxZbgg3IrUsQV4mKRVn4isvpisOya9TojZVYizAaz0z+1trbTe1OtvDaeHklSxoG
-sHHHZTPDGMsImCpAHQgG1c/3pdzZWx0ExESnc63dgNgSDiZniXasM8/YVzDWcm3C
-p6jv8TCxU9rqzbb3E32jxr8ggaAQ18qjKb1Fx4HhVhsFLHCb+sqejySYe3JgCxM=
-=Fdeq
+iQEcBAEBCAAGBQJUeKsNAAoJEEqz6FtPBkyjUGgH/j1itDJfcX6LlyjdMrIuNQnc
+Ycxmy9bhGWYUikMDX6WnpyIxouSDAtWDor/AcX4SSXeLnpQgo+B5gydeZmEO6ZZ2
+AFHscbEuMKOhn7p5BBNDJrlO4tewNKMw7oYkjp11f1JX5HdZG36j2hWwWLDdtLhC
+8/UlxElnAaRlsZPOTpBCeoTzEi4uQPsuRYwMYtDZv4FcYFu7FMWycU3OP7GSuvvn
+RaZt2r3aG4OijqWXd4Azgms+ppzuzm6V7FyAyCGoA4b79qlAhkISM9jMGWJFfooU
+X50CBwwsKnrMi1nuitlEQBZ1i5NpOyyY6TMhqVB7epo2qoq8skgqXQLCvJ6U9og=
+=xVD0
-----END PGP SIGNATURE-----
diff --git a/net-firewall/sanewall/files/sanewall.confd b/net-firewall/sanewall/files/sanewall.confd
index fa847f11e292..2193b04d49bf 100644
--- a/net-firewall/sanewall/files/sanewall.confd
+++ b/net-firewall/sanewall/files/sanewall.confd
@@ -1,2 +1,5 @@
# location of sanewall config
SANEWALL_CONFIG="/etc/sanewall/sanewall.conf"
+
+# arguments for sanewall
+#SANEWALL_OPTS=""
diff --git a/net-firewall/sanewall/files/sanewall.initd b/net-firewall/sanewall/files/sanewall.initd
index fa333bd4b83a..6e53504d012e 100644
--- a/net-firewall/sanewall/files/sanewall.initd
+++ b/net-firewall/sanewall/files/sanewall.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/files/sanewall.initd,v 1.1 2013/06/15 11:07:43 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/files/sanewall.initd,v 1.2 2014/11/28 17:04:05 radhermit Exp $
extra_commands="save panic try"
extra_started_commands="reload"
@@ -22,36 +22,36 @@ start_pre() {
start() {
ebegin "Starting sanewall"
- /usr/sbin/sanewall ${SANEWALL_CONFIG} start >/dev/null
+ /usr/sbin/sanewall ${SANEWALL_OPTS} ${SANEWALL_CONFIG} start >/dev/null
eend $?
}
stop() {
ebegin "Stopping sanewall"
- /usr/sbin/sanewall stop >/dev/null
+ /usr/sbin/sanewall ${SANEWALL_OPTS} stop >/dev/null
eend $?
}
try() {
ebegin "Trying sanewall configuration"
- /usr/sbin/sanewall ${SANEWALL_CONFIG} try
+ /usr/sbin/sanewall ${SANEWALL_OPTS} ${SANEWALL_CONFIG} try
eend $?
}
status() {
ebegin "Showing sanewall status"
- /usr/sbin/sanewall status
+ /usr/sbin/sanewall ${SANEWALL_OPTS} status
eend $?
}
panic() {
ebegin "sanewall panic"
- /usr/sbin/sanewall panic
+ /usr/sbin/sanewall ${SANEWALL_OPTS} panic
eend $?
}
save() {
ebegin "Saving sanewall configuration"
- /usr/sbin/sanewall save
+ /usr/sbin/sanewall ${SANEWALL_OPTS} save
eend $?
}
diff --git a/net-firewall/sanewall/sanewall-1.1.6-r1.ebuild b/net-firewall/sanewall/sanewall-1.1.6-r1.ebuild
new file mode 100644
index 000000000000..b85ec86ad5b9
--- /dev/null
+++ b/net-firewall/sanewall/sanewall-1.1.6-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/sanewall-1.1.6-r1.ebuild,v 1.1 2014/11/28 17:04:05 radhermit Exp $
+
+EAPI=5
+
+inherit linux-info
+
+DESCRIPTION="iptables firewall generator (fork of firehol)"
+HOMEPAGE="http://www.sanewall.org/"
+SRC_URI="http://download.sanewall.org/releases/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND="net-firewall/iptables[ipv6]
+ sys-apps/iproute2[-minimal]
+ virtual/modutils
+ || (
+ net-misc/wget
+ net-misc/curl
+ )"
+
+pkg_setup() {
+ local KCONFIG_OPTS="~NF_CONNTRACK_IPV4 ~NF_CONNTRACK_MARK ~NF_NAT ~NF_NAT_FTP ~NF_NAT_IRC \
+ ~IP_NF_IPTABLES ~IP_NF_FILTER ~IP_NF_TARGET_REJECT ~IP_NF_TARGET_LOG ~IP_NF_TARGET_ULOG \
+ ~IP_NF_TARGET_MASQUERADE ~IP_NF_TARGET_REDIRECT ~IP_NF_MANGLE \
+ ~NETFILTER_XT_MATCH_LIMIT ~NETFILTER_XT_MATCH_STATE ~NETFILTER_XT_MATCH_OWNER"
+
+ get_version
+ if [[ ${KV_PATCH} -ge 25 ]] ; then
+ CONFIG_CHECK="~NF_CONNTRACK ${KCONFIG_OPTS}"
+ else
+ CONFIG_CHECK="~NF_CONNTRACK_ENABLED ${KCONFIG_OPTS}"
+ fi
+ linux-info_pkg_setup
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_install() {
+ default
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}
+
+pkg_postinst() {
+ # install default configuration if it doesn't exist
+ if [[ ! -e "${ROOT}"/etc/${PN}/${PN}.conf ]] ; then
+ einfo "Installing a sample configuration to ${ROOT}/etc/${PN}/${PN}.conf"
+ cp "${ROOT}"/etc/${PN}/${PN}.conf.example "${ROOT}"/etc/${PN}/${PN}.conf || die
+ fi
+}