1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit git-2 linux-info
7 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}"
9 EGIT_PATCHES=( "${FILESDIR}/${PN}-makefile.patch" )
11 DESCRIPTION="Blocks connections from/to hosts listed in files using iptables."
12 HOMEPAGE="http://iplist.sourceforge.net/"
18 DEPEND="net-firewall/iptables
19 net-libs/libnetfilter_queue
22 RDEPEND="java? ( >=virtual/jre-1.5 )
24 CONFIG_CHECK="NETFILTER_XT_MATCH_IPRANGE"
28 insinto "/usr/share/${PN}"
29 doins ipblockUI.jar || die "gui install failed"
31 emake DESTDIR="${D}" install || die "install failed!"
32 doman {${PN},ipblock}.8 || die "doman failed!"
33 exeinto /etc/cron.daily
34 newexe debian/ipblock.cron.daily ipblock || die "cron failed"
38 einfo "a cron file was set in /etc/cron.daily"
39 einfo "and it will update your lists once a day"