diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-05-08 09:03:10 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-05-08 09:03:32 +0200 |
commit | 132a6ed735d049f2c7ab954e53afa1c1f75a932a (patch) | |
tree | bc60c01dfae5b86175568ed6e04d1ebd53100722 /app-admin/sshguard | |
parent | media-gfx/splash-themes-livedvd: Fix duplicate maintainer entry (diff) | |
download | gentoo-132a6ed735d049f2c7ab954e53afa1c1f75a932a.tar.gz gentoo-132a6ed735d049f2c7ab954e53afa1c1f75a932a.tar.bz2 gentoo-132a6ed735d049f2c7ab954e53afa1c1f75a932a.zip |
app-admin/sshguard: Version bump (bug #581968 by needle).
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/sshguard')
-rw-r--r-- | app-admin/sshguard/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sshguard/sshguard-1.6.4.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest index 5a31ba70d225..e28853dca622 100644 --- a/app-admin/sshguard/Manifest +++ b/app-admin/sshguard/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/app-admin/sshguard/sshguard-1.6.4.ebuild b/app-admin/sshguard/sshguard-1.6.4.ebuild new file mode 100644 index 000000000000..e0c4c3692ed2 --- /dev/null +++ b/app-admin/sshguard/sshguard-1.6.4.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.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 README.rst ) + +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_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 + + dodoc -r examples/ + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |