add ebuild for shorwall iptables firewall, see bug 9428
authorZack Welch <zwelch@gentoo.org>
Thu, 24 Oct 2002 08:17:22 +0000 (08:17 +0000)
committerZack Welch <zwelch@gentoo.org>
Thu, 24 Oct 2002 08:17:22 +0000 (08:17 +0000)
net-misc/shorewall/ChangeLog [new file with mode: 0644]
net-misc/shorewall/files/digest-shorewall-1.3.9b [new file with mode: 0644]
net-misc/shorewall/files/shorewall [new file with mode: 0644]
net-misc/shorewall/shorewall-1.3.9b.ebuild [new file with mode: 0644]

diff --git a/net-misc/shorewall/ChangeLog b/net-misc/shorewall/ChangeLog
new file mode 100644 (file)
index 0000000..85adce8
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/shorewall
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-misc/shorewall/ChangeLog,v 1.1 2002/10/24 08:17:22 zwelch Exp $
+
+*shorewall-1.3.9b (17 Oct 2002)
+  23 Oct 2002; Zach Welch <zwelch@gentoo.org> :
+  update and commit ebuild
+
+  17 Oct 2002; Andreas Erhart <andi@zollhaus.net> :
+  shorewall-1.3.9b.ebuild, files/digest-shorewall-1.3.9b
+  initial release
diff --git a/net-misc/shorewall/files/digest-shorewall-1.3.9b b/net-misc/shorewall/files/digest-shorewall-1.3.9b
new file mode 100644 (file)
index 0000000..6a395c2
--- /dev/null
@@ -0,0 +1 @@
+MD5 112b76b10380e028778a3daf3e8833bd shorewall-1.3.9b.tgz 1317090
diff --git a/net-misc/shorewall/files/shorewall b/net-misc/shorewall/files/shorewall
new file mode 100644 (file)
index 0000000..843cf27
--- /dev/null
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+       need net
+       provide firewall
+}
+
+start() {
+       ebegin "Starting firewall"
+       /sbin/shorewall start 1>/dev/null
+       eend $? 
+}
+
+stop() {
+       ebegin "Stopping firewall"
+       /sbin/shorewall stop 1>/dev/null
+       eend $?
+}
+
+restart() {
+       ebegin "Restarting firewall"
+       /sbin/shorewall restart
+       eend $?
+}
diff --git a/net-misc/shorewall/shorewall-1.3.9b.ebuild b/net-misc/shorewall/shorewall-1.3.9b.ebuild
new file mode 100644 (file)
index 0000000..d7c58bb
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /home/cvsroot/gentoo-x86/net-misc/shorewall/shorewall-1..3.9b.ebuild
+
+MY_P=shorewall-1.3.9b
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Full state iptables firewall"
+SRC_URI="http://www.shorewall.net/pub/shorewall/${MY_P}.tgz"
+HOMEPAGE="http://www.shorewall.net"
+LICENSE="GPL"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+SLOT="0"
+
+DEPEND="virtual/glibc
+       sys-apps/iptables
+       sys-apps/iproute"
+
+src_compile() {
+       echo "nothing to compile!"
+}
+
+src_install () {
+       mkdir -p ${D}/etc/init.d
+       mkdir -p ${D}/var/state
+       PREFIX=${D} ./install.sh || die
+       rm -f ${D}/usr/lib/shorewall/firewall
+       cp ${D}/etc/init.d/shorewall ${D}/usr/lib/shorewall/firewall
+       rm -rf ${D}/etc/init.d
+       
+exeinto /etc/init.d
+       newexe ${FILESDIR}/shorewall shorewall
+}
+pkg_postinst() {
+       echo -e "\e[32;01m Read the documentatition from http://www.shorewall.net \033[0m"
+       echo -e "\e[32;01m and edit the files in /etc/shorewall before starting the firewall \033[0m"
+       echo
+}