summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Funk <krf@gmx.de>2007-06-09 10:02:12 +0000
committerKevin Funk <krf@gmx.de>2007-06-09 10:02:12 +0000
commitbbca75edb2d38a3608a850e9c9468c1464b2a49c (patch)
treeeabd5ca74b4a66a92831e28e19938343380f7a79 /app-admin
parentapp-misc/ccpublisher: removed unused inherit eutils (diff)
downloadsunrise-bbca75edb2d38a3608a850e9c9468c1464b2a49c.tar.gz
sunrise-bbca75edb2d38a3608a850e9c9468c1464b2a49c.tar.bz2
sunrise-bbca75edb2d38a3608a850e9c9468c1464b2a49c.zip
app-admin/blockhosts: Version bump, drop old
svn path=/sunrise/; revision=3856
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/blockhosts/ChangeLog3
-rw-r--r--app-admin/blockhosts/Manifest4
-rw-r--r--app-admin/blockhosts/blockhosts-2.0.4.ebuild64
3 files changed, 70 insertions, 1 deletions
diff --git a/app-admin/blockhosts/ChangeLog b/app-admin/blockhosts/ChangeLog
index 9824bc2e2..c32d63181 100644
--- a/app-admin/blockhosts/ChangeLog
+++ b/app-admin/blockhosts/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 09 Jun 2007; Kevin Funk <krf@gmx.de> +blockhosts-2.0.4.ebuild:
+ Version bump, drop old
+
25 May 2007; Markus Ullmann <jokey@gentoo.org> blockhosts-2.0.3:
sed doesn't die
diff --git a/app-admin/blockhosts/Manifest b/app-admin/blockhosts/Manifest
index 960895f77..0e96665fe 100644
--- a/app-admin/blockhosts/Manifest
+++ b/app-admin/blockhosts/Manifest
@@ -1,4 +1,6 @@
DIST BlockHosts-2.0.3.tar.gz 38136 RMD160 7d37fad2383fb9492e29c23d444b7df90c8a0a02 SHA1 c111c9c1616ca73484d8a12ebf273b4cb501c3c2 SHA256 15d76c45f5d5e81da7dac93eadf2d4101f36cf70cbd3dd7a7ceb7a83c21f3a9d
+DIST BlockHosts-2.0.4.tar.gz 38469 RMD160 51ec137503cb32fe2bcd0c28ef287a2b64d53aee SHA1 983449ebda0c45e04329d84f5e46c01af57097b8 SHA256 7d556490c56eca6d3ca0622cf8bf091b48cff12e6dfd3c334e09e7e70a078002
EBUILD blockhosts-2.0.3.ebuild 1327 RMD160 28b8841e8b6e15af477347f6aa7c3af504f2b5c0 SHA1 214daad394b6af872a589a5422ff6050115ed508 SHA256 81eba66ca6313d56156cb8fff9e2c59ef06abae3048d6f45189fe9b160937fbc
-MISC ChangeLog 1052 RMD160 10dcde7e1b27023e90da69147d3dbc4bf8eb25cc SHA1 c77ec22a4c9531a359d87d1260bb9fc196fa3261 SHA256 b349942c94ba32f7883a22c596162d74af9e69e2c79d679e7541bd37a99c7387
+EBUILD blockhosts-2.0.4.ebuild 1368 RMD160 5c69b756a7fc0118d18bdf0fcfba98ecd291fbda SHA1 1d4cba08ccc6a1f6caee79b76c1fb46f1b3bff97 SHA256 756a8e5e62828ba26f7e6deaaf8e65b88043b1f2aea47c9ba410f80553b4e36e
+MISC ChangeLog 1143 RMD160 4718f0e1c6a9de42040f806852bb4fc648f87c6b SHA1 8e7c111acea301166a7c985825978f46d2dc5370 SHA256 a91531dbed6b48d4cc14dd62fd814c196cccb4e9fbaeb8e07b9e506ddae44371
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/app-admin/blockhosts/blockhosts-2.0.4.ebuild b/app-admin/blockhosts/blockhosts-2.0.4.ebuild
new file mode 100644
index 000000000..a71c8786a
--- /dev/null
+++ b/app-admin/blockhosts/blockhosts-2.0.4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NEED_PYTHON=2.3
+
+inherit distutils
+
+MY_P="BlockHosts-${PV}"
+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/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="logrotate"
+
+DEPEND=""
+RDEPEND="logrotate? ( app-admin/logrotate )"
+
+DOCS="CHANGES"
+S=${WORKDIR}/${MY_P}
+
+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() {
+ distutils_src_install
+
+ insinto /usr/share/${PN}
+ doins bhrss.py
+
+ dohtml *.html
+}
+
+pkg_postinst() {
+ echo
+ elog "This package isn't configured properly."
+ elog "Please refer to the homepage to do this!"
+ echo
+ elog "See also: http://gentoo-wiki.com/HOWTO_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,"
+ elog "emerge dev-python/pyxml and copy blockhosts.py"
+ elog "into your python module directory."
+ echo
+}