summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/iplist/.svn/text-base/iplist-9999.ebuild.svn-base')
-rw-r--r--net-misc/iplist/.svn/text-base/iplist-9999.ebuild.svn-base40
1 files changed, 40 insertions, 0 deletions
diff --git a/net-misc/iplist/.svn/text-base/iplist-9999.ebuild.svn-base b/net-misc/iplist/.svn/text-base/iplist-9999.ebuild.svn-base
new file mode 100644
index 0000000..dc1f4ba
--- /dev/null
+++ b/net-misc/iplist/.svn/text-base/iplist-9999.ebuild.svn-base
@@ -0,0 +1,40 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git linux-info
+
+EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}"
+EGIT_PROJECT="${PN}"
+EGIT_PATCHES=( "${FILESDIR}/${PN}-makefile.patch" )
+
+DESCRIPTION="Blocks connections from/to hosts listed in files using iptables."
+HOMEPAGE="http://iplist.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="java"
+DEPEND="net-firewall/iptables
+ net-libs/libnetfilter_queue
+ net-libs/libnfnetlink
+ sys-libs/zlib"
+RDEPEND="java? ( >=virtual/jre-1.5 )
+ ${DEPEND}"
+CONFIG_CHECK="NETFILTER_XT_MATCH_IPRANGE"
+
+src_install() {
+ if use java ; then
+ insinto "/usr/share/${PN}"
+ doins ipblockUI.jar || die "gui install failed"
+ fi
+ emake DESTDIR="${D}" install || die "install failed!"
+ doman {${PN},ipblock}.8 || die "doman failed!"
+ exeinto /etc/cron.daily
+ newexe debian/ipblock.cron.daily ipblock || die "cron failed"
+}
+
+pkg_postinst() {
+ einfo "a cron file was set in /etc/cron.daily"
+ einfo "and it will update your lists once a day"
+}