1 |
commit: e92a08bc8829ab7ccf0127e5a653b3cea45b7582 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 16 08:13:50 2015 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 16 08:13:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e92a08bc |
7 |
|
8 |
app-admin/sshguard: Version bump (bug #567642 by Noramo). |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-admin/sshguard/Manifest | 1 + |
13 |
app-admin/sshguard/files/sshguard.initd | 2 +- |
14 |
app-admin/sshguard/sshguard-1.6.1.ebuild | 62 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 64 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest |
18 |
index 4b35a74..47cfb52 100644 |
19 |
--- a/app-admin/sshguard/Manifest |
20 |
+++ b/app-admin/sshguard/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST sshguard-1.5.tar.bz2 303767 SHA256 b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19 SHA512 6d17abccd94af9e7fb04a54477ff5686caa64dc36e2f2cbc4a8cd7bc293923daf2fee87fa7f2e247eba1b310abe68549e652ab3224c2d19822d2e8a0306e49e6 WHIRLPOOL 7d579f5c9a03d79f7cc7b51b537b91b053faa56653ba7c5182550ddab41c0fbcd12a6cd7a6dfb2d1e2323905ef3e35aaef9ca8175d97e26cb953d57403f46562 |
23 |
+DIST sshguard-1.6.1.tar.xz 416088 SHA256 f431899c20fa2f41fa293605af96ff97d44823b84db41c914ee60da44f1ff6c8 SHA512 a21c28e2efcadeff514c8a5b1ed938ba466f9116b40ee4283ad411fe6248bfa7186d9add9a136399f659a74fb2b517c6033027ec546dae9bec5b47edf32db3ed WHIRLPOOL 22a0ace695e9ab6e173bc0bf2d23d584113be0298253d5a13df3749071c68edcd581f3118c326dc42c8b643420b62d1389534b91a2fc537bb9abca49fb84ffbc |
24 |
|
25 |
diff --git a/app-admin/sshguard/files/sshguard.initd b/app-admin/sshguard/files/sshguard.initd |
26 |
index 03b6a09..659c3f7 100644 |
27 |
--- a/app-admin/sshguard/files/sshguard.initd |
28 |
+++ b/app-admin/sshguard/files/sshguard.initd |
29 |
@@ -12,7 +12,7 @@ SSHGUARD_PIDFILE=${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid} |
30 |
|
31 |
start() { |
32 |
ebegin "Starting sshguard" |
33 |
- [[ -z ${SSHGUARD_WAIT} ]] && SSHGUARD_WAIT=999 |
34 |
+ [ -z "${SSHGUARD_WAIT}" ] && SSHGUARD_WAIT=999 |
35 |
start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet --exec \ |
36 |
/usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${SSHGUARD_OPTS} |
37 |
eend $? |
38 |
|
39 |
diff --git a/app-admin/sshguard/sshguard-1.6.1.ebuild b/app-admin/sshguard/sshguard-1.6.1.ebuild |
40 |
new file mode 100644 |
41 |
index 0000000..7e740f3 |
42 |
--- /dev/null |
43 |
+++ b/app-admin/sshguard/sshguard-1.6.1.ebuild |
44 |
@@ -0,0 +1,62 @@ |
45 |
+# Copyright 1999-2014 Gentoo Foundation |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+# $Id$ |
48 |
+ |
49 |
+EAPI=5 |
50 |
+inherit flag-o-matic |
51 |
+ |
52 |
+DESCRIPTION="protects hosts from brute force attacks against ssh" |
53 |
+HOMEPAGE="http://sshguard.sourceforge.net/" |
54 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" |
55 |
+ |
56 |
+LICENSE="BSD" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
59 |
+IUSE="ipfilter kernel_FreeBSD kernel_linux" |
60 |
+ |
61 |
+CDEPEND=" |
62 |
+ kernel_linux? ( net-firewall/iptables ) |
63 |
+ kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) ) |
64 |
+" |
65 |
+DEPEND=" |
66 |
+ ${CDEPEND} |
67 |
+ sys-devel/flex |
68 |
+" |
69 |
+RDEPEND=" |
70 |
+ ${CDEPEND} |
71 |
+ sys-apps/openrc |
72 |
+ virtual/logger |
73 |
+" |
74 |
+ |
75 |
+DOCS=( ChangeLog README.rst scripts/sshguard_backendgen.sh ) |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ sed -i -e '/OPTIMIZER_CFLAGS=/d' configure || die |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c |
83 |
+ append-cppflags -D_BSD_SOURCE |
84 |
+ |
85 |
+ local myconf |
86 |
+ if use kernel_linux; then |
87 |
+ myconf="--with-firewall=iptables" |
88 |
+ elif use kernel_FreeBSD; then |
89 |
+ if use ipfilter; then |
90 |
+ myconf="--with-firewall=ipfw" |
91 |
+ else |
92 |
+ myconf="--with-firewall=pf" |
93 |
+ fi |
94 |
+ fi |
95 |
+ |
96 |
+ econf ${myconf} |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ default |
101 |
+ |
102 |
+ dodoc -r examples/ |
103 |
+ |
104 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
105 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
106 |
+} |