summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2006-09-27 13:20:15 +0000
committerMike Pagano <mpagano@gentoo.org>2006-09-27 13:20:15 +0000
commit4997539270beb6bec4b084dc6170b5a4b5b6fb43 (patch)
tree3428d2973ba8e36944d3d326b0784059e2343e49 /net-misc/blocksshd
parentwww-client/seamonkey-bin: Aesthetic changes. (diff)
downloadsunrise-4997539270beb6bec4b084dc6170b5a4b5b6fb43.tar.gz
sunrise-4997539270beb6bec4b084dc6170b5a4b5b6fb43.tar.bz2
sunrise-4997539270beb6bec4b084dc6170b5a4b5b6fb43.zip
net-misc/blocksshd: Version bump
svn path=/sunrise/; revision=1354
Diffstat (limited to 'net-misc/blocksshd')
-rw-r--r--net-misc/blocksshd/ChangeLog5
-rw-r--r--net-misc/blocksshd/Manifest24
-rw-r--r--net-misc/blocksshd/blocksshd-0.9.ebuild54
-rw-r--r--net-misc/blocksshd/files/blocksshd-0.9.conf-dir-change.patch23
-rw-r--r--net-misc/blocksshd/files/blocksshd-0.9.etc-dir-change.patch11
-rw-r--r--net-misc/blocksshd/files/digest-blocksshd-0.93
6 files changed, 116 insertions, 4 deletions
diff --git a/net-misc/blocksshd/ChangeLog b/net-misc/blocksshd/ChangeLog
index 589d3befb..a0d1f4936 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: $
+ 27 Sep 2006; Michael Pagano <mpagano@gmail.com> +blocksshd-0.9.ebuild,
+ +files/blocksshd-0.9.conf-dir-change.patch,
+ +files/blocksshd-0.9.etc-dir-change.patch:
+ Version bump
+
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:
diff --git a/net-misc/blocksshd/Manifest b/net-misc/blocksshd/Manifest
index e68a3796b..4c805a325 100644
--- a/net-misc/blocksshd/Manifest
+++ b/net-misc/blocksshd/Manifest
@@ -22,6 +22,14 @@ AUX blocksshd-0.8.etc-dir-change.patch 372 RMD160 796584e95502a035c192b2e86c5cc0
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-0.9.conf-dir-change.patch 1835 RMD160 fddd7f72cf1675ab860d71f90890dfb07d77134a SHA1 ef138021aedc120b88821fd4eef37def45031afa SHA256 b1364d91709e94cf108e8b97b2f87f0d9d3aeabf89167fe1f5b0a472b8116925
+MD5 16bf30a251774fa8448b22aa54678f36 files/blocksshd-0.9.conf-dir-change.patch 1835
+RMD160 fddd7f72cf1675ab860d71f90890dfb07d77134a files/blocksshd-0.9.conf-dir-change.patch 1835
+SHA256 b1364d91709e94cf108e8b97b2f87f0d9d3aeabf89167fe1f5b0a472b8116925 files/blocksshd-0.9.conf-dir-change.patch 1835
+AUX blocksshd-0.9.etc-dir-change.patch 372 RMD160 796584e95502a035c192b2e86c5cc0d64e38b224 SHA1 843ce12bef70d1cc6e82531f2bc338fd88006e36 SHA256 ff35d6530707d3e6e801ca47d5b10d5b8cb0e4ae9e23296d0ae119d344d9e068
+MD5 bdd453a390f2aa1c004061a177e479f6 files/blocksshd-0.9.etc-dir-change.patch 372
+RMD160 796584e95502a035c192b2e86c5cc0d64e38b224 files/blocksshd-0.9.etc-dir-change.patch 372
+SHA256 ff35d6530707d3e6e801ca47d5b10d5b8cb0e4ae9e23296d0ae119d344d9e068 files/blocksshd-0.9.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
@@ -29,6 +37,7 @@ SHA256 91b8e98675617b605beb2223a861964516d5d73ef0a58e5be55b5c4b71f7e103 files/bl
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
+DIST blocksshd-0.9.tar.gz 9929 RMD160 6ff2fe17b6a2c0e07e7b757d08555cefa6f75e61 SHA1 aa53806e126c08719ebcb602fde270a77f81a527 SHA256 280bc57932bb6694d26202edab65679da9a925ca1e6d1ff891bcecd3f11ec360
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
@@ -41,10 +50,14 @@ EBUILD blocksshd-0.8.ebuild 1360 RMD160 c7dd7c04fac7b53b5ff372bc491f9d37d25cd3fd
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
+EBUILD blocksshd-0.9.ebuild 1360 RMD160 c7dd7c04fac7b53b5ff372bc491f9d37d25cd3fd SHA1 41c931abd0428025319ff5db9508c8a72bbbdfd8 SHA256 5039f3b706df01428efd484737fd773b89133382443e24eb063296a97a494443
+MD5 7884c4ee3910ac4c266df8c827047bca blocksshd-0.9.ebuild 1360
+RMD160 c7dd7c04fac7b53b5ff372bc491f9d37d25cd3fd blocksshd-0.9.ebuild 1360
+SHA256 5039f3b706df01428efd484737fd773b89133382443e24eb063296a97a494443 blocksshd-0.9.ebuild 1360
+MISC ChangeLog 917 RMD160 5ac0dcb85f670501f1df436609405a0951a0c441 SHA1 f159dc12007f669c566f38d7229e153726f21f43 SHA256 9058f4c3e8668f79a84b7e9f66afed9e2779388e641e4dadd10cb91d67ed2a86
+MD5 1d1b2a86611bebe992354fd35860858f ChangeLog 917
+RMD160 5ac0dcb85f670501f1df436609405a0951a0c441 ChangeLog 917
+SHA256 9058f4c3e8668f79a84b7e9f66afed9e2779388e641e4dadd10cb91d67ed2a86 ChangeLog 917
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@@ -58,3 +71,6 @@ SHA256 6da83381b0300c3f47e596cdc29e10e6b47b259a69f8cf35444541c11c989d0a files/di
MD5 c2042f7d1315a78c52bd716ba6b061ae files/digest-blocksshd-0.8 235
RMD160 40ce26d76aaaa59370d856ec621c3ca9d5d42f62 files/digest-blocksshd-0.8 235
SHA256 7624d618a18c042093224897781eb4c45cd7148366fa4b825d4852f9e660dec1 files/digest-blocksshd-0.8 235
+MD5 204119c9163d50fcea4d71ae53fb1332 files/digest-blocksshd-0.9 235
+RMD160 1490dea318d2d285a94417050cc2628dd382e988 files/digest-blocksshd-0.9 235
+SHA256 4c6d6df1d25165afaaf06241cd5d7a579d5531ba00d6344a4e7ffe232cbafe94 files/digest-blocksshd-0.9 235
diff --git a/net-misc/blocksshd/blocksshd-0.9.ebuild b/net-misc/blocksshd/blocksshd-0.9.ebuild
new file mode 100644
index 000000000..ca95acd14
--- /dev/null
+++ b/net-misc/blocksshd/blocksshd-0.9.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.9.conf-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.9.conf-dir-change.patch
new file mode 100644
index 000000000..0d743eeab
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.9.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.9.etc-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.9.etc-dir-change.patch
new file mode 100644
index 000000000..5f0dd02ec
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.9.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.9 b/net-misc/blocksshd/files/digest-blocksshd-0.9
new file mode 100644
index 000000000..e01be022f
--- /dev/null
+++ b/net-misc/blocksshd/files/digest-blocksshd-0.9
@@ -0,0 +1,3 @@
+MD5 5d54ceb1fdf7bc59ca3c6236fad9732d blocksshd-0.9.tar.gz 9929
+RMD160 6ff2fe17b6a2c0e07e7b757d08555cefa6f75e61 blocksshd-0.9.tar.gz 9929
+SHA256 280bc57932bb6694d26202edab65679da9a925ca1e6d1ff891bcecd3f11ec360 blocksshd-0.9.tar.gz 9929