diff options
author | Chris Houser <chouser@gentoo.org> | 2002-10-17 16:56:38 +0000 |
---|---|---|
committer | Chris Houser <chouser@gentoo.org> | 2002-10-17 16:56:38 +0000 |
commit | 100de684ad26e667483ef904ef70a20a5795cc61 (patch) | |
tree | b0e3535fab53c008cc3cf2c5a18c59236204a534 /net-misc | |
parent | KEYWORDS for alpha (diff) | |
download | historical-100de684ad26e667483ef904ef70a20a5795cc61.tar.gz historical-100de684ad26e667483ef904ef70a20a5795cc61.tar.bz2 historical-100de684ad26e667483ef904ef70a20a5795cc61.zip |
Initial ebuild.
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/gshield/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/gshield/files/digest-gshield-2.8 | 2 | ||||
-rw-r--r-- | net-misc/gshield/files/gshield.init | 27 | ||||
-rw-r--r-- | net-misc/gshield/gshield-2.8.ebuild | 51 |
4 files changed, 89 insertions, 0 deletions
diff --git a/net-misc/gshield/ChangeLog b/net-misc/gshield/ChangeLog new file mode 100644 index 000000000000..7e76aba93625 --- /dev/null +++ b/net-misc/gshield/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-misc/gshield +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gshield/ChangeLog,v 1.1 2002/10/17 16:56:38 chouser Exp $ + +*gshield-2.8 17 Oct 2002 + + 17 Oct 2002; Chris Houser <chouser@gentoo.org> gshield-2.8.ebuild, + files/digest-gshield-2.8, files/gshield.init, ChangeLog: Initial package, + including init script. diff --git a/net-misc/gshield/files/digest-gshield-2.8 b/net-misc/gshield/files/digest-gshield-2.8 new file mode 100644 index 000000000000..89611eb8093c --- /dev/null +++ b/net-misc/gshield/files/digest-gshield-2.8 @@ -0,0 +1,2 @@ +MD5 46521eb1ffef68d5a9c45727a99e2baa gShield-2.8.tgz 47346 +MD5 73038a43e0e19e1aa80b5aa13b9e0562 gShield-2.8.tgz.md5.sign 329 diff --git a/net-misc/gshield/files/gshield.init b/net-misc/gshield/files/gshield.init new file mode 100644 index 000000000000..fea4875fec59 --- /dev/null +++ b/net-misc/gshield/files/gshield.init @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/gshield/files/gshield.init,v 1.1 2002/10/17 16:56:38 chouser Exp $ + +depend() { + need logger net +} + +start() { + ebegin "Loading gShield network firewall" + /usr/share/gshield/gShield.rc start > /dev/null + # check that it loaded + iptables -L DMZ > /dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Unloading gShield network firewall" + /usr/share/gshield/gShield.rc stop > /dev/null + # check that it unloaded + if iptables -L DMZ > /dev/null 2>&1 ; then + eend 1 + else + eend 0; + fi +} diff --git a/net-misc/gshield/gshield-2.8.ebuild b/net-misc/gshield/gshield-2.8.ebuild new file mode 100644 index 000000000000..6992e25d3ce7 --- /dev/null +++ b/net-misc/gshield/gshield-2.8.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gshield/gshield-2.8.ebuild,v 1.1 2002/10/17 16:56:38 chouser Exp $ + +# re-capitalize gShield +P=gShield-${P#*-} + +DESCRIPTION="iptables firewall configuration system" +HOMEPAGE="http://muse.linuxmafia.org/gshield.html" +SRC_URI="ftp://muse.linuxmafia.org/pub/gShield/v2/${P}.tgz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="x86" +DEPEND="sys-apps/iptables" + +src_install () { + # config files + mkdir -p ${D}/etc/gshield + cp -a * ${D}/etc/gshield + ln -s gshield ${D}/etc/firewall + + # get rid of docs from config + rm -rf ${D}/etc/gshield/{Changelog,INSTALL,LICENSE,docs} + + # move non-config stuff out of config, but make symlinks + mkdir -p ${D}/usr/share/gshield/routables + for q in gShield-version gShield.rc tools sourced routables/routable.rules + do + mv ${D}/etc/gshield/$q ${D}/usr/share/gshield/ + ln -s /usr/share/gshield/$q ${D}/etc/gshield/$q + done + chmod -R u+rwX ${D}/etc/gshield + + # install init script + mkdir -p ${D}/etc/init.d + cp ${FILESDIR}/gshield.init ${D}/etc/init.d/gshield + chmod -R u+rwx ${D}/etc/init.d/gshield + + # docs + dodoc Changelog INSTALL LICENSE docs/* +} + +pkg_postinst () { + einfo + einfo "Before running /etc/init.d/gshield or adding it to a runlevel with" + einfo "rc-update, be sure to edit the firewall config file so that it will" + einfo "work for your site:" + einfo " ${EDITOR} /etc/gshield/gShield.conf" + einfo +} |