summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/blocksshd')
-rw-r--r--net-misc/blocksshd/ChangeLog5
-rw-r--r--net-misc/blocksshd/Manifest24
-rwxr-xr-xnet-misc/blocksshd/blocksshd-0.8.ebuild54
-rwxr-xr-xnet-misc/blocksshd/files/blocksshd-0.8.conf-dir-change.patch23
-rwxr-xr-xnet-misc/blocksshd/files/blocksshd-0.8.etc-dir-change.patch11
-rw-r--r--net-misc/blocksshd/files/digest-blocksshd-0.83
6 files changed, 116 insertions, 4 deletions
diff --git a/net-misc/blocksshd/ChangeLog b/net-misc/blocksshd/ChangeLog
index c543efbb4..589d3befb 100644
--- a/net-misc/blocksshd/ChangeLog
+++ b/net-misc/blocksshd/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 18 Sep 2006; Michael Pagano mpagano@gmail.com +blocksshd-0.8.ebuild,
+ +files/blocksshd-0.8.conf-dir-change.patch,
+ +files/blocksshd-0.8.etc-dir-change.patch:
+ Version bump
+
31 Jul 2006; Jakub Moc <jakub@gentoo.org> +blocksshd-0.7.ebuild,
+files/blocksshd-0.7.conf-dir-change.patch,
+files/blocksshd-0.7.etc-dir-change.patch:
diff --git a/net-misc/blocksshd/Manifest b/net-misc/blocksshd/Manifest
index 33a5ea8e3..e68a3796b 100644
--- a/net-misc/blocksshd/Manifest
+++ b/net-misc/blocksshd/Manifest
@@ -14,12 +14,21 @@ AUX blocksshd-0.7.etc-dir-change.patch 372 RMD160 a3b66e56f4a8e99a810e322280a62e
MD5 d589b584b0a19e450bb04964b0a8bb31 files/blocksshd-0.7.etc-dir-change.patch 372
RMD160 a3b66e56f4a8e99a810e322280a62eceb13cd459 files/blocksshd-0.7.etc-dir-change.patch 372
SHA256 fa4d8289c7ef8d710631a2f105b7a00e400856377871266954519a31cee91337 files/blocksshd-0.7.etc-dir-change.patch 372
+AUX blocksshd-0.8.conf-dir-change.patch 1835 RMD160 fddd7f72cf1675ab860d71f90890dfb07d77134a SHA1 ef138021aedc120b88821fd4eef37def45031afa SHA256 b1364d91709e94cf108e8b97b2f87f0d9d3aeabf89167fe1f5b0a472b8116925
+MD5 16bf30a251774fa8448b22aa54678f36 files/blocksshd-0.8.conf-dir-change.patch 1835
+RMD160 fddd7f72cf1675ab860d71f90890dfb07d77134a files/blocksshd-0.8.conf-dir-change.patch 1835
+SHA256 b1364d91709e94cf108e8b97b2f87f0d9d3aeabf89167fe1f5b0a472b8116925 files/blocksshd-0.8.conf-dir-change.patch 1835
+AUX blocksshd-0.8.etc-dir-change.patch 372 RMD160 796584e95502a035c192b2e86c5cc0d64e38b224 SHA1 843ce12bef70d1cc6e82531f2bc338fd88006e36 SHA256 ff35d6530707d3e6e801ca47d5b10d5b8cb0e4ae9e23296d0ae119d344d9e068
+MD5 bdd453a390f2aa1c004061a177e479f6 files/blocksshd-0.8.etc-dir-change.patch 372
+RMD160 796584e95502a035c192b2e86c5cc0d64e38b224 files/blocksshd-0.8.etc-dir-change.patch 372
+SHA256 ff35d6530707d3e6e801ca47d5b10d5b8cb0e4ae9e23296d0ae119d344d9e068 files/blocksshd-0.8.etc-dir-change.patch 372
AUX blocksshd.init 598 RMD160 c9e64c3402401e2189e961c81c29cdf14392908f SHA1 17c746bd4888a62648fb0e5d6fda5ede4864e774 SHA256 91b8e98675617b605beb2223a861964516d5d73ef0a58e5be55b5c4b71f7e103
MD5 66d3e081b78861e88d561dd714ab7ab8 files/blocksshd.init 598
RMD160 c9e64c3402401e2189e961c81c29cdf14392908f files/blocksshd.init 598
SHA256 91b8e98675617b605beb2223a861964516d5d73ef0a58e5be55b5c4b71f7e103 files/blocksshd.init 598
DIST blocksshd-0.6.tar.gz 7514 RMD160 733fffba6350ce89770c4b6242cd4a54d02f38a9 SHA1 1b2dcc96b5c59cad9600c6dd6f28d76c7280bb1a SHA256 225894673f4f7c70061a3001c2a90d5db79a149cdd1f5f8cda86aaa40e34f3fb
DIST blocksshd-0.7.tar.gz 9586 RMD160 17e01a225466d1ad7aa05f9e4191eb9013477ec4 SHA1 ef064e7ed04f58bffe0a55b34fd3fa4b774e88fe SHA256 40d776837af7bdebf6491286b67128e7a09c0e199b53973d1e1bcea57c8c80d1
+DIST blocksshd-0.8.tar.gz 9835 RMD160 42350e6dd4a646026111c3241496da8966f4b5b8 SHA1 737d8ec5f17542a76be7230197e875e7ad0e93d7 SHA256 17763703be029249081fbfe6f0422a84900a4c6dc0d8d3894311aeda9b31585f
EBUILD blocksshd-0.6.ebuild 1427 RMD160 8b55a0a8762f3920bdd1f8064f9a52274e5e3af3 SHA1 c6fbadeb7b1895790af04225974c609d464bb389 SHA256 2cff629bfb2da6e6200bce924c40bd50acdac0b58b2a3763fd4393cfe2fe6b5a
MD5 f28b1601bd1179d69b18d79695bf379f blocksshd-0.6.ebuild 1427
RMD160 8b55a0a8762f3920bdd1f8064f9a52274e5e3af3 blocksshd-0.6.ebuild 1427
@@ -28,10 +37,14 @@ EBUILD blocksshd-0.7.ebuild 1420 RMD160 195ade268f21dcf51f7be81e37c35b62346f4c61
MD5 6ddaf52c5eb001480e1d419075b082ea blocksshd-0.7.ebuild 1420
RMD160 195ade268f21dcf51f7be81e37c35b62346f4c61 blocksshd-0.7.ebuild 1420
SHA256 72c96176a640dc8599ed3a070557f74e31310c2a4f298e7df43cafe06cde7200 blocksshd-0.7.ebuild 1420
-MISC ChangeLog 559 RMD160 96609512cfe5404a5e2274dad394bce8fd2ea524 SHA1 8145afb502b2f8d5dc237e8531ee496e1cf45931 SHA256 076fe2f1aeb851460a794ece37c4a75236a7e273878194202bbc54e6402225d6
-MD5 b73628d2932cd2e347993e4f62801544 ChangeLog 559
-RMD160 96609512cfe5404a5e2274dad394bce8fd2ea524 ChangeLog 559
-SHA256 076fe2f1aeb851460a794ece37c4a75236a7e273878194202bbc54e6402225d6 ChangeLog 559
+EBUILD blocksshd-0.8.ebuild 1360 RMD160 c7dd7c04fac7b53b5ff372bc491f9d37d25cd3fd SHA1 41c931abd0428025319ff5db9508c8a72bbbdfd8 SHA256 5039f3b706df01428efd484737fd773b89133382443e24eb063296a97a494443
+MD5 7884c4ee3910ac4c266df8c827047bca blocksshd-0.8.ebuild 1360
+RMD160 c7dd7c04fac7b53b5ff372bc491f9d37d25cd3fd blocksshd-0.8.ebuild 1360
+SHA256 5039f3b706df01428efd484737fd773b89133382443e24eb063296a97a494443 blocksshd-0.8.ebuild 1360
+MISC ChangeLog 737 RMD160 0631d74a71d020ac9fb37b4d6076f705c5a2f5a5 SHA1 8c517e6ea398eae8614a6137b943b8335e67e57a SHA256 abdda2b213e911d98729411514dde390e020c1ebdeb7fd8220517329aa09fec5
+MD5 174b2a293e24b766ec81b2f5b2778b69 ChangeLog 737
+RMD160 0631d74a71d020ac9fb37b4d6076f705c5a2f5a5 ChangeLog 737
+SHA256 abdda2b213e911d98729411514dde390e020c1ebdeb7fd8220517329aa09fec5 ChangeLog 737
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@@ -42,3 +55,6 @@ SHA256 8161e4074802087d4e0ea362f7024a550d298b00e7ca9a12cead75d041356ab5 files/di
MD5 802e890c52d3c4dde18c533a9b94e401 files/digest-blocksshd-0.7 235
RMD160 589e6c7a5f6f85c61e72a3641821fe319c7bbe3d files/digest-blocksshd-0.7 235
SHA256 6da83381b0300c3f47e596cdc29e10e6b47b259a69f8cf35444541c11c989d0a files/digest-blocksshd-0.7 235
+MD5 c2042f7d1315a78c52bd716ba6b061ae files/digest-blocksshd-0.8 235
+RMD160 40ce26d76aaaa59370d856ec621c3ca9d5d42f62 files/digest-blocksshd-0.8 235
+SHA256 7624d618a18c042093224897781eb4c45cd7148366fa4b825d4852f9e660dec1 files/digest-blocksshd-0.8 235
diff --git a/net-misc/blocksshd/blocksshd-0.8.ebuild b/net-misc/blocksshd/blocksshd-0.8.ebuild
new file mode 100755
index 000000000..ca95acd14
--- /dev/null
+++ b/net-misc/blocksshd/blocksshd-0.8.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Protects computers from SSH brute force attacks by dynamically blocking IP addresses by adding iptables rules."
+HOMEPAGE="http://sourceforge.net/projects/blocksshd"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=perl-core/Sys-Syslog-0.16
+ >=dev-perl/Sys-Hostname-Long-1.2
+ >=dev-perl/File-Tail-0.99.1
+ >=dev-perl/Net-DNS-0.53-r1
+ >=perl-core/Getopt-Long-2.34
+ >=net-firewall/iptables-1.3.5-r1"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # convert CRLF to LF
+ edos2unix blocksshd blocksshd.conf
+
+ #apply patches
+ epatch "${FILESDIR}"/blocksshd-${PV}.conf-dir-change.patch
+ epatch "${FILESDIR}"/blocksshd-${PV}.etc-dir-change.patch
+}
+
+src_install() {
+ dosbin blocksshd || die "dosbin failed"
+ dodoc CHANGELOG CREDITS README VERSION blocksshd.conf
+
+ newinitd ${FILESDIR}/blocksshd.init blocksshd
+
+ insinto /etc/blocksshd
+ newins blocksshd.conf blocksshd.conf.sample
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "The configuration file ${ROOT}etc/blocksshd/blocksshd.conf.sample"
+ ewarn "must be renamed before blocksshd will run."
+ ewarn "Please review this configuration file for settings that might"
+ ewarn "be appropiate for your setup."
+ ewarn
+}
diff --git a/net-misc/blocksshd/files/blocksshd-0.8.conf-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.8.conf-dir-change.patch
new file mode 100755
index 000000000..0d743eeab
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.8.conf-dir-change.patch
@@ -0,0 +1,23 @@
+--- blocksshd.conf 2006-09-18 08:49:29.000000000 -0400
++++ blocksshd.conf 2006-09-18 08:48:35.000000000 -0400
+@@ -3,16 +3,16 @@
+ $cfg = {
+ os => 'linux', # Target OS - either linux or bsd
+ chain => 'blocksshd', # Name of iptables or pf chain
+- logfile => '/var/log/secure', # Log file to monitor
++ logfile => '/var/log/messages', # Log file to monitor
+ logcheck => '10', # How often to check the log file
+ max_attempts => '4', # Max number of failures
+ timeout => '360', # Reset IP count if no activity after time out in seconds
+- unblock => '1', # Enable unblocking
++ unblock => '0', # Enable unblocking
+ unblock_timeout => '43200', # Time in seconds after which to unblock a blocked IP address
+ restore_blocked => '0', # Turn on checking for previously blocked IPs
+- log_ips => '/usr/local/etc/blocksshd.list', # Log file for blocked IPs
++ log_ips => '/etc/blocksshd/blocksshd.list', # Log file for blocked IPs
+ pid_file => '/var/run/blocksshd.pid', # Location of PID file
+- send_email => '1', # Enable the sending of email notifications
++ send_email => '0', # Enable the sending of email notifications
+ email => 'root', # Email address to send notifications
+ mail => '/bin/mail', # Location of mail binary
+ iptables => '/sbin/iptables', # Location of iptables binary - only for Linux
diff --git a/net-misc/blocksshd/files/blocksshd-0.8.etc-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.8.etc-dir-change.patch
new file mode 100755
index 000000000..5f0dd02ec
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.8.etc-dir-change.patch
@@ -0,0 +1,11 @@
+--- blocksshd 2006-09-18 08:49:27.000000000 -0400
++++ blocksshd 2006-09-18 08:48:35.000000000 -0400
+@@ -41,7 +41,7 @@
+ our $cfg;
+
+ # This is where the configuration file is located
+- require '/usr/local/etc/blocksshd.conf';
++ require '/etc/blocksshd/blocksshd.conf';
+
+ my $work = {
+ ipv4 => '(?:\d{1,3}\.){3}\d{1,3}', # regexp to match ipv4 address
diff --git a/net-misc/blocksshd/files/digest-blocksshd-0.8 b/net-misc/blocksshd/files/digest-blocksshd-0.8
new file mode 100644
index 000000000..ca2682510
--- /dev/null
+++ b/net-misc/blocksshd/files/digest-blocksshd-0.8
@@ -0,0 +1,3 @@
+MD5 0e92913e9f1014a7484a8c230b21637e blocksshd-0.8.tar.gz 9835
+RMD160 42350e6dd4a646026111c3241496da8966f4b5b8 blocksshd-0.8.tar.gz 9835
+SHA256 17763703be029249081fbfe6f0422a84900a4c6dc0d8d3894311aeda9b31585f blocksshd-0.8.tar.gz 9835