diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-firewall/gshield |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-firewall/gshield')
-rw-r--r-- | net-firewall/gshield/Manifest | 6 | ||||
-rw-r--r-- | net-firewall/gshield/files/gshield.init | 26 | ||||
-rw-r--r-- | net-firewall/gshield/gshield-2.8-r4.ebuild | 46 | ||||
-rw-r--r-- | net-firewall/gshield/metadata.xml | 8 |
4 files changed, 86 insertions, 0 deletions
diff --git a/net-firewall/gshield/Manifest b/net-firewall/gshield/Manifest new file mode 100644 index 000000000000..4340ae74222f --- /dev/null +++ b/net-firewall/gshield/Manifest @@ -0,0 +1,6 @@ +AUX gshield.init 533 SHA256 160e3c9c29052643621c377be3a8450f36dce9971717b14154f32c4ce97ad3d2 SHA512 d046f8a0c4da46bdea94ef45ce472a8c0c68688421a06c7254a2f5e861b0c4884215ec860af7440a0e42a3fcdc93828a95ebd99acee4951850e6c94f2d2a5796 WHIRLPOOL de7527ac542ed73bfdfc7d3c82425f7c0c4e48c5180b59b37370bc925f9b32eff7e4e0a75a959af62a0e1c1259dc2906df319f657c574aaa0a0fa92e67afe6df +DIST gShield-2.8.tgz 47346 SHA256 19b04059ac4a6ad28f8653d804376779a83516ba4e0b5b041fe45d422ef68b85 SHA512 f91ef18267817e3296c795b3f1629dad9ade269e12aba7f95d39b7ae39aaf76dc15e0046747281dc44859241a18b2ce7ac03e276984aee11af15e28cf80f736c WHIRLPOOL 3e834f39be912d039112971c57e62ca2b645afc33672bdb140f77b4c2cb16227b07f82fd2983dddb492381d798c4f7567d6b1fe61ad0f67554968c937c7d5e2b +EBUILD gshield-2.8-r4.ebuild 1159 SHA256 f81321155b6b558c580bc470a4c8421e4fe3b817d47defde81a26c60ab2e0b1c SHA512 393375f184c49f9773ed82b2638de608920c70e1fb58116dbea23b99984ea65af2099293b2f74fe8705a31f923bd7a376bd12c5f677f4c72027940f1d8ee26e2 WHIRLPOOL 476ddbc59f5e2382f10441b354f6da4382e6d5302dbdd6dd53b673e023481a406f6a92f670ccdf1f2dfd53d270bcafd5c20adbd9124e8efc7cbbd3dcb8b7acb3 +MISC ChangeLog 2583 SHA256 1fb1343f40aa51c221ffb8c54c07309336feb4891e783ee904f294758e4e3dd1 SHA512 6932aabfb6e0e3801ebc9fea57aea8f7a398611227cc4d2f568a136c3c186b93647281fe56f09a649ae0ddd3f1c5a88605246a452fe2a0d7fdd0bfa3c9c0793e WHIRLPOOL a8e3e040044b15a6b4d3cdbd64e5265244a1266657d24c95b70986b13fcb4d9b6e051e466b7e96afa7d09d7071fb8158b956601b43641975a401c0306f35d17c +MISC ChangeLog-2015 2596 SHA256 e3391ffea238bcc003784b1e800afea0d2f16a1b889b594639446bc50224b255 SHA512 b45819dabcb48ca7da7f0f3c7e5f2bd8d26985254166ba539a52ac4f89b163f82189ac8a3608c5532c86808968e87a970fa07eaa139204e70be320329cbf03a4 WHIRLPOOL ed465c30e441bd72583c29f033f94b5b517280b29790cd03d69e06de0222bb467b643906f6cbcc612149af41265fe982d7205257ee41c9559d3a41fc7589591e +MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee diff --git a/net-firewall/gshield/files/gshield.init b/net-firewall/gshield/files/gshield.init new file mode 100644 index 000000000000..243c0ccc8946 --- /dev/null +++ b/net-firewall/gshield/files/gshield.init @@ -0,0 +1,26 @@ +#!/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 +} diff --git a/net-firewall/gshield/gshield-2.8-r4.ebuild b/net-firewall/gshield/gshield-2.8-r4.ebuild new file mode 100644 index 000000000000..f136566e21fa --- /dev/null +++ b/net-firewall/gshield/gshield-2.8-r4.ebuild @@ -0,0 +1,46 @@ +# 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/* +} diff --git a/net-firewall/gshield/metadata.xml b/net-firewall/gshield/metadata.xml new file mode 100644 index 000000000000..74c2baebb4ec --- /dev/null +++ b/net-firewall/gshield/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> +</maintainer> +</pkgmetadata> |