Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (45 sloc) 1.547 kb
77cb677 Initial import
drobbins@funtoo.org authored
1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/gshield/gshield-2.8-r2.ebuild,v 1.8 2007/10/28 14:06:53 phreak Exp $
4
5 # re-capitalize gShield
6 S=${WORKDIR}/gShield-${PV}
7
8 DESCRIPTION="iptables firewall configuration system"
9 HOMEPAGE="http://muse.linuxmafia.org/gshield.html"
10 SRC_URI="ftp://muse.linuxmafia.org/pub/gShield/v2/gShield-${PV}.tgz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc x86"
15 IUSE=""
16
17 RDEPEND="net-firewall/iptables
18 net-dns/bind-tools
19 virtual/logger"
20
21 src_install() {
22 # config files
23 dodir /etc/gshield
24 cp -pPR * ${D}/etc/gshield
25 ln -s gshield ${D}/etc/firewall
26
27 # get rid of docs from config
28 rm -rf ${D}/etc/gshield/{Changelog,INSTALL,LICENSE,docs}
29
30 # move non-config stuff out of config, but make symlinks
31 dodir /usr/share/gshield/routables
32 for q in gShield-version gShield.rc tools sourced routables/routable.rules
33 do
34 mv ${D}/etc/gshield/$q ${D}/usr/share/gshield/
35 ln -s /usr/share/gshield/$q ${D}/etc/gshield/$q
36 done
37 chmod -R u+rwX ${D}/etc/gshield
38
39 # install init script
40 dodir /etc/init.d
41 cp ${FILESDIR}/gshield.init ${D}/etc/init.d/gshield
42 chmod -R u+rwx ${D}/etc/init.d/gshield
43
44 # docs
45 dodoc Changelog INSTALL LICENSE docs/*
46 }
47
48 pkg_postinst() {
49 einfo
50 einfo "Before running /etc/init.d/gshield or adding it to a runlevel with"
51 einfo "rc-update, be sure to edit the firewall config file so that it will"
52 einfo "work for your site:"
53 einfo " ${EDITOR} /etc/gshield/gShield.conf"
54 einfo
55 }
Something went wrong with that request. Please try again.