diff options
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/BlockHosts/BlockHosts-2.0.2.ebuild | 49 | ||||
-rw-r--r-- | app-admin/BlockHosts/ChangeLog | 5 | ||||
-rw-r--r-- | app-admin/BlockHosts/Manifest | 4 |
3 files changed, 49 insertions, 9 deletions
diff --git a/app-admin/BlockHosts/BlockHosts-2.0.2.ebuild b/app-admin/BlockHosts/BlockHosts-2.0.2.ebuild index 41d18c2cc..c311b730b 100644 --- a/app-admin/BlockHosts/BlockHosts-2.0.2.ebuild +++ b/app-admin/BlockHosts/BlockHosts-2.0.2.ebuild @@ -2,6 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ +NEED_PYTHON=2.3 + +inherit distutils + DESCRIPTION="Blocks abusive IP hosts which probe your services (such as sshd, proftpd)" HOMEPAGE="http://www.aczoom.com/cms/blockhosts/" SRC_URI="http://www.aczoom.com/tools/blockhosts/${P}.tar.gz" @@ -9,15 +13,41 @@ SRC_URI="http://www.aczoom.com/tools/blockhosts/${P}.tar.gz" LICENSE="public-domain" SLOT="0" KEYWORDS="~x86" -IUSE="" +IUSE="doc logrotate" + +DEPEND="" +RDEPEND="logrotate? ( app-admin/logrotate )" + +DOCS="CHANGES" + +src_unpack() { + unpack ${A} + cd "${S}" + + # don't let setup.py install bhrss.py to /usr/bin + sed -i \ + -e "s/,.*bhrss\.py'//" \ + setup.py || die "sed failed" + + # remove logrotate check if not in IUSE + if ! use logrotate; then + sed -i \ + -e "/^if/d" \ + -e "/DATA_FILES\./d" \ + setup.py || die "sed failed" + fi +} src_install() { - dobin bhrss.py blockhosts.py || die "installation failed" - dodoc CHANGES INSTALL README - dohtml *.html - - insinto /etc - doins blockhosts.cfg + distutils_src_install + + insinto /usr/share/${PN} + doins bhrss.py + + if use doc; then + insinto /usr/share/${PF}/html + dohtml *.html + fi } pkg_postinst() { @@ -25,4 +55,9 @@ pkg_postinst() { elog "This package isn't configured properly." elog "Please refer to the homepage to do this!" echo + elog "bhrss.py cgi script is under /usr/share/${PN}" + elog "If you want to use it, put it in your cgi-bin" + elog "emerge dev-python/pyxml and copy blockhosts.py" + elog "into your python module directory" + echo } diff --git a/app-admin/BlockHosts/ChangeLog b/app-admin/BlockHosts/ChangeLog index c4fe9a2c7..ca963f4b1 100644 --- a/app-admin/BlockHosts/ChangeLog +++ b/app-admin/BlockHosts/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 08 Apr 2007; Ali Polatel (hawking) <polatel@gmail.com> + BlockHosts-2.0.2.ebuild: + use distutils,added logrotate use flag,install bhrss.py to + /usr/share/BlockHosts + 08 Apr 2007; Kevin Funk <krf@gmx.de> +BlockHosts-2.0.2.ebuild, +metadata.xml: Initial ebuild for bug #173631. Thanks to genstef for support. diff --git a/app-admin/BlockHosts/Manifest b/app-admin/BlockHosts/Manifest index 5e43d795e..cbe1100e5 100644 --- a/app-admin/BlockHosts/Manifest +++ b/app-admin/BlockHosts/Manifest @@ -1,4 +1,4 @@ DIST BlockHosts-2.0.2.tar.gz 37603 RMD160 a24ece582925704cf58945cfe32ffdb00f17efb3 SHA1 6c5d78e3b6f6dd9ae62ad1c1712ea7ce4e557cd9 SHA256 fdcabc7520a22fa4e05888cfadf7c1a7a7618bba2e38122476a6f7c02cec5573 -EBUILD BlockHosts-2.0.2.ebuild 667 RMD160 dd1795b27b728b11a17ac57af625716db39924c3 SHA1 3e62a6479a0a0e0557a00fa63935e25205634567 SHA256 4a5afa488c29deff140d52c9594f85eae64bfb3e24f4a2097035167eafa668e8 -MISC ChangeLog 269 RMD160 0b987415c2985ea6a7a0fd15a0f429d5c043502c SHA1 dc73789f968170b0b1e2e8a8bd80e84f489a62e0 SHA256 27533affcad4d8e01ce0273ac2356057a661180e05104818516eb2ca46b75d2f +EBUILD BlockHosts-2.0.2.ebuild 1315 RMD160 b0592b0bc7eafb2da18cfa11e949e1010e42f55e SHA1 bdf1d87f5b322bcb1c8535e1029a707c34cd0a56 SHA256 80a35480b97005735f67ced25e0e4438ae8c1adfa6939660466ef47fb5dbd6f3 +MISC ChangeLog 439 RMD160 370af77d1aee1113db2686a26e6a2334f12a6fa8 SHA1 a6a048e789f0f2ef9cfb9975fddd152bec1a7db8 SHA256 a1fd7e96ad52896a8db8f38eb51b9adfd9ed8f30b4e67ad5029837d7f8ea57e8 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 |