From b9b263ebbd19bd11c9607f7faa9511d1bdab514c Mon Sep 17 00:00:00 2001 From: Zack Welch Date: Thu, 24 Oct 2002 08:17:22 +0000 Subject: [PATCH] add ebuild for shorwall iptables firewall, see bug 9428 --- net-misc/shorewall/ChangeLog | 11 ++++++ .../shorewall/files/digest-shorewall-1.3.9b | 1 + net-misc/shorewall/files/shorewall | 26 +++++++++++++ net-misc/shorewall/shorewall-1.3.9b.ebuild | 37 +++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 net-misc/shorewall/ChangeLog create mode 100644 net-misc/shorewall/files/digest-shorewall-1.3.9b create mode 100644 net-misc/shorewall/files/shorewall create mode 100644 net-misc/shorewall/shorewall-1.3.9b.ebuild diff --git a/net-misc/shorewall/ChangeLog b/net-misc/shorewall/ChangeLog new file mode 100644 index 000000000000..85adce8771c6 --- /dev/null +++ b/net-misc/shorewall/ChangeLog @@ -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 : + update and commit ebuild + + 17 Oct 2002; Andreas Erhart : + 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 index 000000000000..6a395c282577 --- /dev/null +++ b/net-misc/shorewall/files/digest-shorewall-1.3.9b @@ -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 index 000000000000..843cf279fa9b --- /dev/null +++ b/net-misc/shorewall/files/shorewall @@ -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 index 000000000000..d7c58bb1d08d --- /dev/null +++ b/net-misc/shorewall/shorewall-1.3.9b.ebuild @@ -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 +} -- 2.26.2