diff options
author | Graham Forest <vladimir@gentoo.org> | 2003-03-09 05:52:21 +0000 |
---|---|---|
committer | Graham Forest <vladimir@gentoo.org> | 2003-03-09 05:52:21 +0000 |
commit | 0df6259dffde1e4d744aa38b9ba2993f74dd696b (patch) | |
tree | 31cc8a90c154f690412317d5b2d900b5edc3dd6c /net-misc | |
parent | extra dict words (diff) | |
download | gentoo-2-0df6259dffde1e4d744aa38b9ba2993f74dd696b.tar.gz gentoo-2-0df6259dffde1e4d744aa38b9ba2993f74dd696b.tar.bz2 gentoo-2-0df6259dffde1e4d744aa38b9ba2993f74dd696b.zip |
Fixed a bug where your working directory could be copied to /etc/gshield
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/gshield/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/gshield/files/digest-gshield-2.8-r2 | 1 | ||||
-rw-r--r-- | net-misc/gshield/gshield-2.8-r2.ebuild | 53 |
3 files changed, 62 insertions, 1 deletions
diff --git a/net-misc/gshield/ChangeLog b/net-misc/gshield/ChangeLog index e6f11dc6121e..4aea7c44b747 100644 --- a/net-misc/gshield/ChangeLog +++ b/net-misc/gshield/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/gshield # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/gshield/ChangeLog,v 1.3 2003/02/12 08:22:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/gshield/ChangeLog,v 1.4 2003/03/09 05:52:21 vladimir Exp $ + +*gshield-2.8-r2 (08 Mar 2003) + + 08 Mar 2003; Graham Forest <vladimir@gentoo.org> gshield-2.8-r2.ebuild: + Fixed a problem where your current directory would be copied to /etc/gshield, + and bumped revision so anyone who had such a problem will have those files + removed *gshield-2.8-r1 17 Jan 2003 diff --git a/net-misc/gshield/files/digest-gshield-2.8-r2 b/net-misc/gshield/files/digest-gshield-2.8-r2 new file mode 100644 index 000000000000..261190a62c55 --- /dev/null +++ b/net-misc/gshield/files/digest-gshield-2.8-r2 @@ -0,0 +1 @@ +MD5 46521eb1ffef68d5a9c45727a99e2baa gShield-2.8.tgz 47346 diff --git a/net-misc/gshield/gshield-2.8-r2.ebuild b/net-misc/gshield/gshield-2.8-r2.ebuild new file mode 100644 index 000000000000..6073017c5bbf --- /dev/null +++ b/net-misc/gshield/gshield-2.8-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2003 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-r2.ebuild,v 1.1 2003/03/09 05:52:21 vladimir Exp $ + +# re-capitalize gShield +S=${WORKDIR}/gShield-${PV} + +DESCRIPTION="iptables firewall configuration system" +HOMEPAGE="http://muse.linuxmafia.org/gshield.html" +SRC_URI="ftp://muse.linuxmafia.org/pub/gShield/v2/gShield-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +RDEPEND="sys-apps/iptables + net-dns/bind-tools" + +src_install() { + # config files + dodir /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 + dodir /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 + dodir /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 +} |