diff options
author | Jason Wever <weeve@gentoo.org> | 2003-08-31 20:32:56 +0000 |
---|---|---|
committer | Jason Wever <weeve@gentoo.org> | 2003-08-31 20:32:56 +0000 |
commit | 7735a723b41ae6f4dcc40e9fe0c4659cc33240f6 (patch) | |
tree | 8b51c5317986ccc50659a0f810ebecf52082e620 | |
parent | Initial import. (diff) | |
download | historical-7735a723b41ae6f4dcc40e9fe0c4659cc33240f6.tar.gz historical-7735a723b41ae6f4dcc40e9fe0c4659cc33240f6.tar.bz2 historical-7735a723b41ae6f4dcc40e9fe0c4659cc33240f6.zip |
Initial import.
-rw-r--r-- | net-firewall/ipkungfu/Manifest | 5 | ||||
-rw-r--r-- | net-firewall/ipkungfu/files/digest-ipkungfu-0.5.0 | 1 | ||||
-rw-r--r-- | net-firewall/ipkungfu/files/ipkungfu.init | 20 | ||||
-rw-r--r-- | net-firewall/ipkungfu/ipkungfu-0.5.0.ebuild | 57 | ||||
-rw-r--r-- | net-firewall/ipkungfu/metadata.xml | 12 |
5 files changed, 94 insertions, 1 deletions
diff --git a/net-firewall/ipkungfu/Manifest b/net-firewall/ipkungfu/Manifest index 37d6147a6e49..d2e46105b6d6 100644 --- a/net-firewall/ipkungfu/Manifest +++ b/net-firewall/ipkungfu/Manifest @@ -1,2 +1,5 @@ -MD5 e922696f77ca98100c7702c1d8163a00 ipkungfu-0.5.0.ebuild 463 +MD5 090c8bf1c488922d2608e28ebdc2b6d1 metadata.xml 330 +MD5 48da10982c175b5d04fac88e8eb7d285 ipkungfu-0.5.0.ebuild 1245 +MD5 5a8aa9b45e66381925ea8f753a96a48b ChangeLog 379 MD5 bf86133a04973ce6906c064a84144ff6 files/digest-ipkungfu-0.5.0 62 +MD5 ca05ec0ec7018a07b5c7a028e40e7f23 files/ipkungfu.init 500 diff --git a/net-firewall/ipkungfu/files/digest-ipkungfu-0.5.0 b/net-firewall/ipkungfu/files/digest-ipkungfu-0.5.0 new file mode 100644 index 000000000000..69d6c8e3498d --- /dev/null +++ b/net-firewall/ipkungfu/files/digest-ipkungfu-0.5.0 @@ -0,0 +1 @@ +MD5 272f0e723b33f0b25f23acb43bc6c610 ipkungfu-0.5.0.tgz 32818 diff --git a/net-firewall/ipkungfu/files/ipkungfu.init b/net-firewall/ipkungfu/files/ipkungfu.init new file mode 100644 index 000000000000..10f9059b6aca --- /dev/null +++ b/net-firewall/ipkungfu/files/ipkungfu.init @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipkungfu/files/ipkungfu.init,v 1.1 2003/08/31 20:32:52 weeve Exp $ + +depend() { + need logger net +} + +start () { + ebegin "Starting ipkungfu" + /usr/sbin/ipkungfu --init + eend $? "Failed to start ipkungfu" +} + +stop() { + ebegin "Stopping ipkungfu" + /usr/sbin/ipkungfu --disable + eend $? "Failed to stop ipkungfu" +} diff --git a/net-firewall/ipkungfu/ipkungfu-0.5.0.ebuild b/net-firewall/ipkungfu/ipkungfu-0.5.0.ebuild new file mode 100644 index 000000000000..86fd4f078e96 --- /dev/null +++ b/net-firewall/ipkungfu/ipkungfu-0.5.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipkungfu/ipkungfu-0.5.0.ebuild,v 1.1 2003/08/31 20:32:52 weeve Exp $ + +inherit eutils + +DESCRIPTION="A nice iptables firewall script" +HOMEPAGE="http://www.linuxkungfu.org/" +SRC_URI="http://www.linuxkungfu.org/ipkungfu/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc" +IUSE="" + +DEPEND="virtual/glibc + net-firewall/iptables" + + +src_unpack() { + unpack ${A} + + # man page comes bzip2'd, so bunzip2 it. + cd ${WORKDIR}/${P}/files + bunzip2 ipkungfu.8.bz2 +} + +src_install() { + + # Package comes with a hard coded shell script, so here we + # replicate what they did, but so it's compatible with portage. + + # Install shell script executable + dosbin ipkungfu + + # Install Gentoo init script + exeinto /etc/init.d + newexe ${FILESDIR}/ipkungfu.init ipkungfu + + # Install config files into /etc + dodir /etc/ipkungfu + insinto /etc/ipkungfu + doins files/*.conf + + # Install man page + doman files/ipkungfu.8 + + # Install documentation + dodoc COPYRIGHT Changelog FAQ INSTALL README gpl.txt +} + + +pkg_postinst() { + einfo "Be sure to edit the config files" + einfo "in /etc/ipkungfo before running" +} + diff --git a/net-firewall/ipkungfu/metadata.xml b/net-firewall/ipkungfu/metadata.xml new file mode 100644 index 000000000000..e4eb6ab90330 --- /dev/null +++ b/net-firewall/ipkungfu/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>weeve@gentoo.org</email> + <name>Jason Wever</name> +</maintainer> +<longdescription> + ipkungfu is a nice iptables firewall script +</longdescription> +</pkgmetadata> |