summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2006-07-31 12:08:21 +0000
committerJakub Moc <jakub@gentoo.org>2006-07-31 12:08:21 +0000
commitae197f8e96d5e005683bd71c5d4207f7e6838f3f (patch)
treef3e4c92b792389eec84c24a32dad72b5f0c99bdb /net-misc/blocksshd
parentnet-misc/aria2: Fix dependencies (diff)
downloadsunrise-ae197f8e96d5e005683bd71c5d4207f7e6838f3f.tar.gz
sunrise-ae197f8e96d5e005683bd71c5d4207f7e6838f3f.tar.bz2
sunrise-ae197f8e96d5e005683bd71c5d4207f7e6838f3f.zip
net-misc/blocksshd: Version bump, cosmetics
svn path=/sunrise/; revision=763
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.7.ebuild56
-rw-r--r--net-misc/blocksshd/files/blocksshd-0.7.conf-dir-change.patch26
-rw-r--r--net-misc/blocksshd/files/blocksshd-0.7.etc-dir-change.patch11
-rw-r--r--net-misc/blocksshd/files/digest-blocksshd-0.73
6 files changed, 121 insertions, 4 deletions
diff --git a/net-misc/blocksshd/ChangeLog b/net-misc/blocksshd/ChangeLog
index cd36b5e76..c543efbb4 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: $
+ 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:
+ Version bump, cosmetics
+
24 Jul 2006; Michael Pagano <mpagano@gmail.com> +blocksshd-0.6.ebuild,
+files/blocksshd-0.6.conf-dir-change.patch,
+files/blocksshd-0.6.etc-dir-change.patch, +files/blocksshd.init,
diff --git a/net-misc/blocksshd/Manifest b/net-misc/blocksshd/Manifest
index 535623561..f9d3510cd 100644
--- a/net-misc/blocksshd/Manifest
+++ b/net-misc/blocksshd/Manifest
@@ -6,19 +6,32 @@ AUX blocksshd-0.6.etc-dir-change.patch 370 RMD160 d9e497410a1c1409415c00297bc35c
MD5 91ed834dee195e66851ed71f2ef7be8b files/blocksshd-0.6.etc-dir-change.patch 370
RMD160 d9e497410a1c1409415c00297bc35c28e3ad9d75 files/blocksshd-0.6.etc-dir-change.patch 370
SHA256 2649e4b88ee3731845ef807f6b16958ebfec3977664fcd1d1533171d4a6fb327 files/blocksshd-0.6.etc-dir-change.patch 370
+AUX blocksshd-0.7.conf-dir-change.patch 2050 RMD160 ed2bc8a15e61159cceacc0a880696d96f32d7cc2 SHA1 ece7e92365de5d0f26b73856725099516705cd2d SHA256 3669394d9c3e712c02cd3d8f9b6b50b56f106a64bbdbb412248d18a37bde076d
+MD5 e9733a1ac05f9aa9ec7174c19d179956 files/blocksshd-0.7.conf-dir-change.patch 2050
+RMD160 ed2bc8a15e61159cceacc0a880696d96f32d7cc2 files/blocksshd-0.7.conf-dir-change.patch 2050
+SHA256 3669394d9c3e712c02cd3d8f9b6b50b56f106a64bbdbb412248d18a37bde076d files/blocksshd-0.7.conf-dir-change.patch 2050
+AUX blocksshd-0.7.etc-dir-change.patch 372 RMD160 a3b66e56f4a8e99a810e322280a62eceb13cd459 SHA1 9f260d1d30f90c47ecd9a402adfb764be39a5e71 SHA256 fa4d8289c7ef8d710631a2f105b7a00e400856377871266954519a31cee91337
+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.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
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
SHA256 2cff629bfb2da6e6200bce924c40bd50acdac0b58b2a3763fd4393cfe2fe6b5a blocksshd-0.6.ebuild 1427
-MISC ChangeLog 374 RMD160 a6d0bcacd8099c6d56cad214a41cdeae34aad228 SHA1 7eb971b1644e0a51e6b3cba7e838fda8849097f0 SHA256 c14fb8b7b708a6d7c4e2b610d144cc3dfc50b4e52c8d70f8b13ed7e067150bee
-MD5 3e9f4032a89cc7f8872a8cae97293516 ChangeLog 374
-RMD160 a6d0bcacd8099c6d56cad214a41cdeae34aad228 ChangeLog 374
-SHA256 c14fb8b7b708a6d7c4e2b610d144cc3dfc50b4e52c8d70f8b13ed7e067150bee ChangeLog 374
+EBUILD blocksshd-0.7.ebuild 1420 RMD160 9c528693094d4cae14e354d755e90397927eb044 SHA1 86076124cbbb10238052f292e45dbb2b930e4ab5 SHA256 51ccfce63c0d54630bed2e9259d8b43eb752d01bb8844ccfe5f0b2a6138039d0
+MD5 b0df3c7a88be5dc20a7249e19d48e751 blocksshd-0.7.ebuild 1420
+RMD160 9c528693094d4cae14e354d755e90397927eb044 blocksshd-0.7.ebuild 1420
+SHA256 51ccfce63c0d54630bed2e9259d8b43eb752d01bb8844ccfe5f0b2a6138039d0 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
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@@ -26,3 +39,6 @@ SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata
MD5 1fdd22fb03a8667baf1b6c1fe0acf268 files/digest-blocksshd-0.6 235
RMD160 89c574ea2f9179fd093ba21a7fc4981324a54f46 files/digest-blocksshd-0.6 235
SHA256 8161e4074802087d4e0ea362f7024a550d298b00e7ca9a12cead75d041356ab5 files/digest-blocksshd-0.6 235
+MD5 802e890c52d3c4dde18c533a9b94e401 files/digest-blocksshd-0.7 235
+RMD160 589e6c7a5f6f85c61e72a3641821fe319c7bbe3d files/digest-blocksshd-0.7 235
+SHA256 6da83381b0300c3f47e596cdc29e10e6b47b259a69f8cf35444541c11c989d0a files/digest-blocksshd-0.7 235
diff --git a/net-misc/blocksshd/blocksshd-0.7.ebuild b/net-misc/blocksshd/blocksshd-0.7.ebuild
new file mode 100644
index 000000000..621cba487
--- /dev/null
+++ b/net-misc/blocksshd/blocksshd-0.7.ebuild
@@ -0,0 +1,56 @@
+# 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-1"
+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
+ >=dev-perl/Proc-Daemon-0.03
+ >=dev-perl/Proc-PID-File-1.24
+ >=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.7.conf-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.7.conf-dir-change.patch
new file mode 100644
index 000000000..f2b11a5da
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.7.conf-dir-change.patch
@@ -0,0 +1,26 @@
+--- blocksshd.conf.org 2006-07-19 06:57:06.000000000 -0400
++++ blocksshd.conf 2006-07-21 14:31:43.000000000 -0400
+@@ -3,18 +3,18 @@
+ $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
++ mail => '/bin/mail', # Location of mail binary
+ iptables => '/sbin/iptables', # Location of iptables binary - only for Linux
+ pfctl => '/sbin/pfctl', # Location of pfctl binary - only for BSD
+ whitelist => [qw{
diff --git a/net-misc/blocksshd/files/blocksshd-0.7.etc-dir-change.patch b/net-misc/blocksshd/files/blocksshd-0.7.etc-dir-change.patch
new file mode 100644
index 000000000..89d604b61
--- /dev/null
+++ b/net-misc/blocksshd/files/blocksshd-0.7.etc-dir-change.patch
@@ -0,0 +1,11 @@
+--- blocksshd.orig 2006-07-31 14:00:07.000000000 +0200
++++ blocksshd 2006-07-31 14:03:51.000000000 +0200
+@@ -42,7 +42,7 @@
+ our $cfg;
+
+ # this is where 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.7 b/net-misc/blocksshd/files/digest-blocksshd-0.7
new file mode 100644
index 000000000..59a0233c7
--- /dev/null
+++ b/net-misc/blocksshd/files/digest-blocksshd-0.7
@@ -0,0 +1,3 @@
+MD5 166b4ecbe7bc35723d07fc4a4238c689 blocksshd-0.7.tar.gz 9586
+RMD160 17e01a225466d1ad7aa05f9e4191eb9013477ec4 blocksshd-0.7.tar.gz 9586
+SHA256 40d776837af7bdebf6491286b67128e7a09c0e199b53973d1e1bcea57c8c80d1 blocksshd-0.7.tar.gz 9586