From: | "Christoph Junghans (ottxor)" <ottxor@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/denyhosts: denyhosts-2.9.ebuild ChangeLog |
Date: | Tue, 03 Feb 2015 21:07:37 |
Message-Id: | 20150203210720.3AE3E10FE8@oystercatcher.gentoo.org |
1 | ottxor 15/02/03 21:07:20 |
2 | |
3 | Modified: ChangeLog |
4 | Added: denyhosts-2.9.ebuild |
5 | Log: |
6 | version bump |
7 | |
8 | (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key C2000586) |
9 | |
10 | Revision Changes Path |
11 | 1.88 app-admin/denyhosts/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.88&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.88&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.87&r2=1.88 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v |
20 | retrieving revision 1.87 |
21 | retrieving revision 1.88 |
22 | diff -u -r1.87 -r1.88 |
23 | --- ChangeLog 28 Dec 2014 18:17:29 -0000 1.87 |
24 | +++ ChangeLog 3 Feb 2015 21:07:20 -0000 1.88 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for app-admin/denyhosts |
27 | -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.87 2014/12/28 18:17:29 floppym Exp $ |
29 | +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.88 2015/02/03 21:07:20 ottxor Exp $ |
31 | + |
32 | +*denyhosts-2.9 (03 Feb 2015) |
33 | + |
34 | + 03 Feb 2015; Christoph Junghans <ottxor@g.o> +denyhosts-2.9.ebuild: |
35 | + version bump |
36 | |
37 | 28 Dec 2014; Mike Gilbert <floppym@g.o> denyhosts-2.6-r10.ebuild, |
38 | denyhosts-2.6-r9.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 app-admin/denyhosts/denyhosts-2.9.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.9.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.9.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: denyhosts-2.9.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2015 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.9.ebuild,v 1.1 2015/02/03 21:07:20 ottxor Exp $ |
52 | |
53 | EAPI=5 |
54 | PYTHON_COMPAT=( python2_7 ) |
55 | |
56 | inherit distutils-r1 eutils readme.gentoo systemd |
57 | |
58 | DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" |
59 | HOMEPAGE="http://denyhost.sourceforge.net/" |
60 | SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
61 | |
62 | LICENSE="GPL-2" |
63 | SLOT="0" |
64 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86" |
65 | IUSE="" |
66 | |
67 | DEPEND="" |
68 | RDEPEND="" |
69 | |
70 | DISABLE_AUTOFORMATTING="yes" |
71 | DOC_CONTENTS=" |
72 | >=net-misc/openssh-6.7p1 dropped support for sys-apps/tcp-wrappers |
73 | (see bug#531156) that means you either have patch openssh or use |
74 | denyhosts' iptables feature to get any protection. |
75 | |
76 | You can configure DenyHosts to run as a daemon by running: |
77 | # rc-update add denyhosts default |
78 | or: |
79 | # systemctl enable denyhosts.service |
80 | (if you use systemd) |
81 | |
82 | To run DenyHosts as a cronjob instead of a daemon add the following |
83 | to /etc/crontab |
84 | # run DenyHosts every 10 minutes |
85 | */10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf |
86 | |
87 | More information can be found at ${HOMEPAGE}faq.html" |
88 | |
89 | src_prepare() { |
90 | #systemd needs HOSTNAME |
91 | epatch "${FILESDIR}"/${PN}-2.6-hostname.patch |
92 | |
93 | sed -e '/^DENY_THRESHOLD_VALID =/s/=.*/= 5/' \ |
94 | -e '/^SECURE_LOG/s/^/#/' \ |
95 | -e '\@#SECURE_LOG.*/var/log/messages@s/^#//' \ |
96 | -i denyhosts.conf || die "sed failed" |
97 | |
98 | distutils-r1_src_prepare |
99 | } |
100 | |
101 | src_install() { |
102 | readme.gentoo_create_doc |
103 | |
104 | dodoc CHANGELOG.txt README.txt PKG-INFO |
105 | distutils-r1_src_install |
106 | |
107 | dodir /etc/logrotate.d |
108 | insinto /etc/logrotate.d |
109 | newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN} |
110 | |
111 | newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts |
112 | systemd_dounit "${FILESDIR}"/${PN}.service |
113 | |
114 | keepdir /var/lib/denyhosts |
115 | } |
116 | |
117 | pkg_postinst() { |
118 | [[ -f "${EROOT}etc/hosts.deny" ]] || touch "${EROOT}etc/hosts.deny" |
119 | |
120 | readme.gentoo_print_elog |
121 | } |