diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-06-15 11:07:43 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-06-15 11:07:43 +0000 |
commit | 8db99882ff08612583f354f96d2108fe7099d341 (patch) | |
tree | de396a26e6e040701e6ec551b3d30f8d6c43e7e6 /net-firewall/sanewall | |
parent | Version bump. (diff) | |
download | gentoo-2-8db99882ff08612583f354f96d2108fe7099d341.tar.gz gentoo-2-8db99882ff08612583f354f96d2108fe7099d341.tar.bz2 gentoo-2-8db99882ff08612583f354f96d2108fe7099d341.zip |
Initial import.
(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'net-firewall/sanewall')
-rw-r--r-- | net-firewall/sanewall/ChangeLog | 10 | ||||
-rw-r--r-- | net-firewall/sanewall/Manifest | 6 | ||||
-rw-r--r-- | net-firewall/sanewall/files/sanewall.confd | 2 | ||||
-rw-r--r-- | net-firewall/sanewall/files/sanewall.initd | 57 | ||||
-rw-r--r-- | net-firewall/sanewall/metadata.xml | 8 | ||||
-rw-r--r-- | net-firewall/sanewall/sanewall-1.1.3.ebuild | 57 |
6 files changed, 140 insertions, 0 deletions
diff --git a/net-firewall/sanewall/ChangeLog b/net-firewall/sanewall/ChangeLog new file mode 100644 index 000000000000..7cddeadec663 --- /dev/null +++ b/net-firewall/sanewall/ChangeLog @@ -0,0 +1,10 @@ +# 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.1 2013/06/15 11:07:43 radhermit Exp $ + +*sanewall-1.1.3 (15 Jun 2013) + + 15 Jun 2013; Tim Harder <radhermit@gentoo.org> +sanewall-1.1.3.ebuild, + +files/sanewall.confd, +files/sanewall.initd, +metadata.xml: + Initial import. + diff --git a/net-firewall/sanewall/Manifest b/net-firewall/sanewall/Manifest new file mode 100644 index 000000000000..eac85038a629 --- /dev/null +++ b/net-firewall/sanewall/Manifest @@ -0,0 +1,6 @@ +AUX sanewall.confd 76 SHA256 64262b97bcaff9c16ad2a3cf1c756e811e830688aa974e4cbe8ccb930c06ba06 SHA512 8921a310e6940454c7d74dfcabd956f9334a3a493fdde00c5d7e5cb5135f6919025e22add73445eebf69eab11f0cfb8fad82d15408f97a6fcb4b8a08a1c4ec2b WHIRLPOOL d02520793b7b4be6ea210df611d73a25c6b216e8fb042cf908ea8f44c4a364648522cc1dbf9c8cbb1ebf959df3cb18f4373db2f010e62cde7b06f6272bc1a948 +AUX sanewall.initd 961 SHA256 eabbaf3c1e090a6bfe0a8ce92876dbf9fe6567802e480b9067f0ab274b005638 SHA512 47e6fc6a1cc3739afe29cfe4413e6060e5759a0cc9ddb07d0ab40105c665dd48d4fc1341c0a2c0ba38faa6a0a96d3335b8f7c2ee5f71e26127c37f74b0396277 WHIRLPOOL 242e5d60c3e4d1b43b47208a1e4e2b4730ed87d6a8598a9f37980b736143cab0ecb9fbcaeed2ebfba5d25d43d37782b739b01e58dc4139597ece0cfad0ea065f +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 +MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2 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 +} |