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/Manifest39
-rw-r--r--net-misc/blocksshd/blocksshd-1.0.1.ebuild55
-rw-r--r--net-misc/blocksshd/files/blocksshd-1.0.1.conf-dir-change.patch23
-rw-r--r--net-misc/blocksshd/files/blocksshd-1.0.1.etc-dir-change.patch11
-rw-r--r--net-misc/blocksshd/files/digest-blocksshd-1.02
-rw-r--r--net-misc/blocksshd/files/digest-blocksshd-1.0.13
7 files changed, 137 insertions, 1 deletions
diff --git a/net-misc/blocksshd/ChangeLog b/net-misc/blocksshd/ChangeLog
index 0763450f6..63a7f827c 100644
--- a/net-misc/blocksshd/ChangeLog
+++ b/net-misc/blocksshd/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 05 Mar 2007; Michael Pagano <mpagano@gmail.com> +blocksshd-1.0.1.ebuild,
+ +files/blocksshd-1.0.1.conf-dir-change.patch,
+ +files/blocksshd-1.0.1.etc-dir-change.patch:
+ Version bump
+
09 Dec 2006; Jakub Moc <jakub@gentoo.org> blocksshd-1.0.ebuild:
Use proper perl virtuals in depend, instead of perl-core packages
diff --git a/net-misc/blocksshd/Manifest b/net-misc/blocksshd/Manifest
index 171e83fd6..a837faa23 100644
--- a/net-misc/blocksshd/Manifest
+++ b/net-misc/blocksshd/Manifest
@@ -1,7 +1,44 @@
+AUX blocksshd-1.0.1.conf-dir-change.patch 1843 RMD160 0aabb6681cb90523b7bfe9db81f911e4db061bc4 SHA1 cf3c06050e89cc7127573c632d1bf7765219f42c SHA256 08a08cd49ef6e84080dc1e42dade378bb52851514f62b16495f50e8e3829ebec
+MD5 2a955cf1718bee9fc73ea669f050373e files/blocksshd-1.0.1.conf-dir-change.patch 1843
+RMD160 0aabb6681cb90523b7bfe9db81f911e4db061bc4 files/blocksshd-1.0.1.conf-dir-change.patch 1843
+SHA256 08a08cd49ef6e84080dc1e42dade378bb52851514f62b16495f50e8e3829ebec files/blocksshd-1.0.1.conf-dir-change.patch 1843
+AUX blocksshd-1.0.1.etc-dir-change.patch 360 RMD160 dacfe6bbb474da47879c7e4285a01916471bc48e SHA1 55c4e96683041f00d09bb066ada5934da031e50e SHA256 cf6eac7cb5984b3c2e0700a7d440c7b6b56e43bdee1dc0d519983999ad14f9c5
+MD5 d7a19cdc37e6b878ebfc155434504400 files/blocksshd-1.0.1.etc-dir-change.patch 360
+RMD160 dacfe6bbb474da47879c7e4285a01916471bc48e files/blocksshd-1.0.1.etc-dir-change.patch 360
+SHA256 cf6eac7cb5984b3c2e0700a7d440c7b6b56e43bdee1dc0d519983999ad14f9c5 files/blocksshd-1.0.1.etc-dir-change.patch 360
AUX blocksshd-1.0.conf-dir-change.patch 1848 RMD160 e83f16dd4ae557fef82ba4d1c521f40e6d27aede SHA1 7b6dda66e0c2c80bf160f1a9d3f0c6de017e419d SHA256 8ec8d02c126de756d3c05fbd2b2a2235b4b7d771c9e3372047cba9711ff71920
+MD5 cff8c2fdd59c9d7b9aa454a0de5b40aa files/blocksshd-1.0.conf-dir-change.patch 1848
+RMD160 e83f16dd4ae557fef82ba4d1c521f40e6d27aede files/blocksshd-1.0.conf-dir-change.patch 1848
+SHA256 8ec8d02c126de756d3c05fbd2b2a2235b4b7d771c9e3372047cba9711ff71920 files/blocksshd-1.0.conf-dir-change.patch 1848
AUX blocksshd-1.0.etc-dir-change.patch 374 RMD160 87c3390c398259204c5bcffe5c714ee1c6ef308d SHA1 6d1ed9d84af754616e1ad528d1d20a543ebfe0e0 SHA256 420d58822e90f9165fede72825157c2f1146d4d33098c8e6b8e87d9e73615e8d
+MD5 42046e690a1c0627183ac00a617cb6d0 files/blocksshd-1.0.etc-dir-change.patch 374
+RMD160 87c3390c398259204c5bcffe5c714ee1c6ef308d files/blocksshd-1.0.etc-dir-change.patch 374
+SHA256 420d58822e90f9165fede72825157c2f1146d4d33098c8e6b8e87d9e73615e8d files/blocksshd-1.0.etc-dir-change.patch 374
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-1.0.1.tar.gz 10587 RMD160 e4be391d57dfd21d2557ce0e36803e0caae8a71a SHA1 49dd6306018eb2528b8d212d0eff84830e7614ad SHA256 09f5377790c8c6df7afceaa2535f3a2d025f902671b9cb278b6aeacbf420a9af
DIST blocksshd-1.0.tar.gz 10624 RMD160 cf69515be3671e97b03f44459d383514f224423d SHA1 bb4043a8ef2c096703705d730c0aaabd261b74ed SHA256 c00796839894ff470cd116bc960c3570ce60ec738227debf24aa423681d92528
+EBUILD blocksshd-1.0.1.ebuild 1397 RMD160 3e4fe7e194f337279983fc8c04f2de6e6f2ce9e0 SHA1 65e5f82bc85e3a226b3d5183f86e3dc0480350b3 SHA256 79c39e71f2a03a073ed77677e548753180b2b6838d264125b67bb97ad1331053
+MD5 1e5b7ac7a0a626d54477a9bb1ada3e3e blocksshd-1.0.1.ebuild 1397
+RMD160 3e4fe7e194f337279983fc8c04f2de6e6f2ce9e0 blocksshd-1.0.1.ebuild 1397
+SHA256 79c39e71f2a03a073ed77677e548753180b2b6838d264125b67bb97ad1331053 blocksshd-1.0.1.ebuild 1397
EBUILD blocksshd-1.0.ebuild 1397 RMD160 3e4fe7e194f337279983fc8c04f2de6e6f2ce9e0 SHA1 65e5f82bc85e3a226b3d5183f86e3dc0480350b3 SHA256 79c39e71f2a03a073ed77677e548753180b2b6838d264125b67bb97ad1331053
-MISC ChangeLog 2084 RMD160 70959ee1126739ad33a0ef3ad88341f6060b267a SHA1 80c6abc9301a57b3b87746710b6cd5ba7d2a071c SHA256 5d09dfb045e4c2f0d7a3ea22da17288b30fe489f628953f559a80bdde28a6fcd
+MD5 1e5b7ac7a0a626d54477a9bb1ada3e3e blocksshd-1.0.ebuild 1397
+RMD160 3e4fe7e194f337279983fc8c04f2de6e6f2ce9e0 blocksshd-1.0.ebuild 1397
+SHA256 79c39e71f2a03a073ed77677e548753180b2b6838d264125b67bb97ad1331053 blocksshd-1.0.ebuild 1397
+MISC ChangeLog 2270 RMD160 da71cfe9e81ddeefc845b1955ea60d59fa423a47 SHA1 d1a7acf6afc3f95f9817f4408e99767946000b9d SHA256 60f180c8489e42bc5495170d3a8ca1858203f12ce88244376be736278e568261
+MD5 8812dbc90e7bbf040408cc2231c39637 ChangeLog 2270
+RMD160 da71cfe9e81ddeefc845b1955ea60d59fa423a47 ChangeLog 2270
+SHA256 60f180c8489e42bc5495170d3a8ca1858203f12ce88244376be736278e568261 ChangeLog 2270
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
+MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
+RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
+SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170
+MD5 6a03531b2ba53b5bc009de387b9c808b files/digest-blocksshd-1.0 174
+RMD160 9d8fef364630d5e221e8ba057086303c95ab5c0e files/digest-blocksshd-1.0 174
+SHA256 15b04ba202967141fbb11695979ced96911db93a31d72076120b7d0a7796ae5d files/digest-blocksshd-1.0 174
+MD5 c38ecd1cf7cf0fdf3a20069a71aa84e9 files/digest-blocksshd-1.0.1 244
+RMD160 ceb9774c92abac76fe158908ff102e87cfed48ec files/digest-blocksshd-1.0.1 244
+SHA256 e4346e7080daa992d86d563ac21a426637d6c8eff7a4204c26b18a12c464e170 files/digest-blocksshd-1.0.1 244
diff --git a/net-misc/blocksshd/blocksshd-1.0.1.ebuild b/net-misc/blocksshd/blocksshd-1.0.1.ebuild
new file mode 100644
index 000000000..380c1b214
--- /dev/null
+++ b/net-misc/blocksshd/blocksshd-1.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2007 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=">=virtual/perl-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
+ >=dev-perl/Net-Subnets-0.21
+ >=virtual/perl-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-1.0.1.conf-dir-change.patch b/net-misc/blocksshd/files/blocksshd-1.0.1.conf-dir-change.patch
new file mode 100644
index 000000000..2a09a6a4a
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-1.0.1.conf-dir-change.patch
@@ -0,0 +1,23 @@
+--- blocksshd.conf 2006-11-21 09:02:00.000000000 -0500
++++ blocksshd.conf 2007-03-05 14:11:24.000000000 -0500
+@@ -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-1.0.1.etc-dir-change.patch b/net-misc/blocksshd/files/blocksshd-1.0.1.etc-dir-change.patch
new file mode 100644
index 000000000..ffbc66695
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-1.0.1.etc-dir-change.patch
@@ -0,0 +1,11 @@
+--- blocksshd 2007-03-04 01:06:55.000000000 -0500
++++ blocksshd 2007-03-05 14:15:59.000000000 -0500
+@@ -43,7 +43,7 @@
+ our $cfg;
+
+ # This is where the configuration file is located
+-require '/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-1.0 b/net-misc/blocksshd/files/digest-blocksshd-1.0
new file mode 100644
index 000000000..16541e55d
--- /dev/null
+++ b/net-misc/blocksshd/files/digest-blocksshd-1.0
@@ -0,0 +1,2 @@
+RMD160 cf69515be3671e97b03f44459d383514f224423d blocksshd-1.0.tar.gz 10624
+SHA256 c00796839894ff470cd116bc960c3570ce60ec738227debf24aa423681d92528 blocksshd-1.0.tar.gz 10624
diff --git a/net-misc/blocksshd/files/digest-blocksshd-1.0.1 b/net-misc/blocksshd/files/digest-blocksshd-1.0.1
new file mode 100644
index 000000000..ee7958b8d
--- /dev/null
+++ b/net-misc/blocksshd/files/digest-blocksshd-1.0.1
@@ -0,0 +1,3 @@
+MD5 83d93de3f756f92eadf9fbc3138952b4 blocksshd-1.0.1.tar.gz 10587
+RMD160 e4be391d57dfd21d2557ce0e36803e0caae8a71a blocksshd-1.0.1.tar.gz 10587
+SHA256 09f5377790c8c6df7afceaa2535f3a2d025f902671b9cb278b6aeacbf420a9af blocksshd-1.0.1.tar.gz 10587