summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-01-22 08:44:06 +0000
committerPeter Volkov <pva@gentoo.org>2009-01-22 08:44:06 +0000
commita46ed3eae980eaac20f3a5b88fd741c6d5b198fb (patch)
tree124598a0c470d789a2183ab87187ac95a82817f8 /net-firewall
parentadded for supertuxkart (diff)
downloadhistorical-a46ed3eae980eaac20f3a5b88fd741c6d5b198fb.tar.gz
historical-a46ed3eae980eaac20f3a5b88fd741c6d5b198fb.tar.bz2
historical-a46ed3eae980eaac20f3a5b88fd741c6d5b198fb.zip
Initial import, bug #255437, thank Vieri for all work.
Package-Manager: portage-2.2_rc23/cvs/Linux i686
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/shorewall6-lite/ChangeLog10
-rw-r--r--net-firewall/shorewall6-lite/Manifest6
-rw-r--r--net-firewall/shorewall6-lite/files/shorewall6-lite.initd65
-rw-r--r--net-firewall/shorewall6-lite/metadata.xml9
-rw-r--r--net-firewall/shorewall6-lite/shorewall6-lite-4.2.4.1.ebuild64
5 files changed, 154 insertions, 0 deletions
diff --git a/net-firewall/shorewall6-lite/ChangeLog b/net-firewall/shorewall6-lite/ChangeLog
new file mode 100644
index 000000000000..c14787aafa78
--- /dev/null
+++ b/net-firewall/shorewall6-lite/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-firewall/shorewall6-lite
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/ChangeLog,v 1.1 2009/01/22 08:44:06 pva Exp $
+
+*shorewall6-lite-4.2.4.1 (22 Jan 2009)
+
+ 22 Jan 2009; Peter Volkov <pva@gentoo.org> +files/shorewall6-lite.initd,
+ +metadata.xml, +shorewall6-lite-4.2.4.1.ebuild:
+ Initial import, bug #255437, thank Vieri for all work.
+
diff --git a/net-firewall/shorewall6-lite/Manifest b/net-firewall/shorewall6-lite/Manifest
new file mode 100644
index 000000000000..07f2805204b0
--- /dev/null
+++ b/net-firewall/shorewall6-lite/Manifest
@@ -0,0 +1,6 @@
+AUX shorewall6-lite.initd 1615 RMD160 b39ca8bc782ec14f2d0926bc737991e9ebefd80d SHA1 ff0b1b9d31aef9bc89a61293c462972e12d884a2 SHA256 e95b1f797638fe2623ba14398f4a1ed1b08c97b824bf30dd1232be111b5b5852
+DIST shorewall-docs-html-4.2.4.tar.bz2 2721129 RMD160 24edbe7487c1677cd02fe855025851f788211042 SHA1 51f21c209d6541b4e246f9d6629839b1d7ac7c73 SHA256 36ee8f1e19e9e082bf751f58e0e682b6e5386b077caca2676f5a84269b2af8ee
+DIST shorewall6-lite-4.2.4.1.tar.bz2 50248 RMD160 f3065e66b2cd420b71e750991d5f7933f81e158d SHA1 5c9afae6ce87941405f2bad94966238f2f236433 SHA256 f932f93b5c503a1e651604626aed1dc71318dad54b1efc2c47e711caea36ce29
+EBUILD shorewall6-lite-4.2.4.1.ebuild 2065 RMD160 e7e359bb5ad707ffc77af78993efeb930e820e09 SHA1 2aa55852281204d9e2a721093207300ff63bc4e7 SHA256 60692ab47ca38a77f87c581b002d2993b64a9f24a414f6dca56558d62e895c0b
+MISC ChangeLog 449 RMD160 83265b0e07df9eeba5e98b26506a5ff1a61e83c3 SHA1 5537f16562d20bda9578ca5c8a58b831c80599ba SHA256 8fa409e8a763716ba90e2a0892a502b8fc582cf37afdc845c2082740f6397b41
+MISC metadata.xml 244 RMD160 ee4ca8f8adef45adbdca39183e5e01d049465be8 SHA1 510c91eccef2a77b282656755d3e507fe43d0cd1 SHA256 0f5986015d7f8061a91aecf6acad539e61f9ca6471fa490301fc560e22530830
diff --git a/net-firewall/shorewall6-lite/files/shorewall6-lite.initd b/net-firewall/shorewall6-lite/files/shorewall6-lite.initd
new file mode 100644
index 000000000000..a99b72c02562
--- /dev/null
+++ b/net-firewall/shorewall6-lite/files/shorewall6-lite.initd
@@ -0,0 +1,65 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/files/shorewall6-lite.initd,v 1.1 2009/01/22 08:44:06 pva Exp $
+
+opts="start stop restart clear reset refresh"
+
+depend() {
+ need net
+ provide firewall
+ after ulogd
+}
+
+start() {
+ ebegin "Starting firewall"
+ /sbin/shorewall6-lite -f start 1>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping firewall"
+ /sbin/shorewall6-lite stop 1>/dev/null
+ eend $?
+}
+
+restart() {
+ # shorewall comes with its own control script that includes a
+ # restart function, so refrain from calling svc_stop/svc_start
+ # here. Note that this comment is required to fix bug 55576;
+ # runscript.sh greps this script... (09 Jul 2004 agriffis)
+ ebegin "Restarting firewall"
+ if [ -f /var/lib/shorewall6-lite/restore ] ; then
+ /sbin/shorewall6-lite restore
+ else
+ /sbin/shorewall6-lite restart 1>/dev/null
+ fi
+ eend $?
+}
+
+clear() {
+ # clear will remove all the rules and bring the system to an unfirewalled
+ # state. (21 Nov 2004 eldad)
+
+ ebegin "Clearing all firewall rules and setting policy to ACCEPT"
+ /sbin/shorewall6-lite clear
+ eend $?
+}
+
+reset() {
+ # reset the packet and byte counters in the firewall
+
+ ebegin "Resetting the packet and byte counters in the firewall"
+ /sbin/shorewall6-lite reset
+ eend $?
+}
+
+refresh() {
+ # refresh the rules involving the broadcast addresses of firewall
+ # interfaces, the black list, traffic control rules and
+ # ECN control rules
+
+ ebegin "Refreshing firewall rules"
+ /sbin/shorewall6-lite refresh
+ eend $?
+}
diff --git a/net-firewall/shorewall6-lite/metadata.xml b/net-firewall/shorewall6-lite/metadata.xml
new file mode 100644
index 000000000000..89012d402a0c
--- /dev/null
+++ b/net-firewall/shorewall6-lite/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<maintainer>
+ <email>rentorbuy@yahoo.com</email>
+ <name>Vieri</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-firewall/shorewall6-lite/shorewall6-lite-4.2.4.1.ebuild b/net-firewall/shorewall6-lite/shorewall6-lite-4.2.4.1.ebuild
new file mode 100644
index 000000000000..bfde4cec1ce5
--- /dev/null
+++ b/net-firewall/shorewall6-lite/shorewall6-lite-4.2.4.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/shorewall6-lite-4.2.4.1.ebuild,v 1.1 2009/01/22 08:44:06 pva Exp $
+
+inherit versionator linux-info
+
+# Select version (stable, RC, Beta):
+MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)"
+MY_P_BETA="" # stable or experimental (eg. "-RC1" or "-Beta4")
+MY_PV_BASE=$(get_version_component_range 1-3)
+
+MY_PN="${PN/6-lite/}"
+MY_P="${MY_PN}-${MY_PV_BASE}${MY_P_BETA}"
+MY_P_DOCS="${MY_PN}-docs-html-${MY_PV_BASE}${MY_P_BETA}"
+
+DESCRIPTION="An iptables-based firewall whose config is handled by a normal Shorewall6."
+HOMEPAGE="http://www.shorewall.net/"
+SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}${MY_P_BETA}.tar.bz2
+ doc? ( http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+#DEPEND=">=net-firewall/iptables-1.4.0
+DEPEND=">=net-firewall/iptables-1.2.0
+ sys-apps/iproute2"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ if kernel_is lt 2 6 25 ; then
+ die "${PN} requires at least kernel 2.6.25."
+ fi
+}
+
+src_compile() {
+ einfo "Nothing to compile."
+}
+
+src_install() {
+ keepdir /var/lib/${PN}
+
+ cd "${WORKDIR}/${P}${MY_P_BETA}"
+ PREFIX="${D}" ./install.sh || die "install.sh failed"
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
+
+ dodoc changelog.txt releasenotes.txt
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Documentation is available at http://www.shorewall.net"
+ einfo "There are man pages for ${PN}(8) and for each"
+ einfo "configuration file."
+ einfo
+ einfo "You should have already generated a firewall script with"
+ einfo "'shorewall compile' on the administrative Shorewall6."
+ einfo "Please refer to"
+ einfo "http://www.shorewall.net/CompiledPrograms.html"
+ einfo
+ einfo "Known problems:"
+ einfo "http://shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/known_problems.txt"
+}