+++ /dev/null
-#!/sbin/openrc-run
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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
-}
+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-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="~amd64 ~ppc x86"
-
-RDEPEND="
- net-dns/bind-tools
- net-firewall/iptables
- virtual/logger
-"
-
-S=${WORKDIR}/gShield-${PV}
-
-src_install() {
- # install config files
- dodir /etc/gshield
- cp -pPR * "${D}"/etc/gshield || die
- dosym gshield /etc/firewall
-
- # get rid of docs from config
- rm -r "${D}"/etc/gshield/{Changelog,INSTALL,LICENSE,docs} || die
-
- # 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/$q || die
- dosym /usr/share/gshield/$q /etc/gshield/$q
- done
- chmod -R u+rwX "${D}"/etc/gshield || die
-
- # install init script
- newinitd "${FILESDIR}"/gshield.init gshield
- chmod -R u+rwx "${D}"/etc/init.d/gshield || die
-
- # install docs
- dodoc Changelog docs/*
-}