summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-12-16 09:13:50 +0100
committerJeroen Roovers <jer@gentoo.org>2015-12-16 09:13:50 +0100
commite92a08bc8829ab7ccf0127e5a653b3cea45b7582 (patch)
treeb6c55f8fe979ec609d1cca0689a553d01a9c8054 /app-admin
parentnet-firewall/psad: Version bump. (diff)
downloadgentoo-e92a08bc8829ab7ccf0127e5a653b3cea45b7582.tar.gz
gentoo-e92a08bc8829ab7ccf0127e5a653b3cea45b7582.tar.bz2
gentoo-e92a08bc8829ab7ccf0127e5a653b3cea45b7582.zip
app-admin/sshguard: Version bump (bug #567642 by Noramo).
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/sshguard/Manifest1
-rw-r--r--app-admin/sshguard/files/sshguard.initd2
-rw-r--r--app-admin/sshguard/sshguard-1.6.1.ebuild62
3 files changed, 64 insertions, 1 deletions
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest
index 4b35a743dd9..47cfb521fa4 100644
--- a/app-admin/sshguard/Manifest
+++ b/app-admin/sshguard/Manifest
@@ -1 +1,2 @@
DIST sshguard-1.5.tar.bz2 303767 SHA256 b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19 SHA512 6d17abccd94af9e7fb04a54477ff5686caa64dc36e2f2cbc4a8cd7bc293923daf2fee87fa7f2e247eba1b310abe68549e652ab3224c2d19822d2e8a0306e49e6 WHIRLPOOL 7d579f5c9a03d79f7cc7b51b537b91b053faa56653ba7c5182550ddab41c0fbcd12a6cd7a6dfb2d1e2323905ef3e35aaef9ca8175d97e26cb953d57403f46562
+DIST sshguard-1.6.1.tar.xz 416088 SHA256 f431899c20fa2f41fa293605af96ff97d44823b84db41c914ee60da44f1ff6c8 SHA512 a21c28e2efcadeff514c8a5b1ed938ba466f9116b40ee4283ad411fe6248bfa7186d9add9a136399f659a74fb2b517c6033027ec546dae9bec5b47edf32db3ed WHIRLPOOL 22a0ace695e9ab6e173bc0bf2d23d584113be0298253d5a13df3749071c68edcd581f3118c326dc42c8b643420b62d1389534b91a2fc537bb9abca49fb84ffbc
diff --git a/app-admin/sshguard/files/sshguard.initd b/app-admin/sshguard/files/sshguard.initd
index 03b6a09156b..659c3f737d0 100644
--- a/app-admin/sshguard/files/sshguard.initd
+++ b/app-admin/sshguard/files/sshguard.initd
@@ -12,7 +12,7 @@ SSHGUARD_PIDFILE=${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid}
start() {
ebegin "Starting sshguard"
- [[ -z ${SSHGUARD_WAIT} ]] && SSHGUARD_WAIT=999
+ [ -z "${SSHGUARD_WAIT}" ] && SSHGUARD_WAIT=999
start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet --exec \
/usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${SSHGUARD_OPTS}
eend $?
diff --git a/app-admin/sshguard/sshguard-1.6.1.ebuild b/app-admin/sshguard/sshguard-1.6.1.ebuild
new file mode 100644
index 00000000000..7e740f360a1
--- /dev/null
+++ b/app-admin/sshguard/sshguard-1.6.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit flag-o-matic
+
+DESCRIPTION="protects hosts from brute force attacks against ssh"
+HOMEPAGE="http://sshguard.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="ipfilter kernel_FreeBSD kernel_linux"
+
+CDEPEND="
+ kernel_linux? ( net-firewall/iptables )
+ kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) )
+"
+DEPEND="
+ ${CDEPEND}
+ sys-devel/flex
+"
+RDEPEND="
+ ${CDEPEND}
+ sys-apps/openrc
+ virtual/logger
+"
+
+DOCS=( ChangeLog README.rst scripts/sshguard_backendgen.sh )
+
+src_prepare() {
+ sed -i -e '/OPTIMIZER_CFLAGS=/d' configure || die
+}
+
+src_configure() {
+ # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c
+ append-cppflags -D_BSD_SOURCE
+
+ local myconf
+ if use kernel_linux; then
+ myconf="--with-firewall=iptables"
+ elif use kernel_FreeBSD; then
+ if use ipfilter; then
+ myconf="--with-firewall=ipfw"
+ else
+ myconf="--with-firewall=pf"
+ fi
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ default
+
+ dodoc -r examples/
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}