summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-08-10 09:19:36 +0200
committerJeroen Roovers <jer@gentoo.org>2016-08-10 09:20:06 +0200
commit7d9d29f963006724f6f008652b6788d9642c47c0 (patch)
treeb34b6ff23fdd5c15359df8f7d9fe5dba6550c403 /app-admin/sshguard
parentnet-proxy/haproxy: add libressl support (diff)
downloadgentoo-7d9d29f963006724f6f008652b6788d9642c47c0.tar.gz
gentoo-7d9d29f963006724f6f008652b6788d9642c47c0.tar.bz2
gentoo-7d9d29f963006724f6f008652b6788d9642c47c0.zip
app-admin/sshguard: Version bump.
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-admin/sshguard')
-rw-r--r--app-admin/sshguard/Manifest1
-rw-r--r--app-admin/sshguard/sshguard-1.7.0.ebuild67
2 files changed, 68 insertions, 0 deletions
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest
index e28853dca622..2ac4e6665e26 100644
--- a/app-admin/sshguard/Manifest
+++ b/app-admin/sshguard/Manifest
@@ -1,3 +1,4 @@
DIST sshguard-1.5.tar.bz2 303767 SHA256 b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19 SHA512 6d17abccd94af9e7fb04a54477ff5686caa64dc36e2f2cbc4a8cd7bc293923daf2fee87fa7f2e247eba1b310abe68549e652ab3224c2d19822d2e8a0306e49e6 WHIRLPOOL 7d579f5c9a03d79f7cc7b51b537b91b053faa56653ba7c5182550ddab41c0fbcd12a6cd7a6dfb2d1e2323905ef3e35aaef9ca8175d97e26cb953d57403f46562
DIST sshguard-1.6.2.tar.xz 405092 SHA256 57f56724f475e81bbe5fc75dfcb573213bf7e446d7dd039dcf5ba8fa5bc2cb2b SHA512 2819ef9270474c8b3f1d4c997818cf654aaf06089f3112a24a840df7708822a3d66189f5c7a4e4dba06d7c25bf011c43377f3f9aa97de4f9e664fe97464a5c57 WHIRLPOOL b25ae60deadb771623a6d09a75844fb42815dcdeba239a65c565942bd70586ea661428b38e76e413ff1305aa39387c0117c4d205a8b4a8694575a811cab23799
DIST sshguard-1.6.4.tar.gz 546934 SHA256 654d5412ed010e500e2715ddeebfda57ab23c47a2bd30dfdc1e68c4f04c912a9 SHA512 ac8eeb7c303757cfd8ebfa69425afa1a1c6f07998cbb49ee91649c23ff2693f66f315ca6cd04b2011a4d1951f10d69be0db9bbc05b8814d85376eeb3a3f294ee WHIRLPOOL bc4e678d1f2a9d153d105308bd70bd5801560ada691596601c6358145cd1684ff4403913a63af023a62c590b4a9bdde6bc2afe547d93e58dcc1e43ae347e26b6
+DIST sshguard-1.7.0.tar.gz 769779 SHA256 5ce784bc25dc9801fbfadc4117669ee02397526c420170ae1145ada96df8cd59 SHA512 876789ee0a457b656f9d9488043f0d4f59cb2ba5a6fc3243f6f05e64995c6cf719bffa01bea7f96897b7092946e441507f2ced4f372fb475dfd7ec0cd70bda55 WHIRLPOOL 7ade8de747f398c7552b17bc3b6ce8c9400e169757072cd10147b2f0ca2e67c427a09e4761a63d9bcc24caca499464301388b4d8b709a4f8cc4325e57dbb312d
diff --git a/app-admin/sshguard/sshguard-1.7.0.ebuild b/app-admin/sshguard/sshguard-1.7.0.ebuild
new file mode 100644
index 000000000000..aeed93f04f28
--- /dev/null
+++ b/app-admin/sshguard/sshguard-1.7.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+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.gz"
+
+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.rst
+ README.rst
+ examples/sshguard.service
+ examples/whitelistfile.example
+)
+
+src_prepare() {
+ default
+
+ sed -i -e '/OPTIMIZER_CFLAGS=/d' configure || die
+}
+
+src_configure() {
+ # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c
+ append-cppflags -D_DEFAULT_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
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}