summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2007-04-28 00:43:05 +0000
committerMike Pagano <mpagano@gentoo.org>2007-04-28 00:43:05 +0000
commit1607e2d3c1e4646a2513428f341dbadb77cb5b44 (patch)
tree518bce5103669a9012d3f6e897d33b6e9954939b /net-misc/blocksshd
parentnet-misc/mugshot: Version bump (diff)
downloadsunrise-1607e2d3c1e4646a2513428f341dbadb77cb5b44.tar.gz
sunrise-1607e2d3c1e4646a2513428f341dbadb77cb5b44.tar.bz2
sunrise-1607e2d3c1e4646a2513428f341dbadb77cb5b44.zip
net-misc/blocksshd: Version bump
svn path=/sunrise/; revision=3555
Diffstat (limited to 'net-misc/blocksshd')
-rw-r--r--net-misc/blocksshd/ChangeLog5
-rw-r--r--net-misc/blocksshd/Manifest27
-rw-r--r--net-misc/blocksshd/blocksshd-1.1.ebuild55
-rw-r--r--net-misc/blocksshd/files/blocksshd-1.1.conf-dir-change.patch23
-rw-r--r--net-misc/blocksshd/files/blocksshd-1.1.etc-dir-change.patch11
5 files changed, 99 insertions, 22 deletions
diff --git a/net-misc/blocksshd/ChangeLog b/net-misc/blocksshd/ChangeLog
index a8e289430..14b27517b 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: $
+ 28 Apr 2007; Michael Pagano <mpagano@gmail.com> +blocksshd-1.1.ebuild,
+ +files/blocksshd-1.1.conf-dir-change.patch,
+ +files/blocksshd-1.1.etc-dir-change.patch:
+ Version bump
+
07 Mar 2007; Michael Pagano <mpagano@gmail.com> -blocksshd-1.0.ebuild,
-files/blocksshd-1.0.conf-dir-change.patch,
-files/blocksshd-1.0.etc-dir-change.patch:
diff --git a/net-misc/blocksshd/Manifest b/net-misc/blocksshd/Manifest
index 70c9ca921..574c58ff8 100644
--- a/net-misc/blocksshd/Manifest
+++ b/net-misc/blocksshd/Manifest
@@ -1,28 +1,11 @@
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.1.conf-dir-change.patch 1862 RMD160 c413f6ecc3078b077b24788b85cda1a3dcc5f112 SHA1 43e0ffef7d0723531e19289a88a8668fab2fd4a3 SHA256 ac44e5b72d50aaf147a242e293c0618c8081c64b7a83fc00283afcc442cb4294
+AUX blocksshd-1.1.etc-dir-change.patch 365 RMD160 279afd5b2256c477f0a5b201e7688c0e6925fcc1 SHA1 8db0131a09a3bb25e29ffa06414d7554e43b1ba7 SHA256 702b1a5d4cf9e1ff0cfa9100d571f162177c9767d73965b0263460386b24ee98
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.1.tar.gz 11217 RMD160 92523f4b71d8d1c9f007b454d289e42cb3b9f100 SHA1 c1c15ff4d806504e5151e4d682ab0272c8d30c98 SHA256 9e6ca1c49fc824dbec45576064ba3f9d27509c83bfa6b6df56223fd7e0e5c08f
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
-MISC ChangeLog 2457 RMD160 97ddb763911c560996f13cf5c95fcf9858643ef0 SHA1 eb1160496c695d0dd301c65541308da52c7284bb SHA256 3f46409a074e4b2fb2eb5784ea258d4c1b8c679c3e859ccfde0aeee632580462
-MD5 5960582629fc0b3b5b950c80d57d9718 ChangeLog 2457
-RMD160 97ddb763911c560996f13cf5c95fcf9858643ef0 ChangeLog 2457
-SHA256 3f46409a074e4b2fb2eb5784ea258d4c1b8c679c3e859ccfde0aeee632580462 ChangeLog 2457
+EBUILD blocksshd-1.1.ebuild 1397 RMD160 3e4fe7e194f337279983fc8c04f2de6e6f2ce9e0 SHA1 65e5f82bc85e3a226b3d5183f86e3dc0480350b3 SHA256 79c39e71f2a03a073ed77677e548753180b2b6838d264125b67bb97ad1331053
+MISC ChangeLog 2637 RMD160 6c3a315ac0bd429c680c55091990f1b1a653c8c2 SHA1 064b1336b7ad7cd84586c8eb534c8d4c4d38363a SHA256 b6fedadd953bdaa36857a641f6ce0858fc8c0337e18a5d2971512e51257ecca9
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 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.1.ebuild b/net-misc/blocksshd/blocksshd-1.1.ebuild
new file mode 100644
index 000000000..380c1b214
--- /dev/null
+++ b/net-misc/blocksshd/blocksshd-1.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.1.conf-dir-change.patch b/net-misc/blocksshd/files/blocksshd-1.1.conf-dir-change.patch
new file mode 100644
index 000000000..4d4de8bfd
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-1.1.conf-dir-change.patch
@@ -0,0 +1,23 @@
+--- blocksshd.conf.orig 2007-04-27 20:25:57.000000000 -0400
++++ blocksshd.conf 2007-04-27 20:27:16.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
+ email_whois_lookup => '1', # enable whois lookup of the blocked ip addres in the sent email
diff --git a/net-misc/blocksshd/files/blocksshd-1.1.etc-dir-change.patch b/net-misc/blocksshd/files/blocksshd-1.1.etc-dir-change.patch
new file mode 100644
index 000000000..0d70ba784
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-1.1.etc-dir-change.patch
@@ -0,0 +1,11 @@
+--- blocksshd.orig 2007-04-27 20:29:32.000000000 -0400
++++ blocksshd 2007-04-27 20:29:51.000000000 -0400
+@@ -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