summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-06-15 11:07:46 +0000
committerTim Harder <radhermit@gentoo.org>2013-06-15 11:07:46 +0000
commit77ed2eb83d6fa0845dbf8a9d410b47f003d6249a (patch)
tree934bfccfda384bfa32ece95ff222bb565ba4d38c /net-firewall/sanewall
parentInitial import. (diff)
downloadhistorical-77ed2eb83d6fa0845dbf8a9d410b47f003d6249a.tar.gz
historical-77ed2eb83d6fa0845dbf8a9d410b47f003d6249a.tar.bz2
historical-77ed2eb83d6fa0845dbf8a9d410b47f003d6249a.zip
Initial import.
Package-Manager: portage-2.2.0_alpha179/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'net-firewall/sanewall')
-rw-r--r--net-firewall/sanewall/Manifest20
-rw-r--r--net-firewall/sanewall/files/sanewall.confd2
-rw-r--r--net-firewall/sanewall/files/sanewall.initd57
-rw-r--r--net-firewall/sanewall/metadata.xml8
-rw-r--r--net-firewall/sanewall/sanewall-1.1.3.ebuild57
5 files changed, 141 insertions, 3 deletions
diff --git a/net-firewall/sanewall/Manifest b/net-firewall/sanewall/Manifest
index eac85038a629..5a2a6b7c254b 100644
--- a/net-firewall/sanewall/Manifest
+++ b/net-firewall/sanewall/Manifest
@@ -1,6 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX sanewall.confd 76 SHA256 64262b97bcaff9c16ad2a3cf1c756e811e830688aa974e4cbe8ccb930c06ba06 SHA512 8921a310e6940454c7d74dfcabd956f9334a3a493fdde00c5d7e5cb5135f6919025e22add73445eebf69eab11f0cfb8fad82d15408f97a6fcb4b8a08a1c4ec2b WHIRLPOOL d02520793b7b4be6ea210df611d73a25c6b216e8fb042cf908ea8f44c4a364648522cc1dbf9c8cbb1ebf959df3cb18f4373db2f010e62cde7b06f6272bc1a948
-AUX sanewall.initd 961 SHA256 eabbaf3c1e090a6bfe0a8ce92876dbf9fe6567802e480b9067f0ab274b005638 SHA512 47e6fc6a1cc3739afe29cfe4413e6060e5759a0cc9ddb07d0ab40105c665dd48d4fc1341c0a2c0ba38faa6a0a96d3335b8f7c2ee5f71e26127c37f74b0396277 WHIRLPOOL 242e5d60c3e4d1b43b47208a1e4e2b4730ed87d6a8598a9f37980b736143cab0ecb9fbcaeed2ebfba5d25d43d37782b739b01e58dc4139597ece0cfad0ea065f
+AUX sanewall.initd 1068 SHA256 b746b42690ba1d808df0d4bdd329af853a3412c89d94b77485119060649013d9 SHA512 47f9e183f95ee38d1bfcb828f14aae1957f79385e6b669a45f93fe25d8410d006d36312a41a851a9c6c1580fe2a9d243a91a8559723586df4508fc33ab6e1873 WHIRLPOOL db47c55201d5798f03446685a5180c96f55a12c4d6f0c90f47cafe70c63ac0acaf732dffd3fa7096cbf6c6061f2b5b7200cf3f0fced638f12cd82426dd1d85d3
DIST sanewall-1.1.3.tar.xz 578564 SHA256 c03da8d51401175b3041755ded48d86df7e49e5dcf188029a6faea5809bab3fb SHA512 4613577a8bdd9fcb097f2ff1e74f52f3d6abea118cdcec2960d9ab3a179fb10d59769ed24c125d7e40ef4e635f7342914f34b4cdc8c1ca66161ff833ea3718ad WHIRLPOOL d52f6430a7c059977fff6956117026c2cab1dfd954d778ef906dfe03bd70facb3e14dadcf2e523f7fc0a59971ebb601cabe9dc24bff4a64332fe9270876defd1
-EBUILD sanewall-1.1.3.ebuild 1502 SHA256 4a6e3f6e2450794ae582d0d18b8cb2a4d68ae01f32c2fa99f3b89123d4f49ffe SHA512 13090e40e6a471657ecc3962fb4e00b3c93277bc10064305167299a4699de8088ec616504afafca9e61cbd099b7dca9db46c4fedf211956160f4f1ecc2516b55 WHIRLPOOL 4fa12f0685252645097107f355c5c558649b1dc39b39df3477a17149d318599cf2ad563c25301bfa0333dd791ed9e6e729816c695db7d317ade9e55f0d7ab508
-MISC ChangeLog 308 SHA256 85c31c5ab1e43dbb4b7fb42602b7f5dbae25fd5ba63db65280594c7cc91dffd3 SHA512 ae37d9afb7eb8f8e91e72f2a7848296043037d1e9bf77efab3965ae341c7c023faaa8bc113c82f97f5c4543c190245a45e3cec7b3394960122c9ec2157043a60 WHIRLPOOL 0091641ec2375ef7f7554153195c1733de2fe39f58eebb6cd8f88940ca02a8f3afeff694f62ded063cc0a3831d35e5449884c2667ddb8617ed4b5f87200a8738
+EBUILD sanewall-1.1.3.ebuild 1610 SHA256 fc3ae75887854245649e9a08f9c6b4b2273e534ff6133248b3f76ccafe911371 SHA512 f0b209673cbe027eaadd4cb2939736e9b2abb4b7354bd6f9d1c9bb9b7e6bc544586c214367ca0776c57ad5bf1370ee5de11e13be0502a9a120151747568a39b3 WHIRLPOOL c5bf124c79180da7353755c077ce13c427c45af025b1e87d4c23f0ee103cc4d6ae22a89eb2f042b38cb9d9206e65ee7b480bbf03981bd47f3cd1f60f6f1f9e82
+MISC ChangeLog 404 SHA256 d074e2142ad12b452338df86b37f753f81d3489a0a3ce6b7e7d8857e6a265d80 SHA512 4dd1b12830197be6fae0966fa4ce2884d0c2ce694cafe7de4680d78044f0ba90266259134d7a12faf93c8b09e0559cfb768a27f68e3b75d72747f33c17529cfa WHIRLPOOL a404a68f00e5d2502203eb2957022e957f8247be58b5485be6a5c27064fc245ef9798af9759f0727f265a055def2d2a493627a57c4c2dfc56a86d06a6f50ebea
MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRvEsBAAoJEEqz6FtPBkyjwl4IALgp9+Uca/kJQGHTMyydlNVZ
+2ocwKJxr+QTevcWCiIhVy6Ttq8qBcVJ9QiixGJEsjkNzF8PvROiKMyBFo6heTSJX
+tu1CKr3biX1YQO2frYe5zsBJh/nDwgcBeM/DkZJqhGb/2nFwECBOo59BjwLZO5GG
+bRPavecLNDdSav4ahkA2+gDsRkJ8YFIDy07Y/nzaG8gvDbrHUvmfrY2JWj2zH/qy
+CvKYcN8zcMRoDx7YKAdnE5Oc9fgWFp6eo6XzlkujLgsY0vFOWENjV/6di1/wC/tu
+3QnYW22ncDAJxo+jvBbCapy5upXKqnhjkY+Eg79ViMpBMJWO4FRUI6Q5M2zLmSA=
+=rW1L
+-----END PGP SIGNATURE-----
diff --git a/net-firewall/sanewall/files/sanewall.confd b/net-firewall/sanewall/files/sanewall.confd
new file mode 100644
index 000000000000..fa847f11e292
--- /dev/null
+++ b/net-firewall/sanewall/files/sanewall.confd
@@ -0,0 +1,2 @@
+# location of sanewall config
+SANEWALL_CONFIG="/etc/sanewall/sanewall.conf"
diff --git a/net-firewall/sanewall/files/sanewall.initd b/net-firewall/sanewall/files/sanewall.initd
new file mode 100644
index 000000000000..fa333bd4b83a
--- /dev/null
+++ b/net-firewall/sanewall/files/sanewall.initd
@@ -0,0 +1,57 @@
+#!/sbin/runscript
+# Copyright 1999-2013 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 $
+
+extra_commands="save panic try"
+extra_started_commands="reload"
+
+depend() {
+ need localmount
+ after bootmisc
+ before net
+ provide firewall
+}
+
+start_pre() {
+ if [ ! -f ${SANEWALL_CONFIG} ]; then
+ eerror "Not starting sanewall, missing config file ${SANEWALL_CONFIG}."
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting sanewall"
+ /usr/sbin/sanewall ${SANEWALL_CONFIG} start >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping sanewall"
+ /usr/sbin/sanewall stop >/dev/null
+ eend $?
+}
+
+try() {
+ ebegin "Trying sanewall configuration"
+ /usr/sbin/sanewall ${SANEWALL_CONFIG} try
+ eend $?
+}
+
+status() {
+ ebegin "Showing sanewall status"
+ /usr/sbin/sanewall status
+ eend $?
+}
+
+panic() {
+ ebegin "sanewall panic"
+ /usr/sbin/sanewall panic
+ eend $?
+}
+
+save() {
+ ebegin "Saving sanewall configuration"
+ /usr/sbin/sanewall save
+ eend $?
+}
diff --git a/net-firewall/sanewall/metadata.xml b/net-firewall/sanewall/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/net-firewall/sanewall/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-firewall/sanewall/sanewall-1.1.3.ebuild b/net-firewall/sanewall/sanewall-1.1.3.ebuild
new file mode 100644
index 000000000000..dc542338ace6
--- /dev/null
+++ b/net-firewall/sanewall/sanewall-1.1.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/sanewall-1.1.3.ebuild,v 1.1 2013/06/15 11:07:43 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
+ 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
+}