diff options
author | Jason Wever <weeve@gentoo.org> | 2004-02-23 01:00:44 +0000 |
---|---|---|
committer | Jason Wever <weeve@gentoo.org> | 2004-02-23 01:00:44 +0000 |
commit | 2d8f12a541dc570f42faa8e4e117e70c26a579b0 (patch) | |
tree | f6131c648e0224e1d3615d4f486fc3b4c789b56c /net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild | |
parent | *foomatic-3.0.0.20031018 (22 Feb 2004) (diff) | |
download | gentoo-2-2d8f12a541dc570f42faa8e4e117e70c26a579b0.tar.gz gentoo-2-2d8f12a541dc570f42faa8e4e117e70c26a579b0.tar.bz2 gentoo-2-2d8f12a541dc570f42faa8e4e117e70c26a579b0.zip |
Revision bump, fixes bug #42443.
Diffstat (limited to 'net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild')
-rw-r--r-- | net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild b/net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild new file mode 100644 index 000000000000..712244b08690 --- /dev/null +++ b/net-firewall/ipkungfu/ipkungfu-0.5.2-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 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.2-r1.ebuild,v 1.1 2004/02/23 01:00:44 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} + + # Patch ipkungfu to load the right module for ip_nat_ftp + # Fixes bug #42443. Thanks to George L. Emigh <george@georgelemigh.com> + cd ${WORKDIR}/${P} && epatch ${FILESDIR}/nat_ftp.patch + + # 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/ipkungfu before running" +} + |