1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 MY_P="BlockHosts-${PV}"
10 DESCRIPTION="Blocks abusive IP hosts which probe your services (such as sshd, proftpd)"
11 HOMEPAGE="http://www.aczoom.com/cms/blockhosts/"
12 SRC_URI="http://www.aczoom.com/tools/blockhosts/${MY_P}.tar.gz"
14 LICENSE="public-domain"
20 RDEPEND="logrotate? ( app-admin/logrotate )"
29 # don't let setup.py install bhrss.py to /usr/bin
31 -e "s/,.*bhrss\.py'//" \
32 setup.py || die "sed failed"
34 # remove logrotate check if not in IUSE
35 if ! use logrotate; then
38 -e "/DATA_FILES\./d" \
39 setup.py || die "sed failed"
46 insinto /usr/share/${PN}
54 elog "This package isn't configured properly."
55 elog "Please refer to the homepage to do this!"
57 elog "See also: http://gentoo-wiki.com/HOWTO_BlockHosts"
59 elog "bhrss.py cgi-script is in /usr/share/${PN}."
60 elog "If you want to use it, put it in your cgi-bin,"
61 elog "emerge dev-python/pyxml and copy blockhosts.py"
62 elog "into your python module directory."