diff options
Diffstat (limited to 'net-firewall/ipkungfu/ipkungfu-0.6.1.ebuild')
-rw-r--r-- | net-firewall/ipkungfu/ipkungfu-0.6.1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-firewall/ipkungfu/ipkungfu-0.6.1.ebuild b/net-firewall/ipkungfu/ipkungfu-0.6.1.ebuild new file mode 100644 index 000000000000..360fec9dd4c7 --- /dev/null +++ b/net-firewall/ipkungfu/ipkungfu-0.6.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="A nice iptables firewall script" +HOMEPAGE="http://www.linuxkungfu.org/" +SRC_URI="http://www.linuxkungfu.org/ipkungfu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="net-firewall/iptables" +RDEPEND="${DEPEND} + virtual/logger" + +src_compile() { + epatch "${FILESDIR}/ipkungfu_noiseless.patch" || die "Could not apply ipkungfu_noiseless.patch patch" + econf || die "Could not run econf" + emake || die "Couldn't run make" +} + +src_install() { + make DESTDIR="${D}" install || die + + # Install configuration files + make DESTDIR="${D}" install-config || die + + # Install Gentoo init script + newinitd "${FILESDIR}"/ipkungfu.init ipkungfu +} + +pkg_postinst() { + # Remove the cache dir so ipkungfu won't fail when running for + # the first time, case 0.6.0 was installed before. + rm -rf /etc/ipkungfu/cache + + einfo "Be sure to, before running ipkungfu, edit the config files in:" + einfo "/etc/ipkungfu/" + echo + einfo "Also, be sure to run ipkungfu prior to rebooting," + einfo "especially if you you're updating from <0.6.0 to >=0.6.0." + einfo "There are some significant configuration changes on this" + einfo "release covered by the ipkungfu script." +} |