Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/denyhosts/, profiles/, app-admin/denyhosts/files/
Date: Thu, 20 Aug 2020 13:19:27
Message-Id: 1597929525.fbf8bbf4d181709547432aa13b6c8c2be7187f47.mgorny@gentoo
1 commit: fbf8bbf4d181709547432aa13b6c8c2be7187f47
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 20 13:18:45 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 13:18:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbf8bbf4
7
8 app-admin/denyhosts: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/732076
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 app-admin/denyhosts/Manifest | 1 -
14 app-admin/denyhosts/denyhosts-3.0-r1.ebuild | 66 ----------------------
15 app-admin/denyhosts/denyhosts-3.0-r2.ebuild | 66 ----------------------
16 .../denyhosts/files/denyhosts-3.0-python2.7.patch | 51 -----------------
17 app-admin/denyhosts/files/denyhosts.init-r2 | 27 ---------
18 app-admin/denyhosts/files/denyhosts.logrotate-r2 | 10 ----
19 app-admin/denyhosts/files/denyhosts.service | 12 ----
20 app-admin/denyhosts/metadata.xml | 9 ---
21 profiles/package.mask | 6 --
22 9 files changed, 248 deletions(-)
23
24 diff --git a/app-admin/denyhosts/Manifest b/app-admin/denyhosts/Manifest
25 deleted file mode 100644
26 index 46ed157092a..00000000000
27 --- a/app-admin/denyhosts/Manifest
28 +++ /dev/null
29 @@ -1 +0,0 @@
30 -DIST denyhosts-3.0.tar.gz 56283 BLAKE2B 1ecb8a13ec9511cb4ac65579aa8f88117264f231b586c30a61ad9c78abd17aeebc5642e70f162fa7e73fe81a99821d494efca213b1bf864fd0e2043fa4374e6a SHA512 8a1c796c259049ffab2c88cef780b175ec75c94216841421f831dfbf45f4ba0cdbcfbb0e3dab7200aa79eeb2416db5234ad5016d5770d8ab2f28ef4c9754e70d
31
32 diff --git a/app-admin/denyhosts/denyhosts-3.0-r1.ebuild b/app-admin/denyhosts/denyhosts-3.0-r1.ebuild
33 deleted file mode 100644
34 index 287529f92f3..00000000000
35 --- a/app-admin/denyhosts/denyhosts-3.0-r1.ebuild
36 +++ /dev/null
37 @@ -1,66 +0,0 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -PYTHON_COMPAT=( python3_6 )
43 -
44 -inherit distutils-r1 eutils readme.gentoo-r1 systemd
45 -
46 -DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers"
47 -HOMEPAGE="https://github.com/denyhosts/denyhosts"
48 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -KEYWORDS="~alpha amd64 arm hppa ppc sparc x86"
53 -IUSE=""
54 -
55 -DEPEND=""
56 -RDEPEND=""
57 -
58 -DISABLE_AUTOFORMATTING="yes"
59 -DOC_CONTENTS="
60 ->=net-misc/openssh-6.7p1 dropped support for sys-apps/tcp-wrappers
61 -(see bug#531156) that means you either have patch openssh or use
62 -denyhosts' iptables feature to get any protection.
63 -
64 -You can configure DenyHosts to run as a daemon by running:
65 -# rc-update add denyhosts default
66 -or:
67 -# systemctl enable denyhosts.service
68 -(if you use systemd)
69 -
70 -To run DenyHosts as a cronjob instead of a daemon add the following
71 -to /etc/crontab
72 -# run DenyHosts every 10 minutes
73 -*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf
74 -
75 -More information can be found at ${HOMEPAGE}faq.html"
76 -
77 -#bring back python-2.7 support bug #577502
78 -PATCHES=( "${FILESDIR}"/"${P}"-python2.7.patch )
79 -
80 -src_prepare() {
81 - sed -e '/^DENY_THRESHOLD_VALID =/s/=.*/= 5/' \
82 - -e '/^SECURE_LOG/s/^/#/' \
83 - -e '\@#SECURE_LOG.*/var/log/messages@s/^#//' \
84 - -i denyhosts.conf || die "sed failed"
85 -
86 - distutils-r1_src_prepare
87 -}
88 -
89 -src_install() {
90 - readme.gentoo_create_doc
91 -
92 - dodoc CHANGELOG.txt README.md
93 - distutils-r1_src_install
94 -
95 - dodir /etc/logrotate.d
96 - insinto /etc/logrotate.d
97 - newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN}
98 -
99 - newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts
100 - systemd_dounit "${FILESDIR}"/${PN}.service
101 -
102 - keepdir /var/lib/denyhosts
103 -}
104
105 diff --git a/app-admin/denyhosts/denyhosts-3.0-r2.ebuild b/app-admin/denyhosts/denyhosts-3.0-r2.ebuild
106 deleted file mode 100644
107 index 70da20f43fa..00000000000
108 --- a/app-admin/denyhosts/denyhosts-3.0-r2.ebuild
109 +++ /dev/null
110 @@ -1,66 +0,0 @@
111 -# Copyright 1999-2020 Gentoo Authors
112 -# Distributed under the terms of the GNU General Public License v2
113 -
114 -EAPI=6
115 -PYTHON_COMPAT=( python3_{6,7,8} )
116 -
117 -inherit distutils-r1 eutils readme.gentoo-r1 systemd
118 -
119 -DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers"
120 -HOMEPAGE="https://github.com/denyhosts/denyhosts"
121 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
122 -
123 -LICENSE="GPL-2"
124 -SLOT="0"
125 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
126 -IUSE=""
127 -
128 -DEPEND=""
129 -RDEPEND=""
130 -
131 -DISABLE_AUTOFORMATTING="yes"
132 -DOC_CONTENTS="
133 ->=net-misc/openssh-6.7p1 dropped support for sys-apps/tcp-wrappers
134 -(see bug#531156) that means you either have patch openssh or use
135 -denyhosts' iptables feature to get any protection.
136 -
137 -You can configure DenyHosts to run as a daemon by running:
138 -# rc-update add denyhosts default
139 -or:
140 -# systemctl enable denyhosts.service
141 -(if you use systemd)
142 -
143 -To run DenyHosts as a cronjob instead of a daemon add the following
144 -to /etc/crontab
145 -# run DenyHosts every 10 minutes
146 -*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf
147 -
148 -More information can be found at ${HOMEPAGE}faq.html"
149 -
150 -#bring back python-2.7 support bug #577502
151 -PATCHES=( "${FILESDIR}"/"${P}"-python2.7.patch )
152 -
153 -src_prepare() {
154 - sed -e '/^DENY_THRESHOLD_VALID =/s/=.*/= 5/' \
155 - -e '/^SECURE_LOG/s/^/#/' \
156 - -e '\@#SECURE_LOG.*/var/log/messages@s/^#//' \
157 - -i denyhosts.conf || die "sed failed"
158 -
159 - distutils-r1_src_prepare
160 -}
161 -
162 -src_install() {
163 - readme.gentoo_create_doc
164 -
165 - dodoc CHANGELOG.txt README.md
166 - distutils-r1_src_install
167 -
168 - dodir /etc/logrotate.d
169 - insinto /etc/logrotate.d
170 - newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN}
171 -
172 - newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts
173 - systemd_dounit "${FILESDIR}"/${PN}.service
174 -
175 - keepdir /var/lib/denyhosts
176 -}
177
178 diff --git a/app-admin/denyhosts/files/denyhosts-3.0-python2.7.patch b/app-admin/denyhosts/files/denyhosts-3.0-python2.7.patch
179 deleted file mode 100644
180 index 4b727c7067d..00000000000
181 --- a/app-admin/denyhosts/files/denyhosts-3.0-python2.7.patch
182 +++ /dev/null
183 @@ -1,51 +0,0 @@
184 -From b5611dfa0510ec8fbaa2db4b6834d0bd7ecf0909 Mon Sep 17 00:00:00 2001
185 -From: Jesse <jessefrgsmith@×××××.ca>
186 -Date: Sat, 27 Jun 2015 20:24:44 -0300
187 -Subject: [PATCH] Fixed a type check which was causing syntax/undefined errors
188 - in DenyHosts/report.py when switching between Python2 and Python3.
189 -
190 ----
191 - CHANGELOG.txt | 8 ++++++++
192 - DenyHosts/report.py | 4 +++-
193 - 2 files changed, 11 insertions(+), 1 deletion(-)
194 -
195 -diff --git a/CHANGELOG.txt b/CHANGELOG.txt
196 -index ca173cb..b585332 100644
197 ---- a/CHANGELOG.txt
198 -+++ b/CHANGELOG.txt
199 -@@ -1,5 +1,13 @@
200 - DENYHOSTS CHANGELOG
201 -
202 -+3.1
203 -+======================
204 -+
205 -+Fixed a type check in DenyHosts/report.py which was causing
206 -+problems when moving between Python2 and Python3.
207 -+
208 -+
209 -+
210 - 3.0
211 - ======================
212 -
213 -diff --git a/DenyHosts/report.py b/DenyHosts/report.py
214 -index 05f3e3d..9560eab 100644
215 ---- a/DenyHosts/report.py
216 -+++ b/DenyHosts/report.py
217 -@@ -3,6 +3,7 @@
218 - import socket
219 - # Removing this as it causes runtime errors on Python3.4
220 - # from types import ListType, TupleType
221 -+import types
222 - from .util import is_true
223 - try:
224 - import syslog
225 -@@ -38,7 +39,8 @@ def get_report(self):
226 - def add_section(self, message, iterable):
227 - self.report += "%s:\n\n" % message
228 - for i in iterable:
229 -- if type(i) in (TupleType, ListType):
230 -+ # if type(i) in (TupleType, ListType):
231 -+ if (type(i) is types.ListType) or (type(i) is types.TupleType):
232 - extra = ": %d\n" % i[1]
233 - i = i[0]
234 - else:
235
236 diff --git a/app-admin/denyhosts/files/denyhosts.init-r2 b/app-admin/denyhosts/files/denyhosts.init-r2
237 deleted file mode 100644
238 index 9b2f24cbf21..00000000000
239 --- a/app-admin/denyhosts/files/denyhosts.init-r2
240 +++ /dev/null
241 @@ -1,27 +0,0 @@
242 -#!/sbin/openrc-run
243 -# Copyright 1999-2014 Gentoo Foundation
244 -# Distributed under the terms of the GNU General Public License v2
245 -
246 -extra_stopped_commands="purge"
247 -
248 -purge() {
249 - ebegin "Purging hosts.deny"
250 - start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --purge
251 - eend $?
252 -}
253 -
254 -depend() {
255 - use logger sshd
256 -}
257 -
258 -start() {
259 - ebegin "Starting DenyHosts daemon"
260 - start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --daemon -c /etc/denyhosts.conf
261 - eend $?
262 -}
263 -
264 -stop() {
265 - ebegin "Stopping DenyHosts daemon"
266 - start-stop-daemon --quiet --stop --pidfile /var/run/denyhosts.pid
267 - eend $?
268 -}
269
270 diff --git a/app-admin/denyhosts/files/denyhosts.logrotate-r2 b/app-admin/denyhosts/files/denyhosts.logrotate-r2
271 deleted file mode 100644
272 index 582e72f7a36..00000000000
273 --- a/app-admin/denyhosts/files/denyhosts.logrotate-r2
274 +++ /dev/null
275 @@ -1,10 +0,0 @@
276 -/var/log/denyhosts {
277 - missingok
278 - notifempty
279 - create 0640 root root
280 - sharedscripts
281 - postrotate
282 - test -e /run/openrc/softlevel && /etc/init.d/denyhosts restart 1>/dev/null || true
283 - test -e /run/systemd/system && systemctl restart denyhosts >/dev/null || true
284 - endscript
285 -}
286
287 diff --git a/app-admin/denyhosts/files/denyhosts.service b/app-admin/denyhosts/files/denyhosts.service
288 deleted file mode 100644
289 index 05a59dd27bf..00000000000
290 --- a/app-admin/denyhosts/files/denyhosts.service
291 +++ /dev/null
292 @@ -1,12 +0,0 @@
293 -[Unit]
294 -Description=SSH log watcher
295 -Before=sshd.service
296 -
297 -[Service]
298 -Type=forking
299 -ExecStartPre=/bin/rm -f /var/run/denyhosts.pid
300 -ExecStart=/usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf
301 -PIDFile=/var/run/denyhosts.pid
302 -
303 -[Install]
304 -WantedBy=multi-user.target
305
306 diff --git a/app-admin/denyhosts/metadata.xml b/app-admin/denyhosts/metadata.xml
307 deleted file mode 100644
308 index 463b166d585..00000000000
309 --- a/app-admin/denyhosts/metadata.xml
310 +++ /dev/null
311 @@ -1,9 +0,0 @@
312 -<?xml version="1.0" encoding="UTF-8"?>
313 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
314 -<pkgmetadata>
315 - <!-- maintainer-needed -->
316 - <upstream>
317 - <remote-id type="github">denyhosts/denyhosts</remote-id>
318 - <remote-id type="sourceforge">denyhost</remote-id>
319 - </upstream>
320 -</pkgmetadata>
321
322 diff --git a/profiles/package.mask b/profiles/package.mask
323 index bd0ba20a88a..97654d0cd0e 100644
324 --- a/profiles/package.mask
325 +++ b/profiles/package.mask
326 @@ -760,12 +760,6 @@ dev-ruby/zeitwerk:1
327 ~virtual/perl-Time-Piece-1.340.100
328 ~virtual/perl-Unicode-Normalize-1.270.0
329
330 -# Christoph Junghans <junghans@g.o> (2020-07-14)
331 -# Unmaintained upstream and does not support systemd or firewalld.
332 -# Please use net-analyzer/fail2ban instead. (bug #732076)
333 -# Removal in 30 days.
334 -app-admin/denyhosts
335 -
336 # William Hubbs <williamh@g.o> (2020-07-14)
337 # The kubernetes split packages are old versions with known security
338 # issues.