diff options
Diffstat (limited to 'app-admin/blockhosts/blockhosts-2.6.0.ebuild')
-rw-r--r-- | app-admin/blockhosts/blockhosts-2.6.0.ebuild | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/app-admin/blockhosts/blockhosts-2.6.0.ebuild b/app-admin/blockhosts/blockhosts-2.6.0.ebuild deleted file mode 100644 index d0b8bb191..000000000 --- a/app-admin/blockhosts/blockhosts-2.6.0.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="3" - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit python distutils - -MY_P="BlockHosts-${PV}" -DESCRIPTION="Blocks abusive IP hosts which probe your services (such as sshd, proftpd)" -HOMEPAGE="http://www.aczoom.com/blockhosts/" -SRC_URI="http://www.aczoom.com/tools/${PN}/${MY_P}.tar.gz" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="logrotate logwatch test" - -DEPEND="dev-python/pyxml" -RDEPEND="${DEPEND} - logrotate? ( app-admin/logrotate )" - -S="${WORKDIR}"/${MY_P} - -pkg_setup() { - python_pkg_setup -} - -src_prepare() { - python_convert_shebangs -r 2 . - - # don't let setup.py install bhrss.py to /usr/bin - sed -i -e "s/,.*bhrss\.py'//" setup.py || die - - # remove logrotate check if not in IUSE - if ! use logrotate; then - sed -i -e "/^if/d ; /DATA_FILES\./d" setup.py || die - fi - - distutils_src_prepare -} - -src_test() { - testing() { - $(PYTHON) test_blockhosts.py || die - } - python_execute_function testing -} - -src_install() { - distutils_src_install - - exeinto /usr/share/${PN} - doexe bhrss.py || die - - # not tested, but should work - if use logwatch; then - insinto /etc/log.d/conf/services/ - doins logwatch/blockhosts.conf || die - - exeinto /etc/log.d/scripts/services/ - doexe logwatch/blockhosts || die - fi - - dohtml *.html || die -} - -pkg_postinst() { - echo - elog "This package isn't configured properly." - elog "Please refer to the homepage to do this!" - echo - elog "See also: http://www.gentoo-wiki.info/BlockHosts" - echo - elog "bhrss.py cgi-script is in /usr/share/${PN}." - elog "If you want to use it, put it in your cgi-bin," - echo -} |