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: net-misc/rancid/files/, net-misc/rancid/, profiles/
Date: Sat, 13 Apr 2019 06:50:34
Message-Id: 1555138203.4792dc21749c575aab6d1d86eab0425b98bdb0ae.mgorny@gentoo
1 commit: 4792dc21749c575aab6d1d86eab0425b98bdb0ae
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 13 06:47:43 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 13 06:50:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4792dc21
7
8 net-misc/rancid: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/680208
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 net-misc/rancid/Manifest | 1 -
14 .../rancid/files/rancid-2.3.8-buildsystem.patch | 64 --------
15 net-misc/rancid/files/rancid-2.3.8-config.patch | 33 ----
16 .../rancid/files/rancid-2.3.8-mailprefix.patch | 178 ---------------------
17 net-misc/rancid/metadata.xml | 5 -
18 net-misc/rancid/rancid-2.3.8.ebuild | 112 -------------
19 profiles/package.mask | 7 -
20 7 files changed, 400 deletions(-)
21
22 diff --git a/net-misc/rancid/Manifest b/net-misc/rancid/Manifest
23 deleted file mode 100644
24 index ebb3ca9af2f..00000000000
25 --- a/net-misc/rancid/Manifest
26 +++ /dev/null
27 @@ -1 +0,0 @@
28 -DIST rancid-2.3.8.tar.gz 379908 BLAKE2B eea909cd486086d436bf9bf8d7eb287471fa0af2a2a257ba9974adbcc01fa946cbc0173e7d6e93842eaf3dac321abaad2db2ec33a0e625b50b401e9373715b23 SHA512 cd071670e160f2e8268e676ae92b0d982719a2bc306aef3ef8fdbbaae398854178613eee2a139f206e799eba6c0b49dce2094db69ea57ef938e5d0c2c294a3cc
29
30 diff --git a/net-misc/rancid/files/rancid-2.3.8-buildsystem.patch b/net-misc/rancid/files/rancid-2.3.8-buildsystem.patch
31 deleted file mode 100644
32 index 4a06b5c6372..00000000000
33 --- a/net-misc/rancid/files/rancid-2.3.8-buildsystem.patch
34 +++ /dev/null
35 @@ -1,64 +0,0 @@
36 ---- rancid-2.3.8/configure.in
37 -+++ rancid-2.3.8/configure.in
38 -@@ -17,7 +17,7 @@
39 - dnl default install location
40 - AC_PREFIX_DEFAULT(/usr/local/rancid)
41 -
42 --dnl AM_MAINTAINER_MODE()
43 -+AM_MAINTAINER_MODE()
44 -
45 - dnl AC_CONFIG_SUBDIRS(util)
46 -
47 -@@ -35,7 +35,6 @@
48 -
49 - # compiler specifics
50 - AC_PROG_CC
51 --AM_C_PROTOTYPES
52 - AC_PROG_CPP
53 - AC_C_CONST
54 - AC_C_INLINE
55 -@@ -212,7 +212,7 @@
56 - # is good enough -- if we can't find GNU tar, we don't really care.
57 - AC_CHECK_PROGS(TAR, gnutar gtar tar)
58 -
59 --AC_CHECK_PROGS(AUTOMAKE, automake)
60 -+dnl AC_CHECK_PROGS(AUTOMAKE, automake)
61 -
62 - dnl locate perl 5 and expect.
63 - AC_PROG_INSTALL
64 ---- rancid-2.3.8/Makefile.am
65 -+++ rancid-2.3.8/Makefile.am
66 -@@ -24,7 +24,7 @@
67 -
68 - @SET_MAKE@
69 -
70 --pkgdata_DATA = COPYING CHANGES FAQ README README.lg UPGRADING cloginrc.sample
71 -+dist_doc_DATA = COPYING CHANGES FAQ README README.lg UPGRADING cloginrc.sample
72 - EXTRA_DIST = BUGS Todo configure install-sh \
73 - mkinstalldirs Makefile.in Todo $(pkgdata_DATA)
74 - #DIST_COMMON =
75 ---- rancid-2.3.8/share/Makefile.am
76 -+++ rancid-2.3.8/share/Makefile.am
77 -@@ -50,8 +50,9 @@
78 -
79 - pkgdata_SCRIPTS= rancid-cvspurge rtrfilter downreport
80 - dist_pkgdata_SCRIPTS=getipacctg
81 --dist_pkgdata_DATA=README.misc cisco-load.exp cisco-reload.exp \
82 -- index.html lgnotes.html
83 -+dist_pkgdata_DATA=cisco-load.exp cisco-reload.exp
84 -+dist_doc_DATA=README.misc
85 -+dist_html_DATA=index.html lgnotes.html
86 -
87 - EXTRA_DIST = rancid-cvspurge.in rancid.spec rtrfilter.in downreport.in
88 -
89 ---- rancid-2.3.8/etc/Makefile.am
90 -+++ rancid-2.3.8/etc/Makefile.am
91 -@@ -48,7 +48,7 @@
92 - #AUTOMAKE_OPTIONS=foreign no-dependencies
93 - AUTOMAKE_OPTIONS=foreign
94 -
95 --pkgdata_DATA= lg.conf.sample rancid.conf.sample
96 -+dist_doc_DATA= lg.conf.sample rancid.conf.sample
97 - EXTRA_DIST= $(pkgdata_DATA:%=%.in)
98 -
99 - CLEANFILES= $(pkgdata_DATA)
100
101 diff --git a/net-misc/rancid/files/rancid-2.3.8-config.patch b/net-misc/rancid/files/rancid-2.3.8-config.patch
102 deleted file mode 100644
103 index f39f28382da..00000000000
104 --- a/net-misc/rancid/files/rancid-2.3.8-config.patch
105 +++ /dev/null
106 @@ -1,33 +0,0 @@
107 ---- etc/rancid.conf.sample.in
108 -+++ etc/rancid.conf.sample.in
109 -@@ -42,7 +42,10 @@
110 - RCSSYS=@RCSSYS@; export RCSSYS
111 - #
112 - # if ACLSORT is NO, access-lists will NOT be sorted.
113 --#ACLSORT=YES; export ACLSORT
114 -+#
115 -+#Gentoo - changing default to NO because access-list order matters in most instances
116 -+#and many people expect to use rancid as a backup system
117 -+ACLSORT=NO; export ACLSORT
118 - #
119 - # if NOPIPE is set, temp files will be used instead of a cmd pipe during
120 - # collection from the router(s).
121 -@@ -50,10 +53,16 @@
122 - #
123 - # FILTER_PWDS determines which passwords are filtered from configs by the
124 - # value set (NO | YES | ALL). see rancid.conf(5).
125 --#FILTER_PWDS=YES; export FILTER_PWDS
126 -+#
127 -+#Gentoo - changing default to ALL; diffs are emailed and even the most secure
128 -+#password hashes on most routers are easily brute-forceable with modern systems
129 -+FILTER_PWDS=ALL; export FILTER_PWDS
130 - #
131 - # if NOCOMMSTR is set, snmp community strings will be stripped from the configs
132 --#NOCOMMSTR=YES; export NOCOMMSTR
133 -+#
134 -+#Gentoo - changing default to YES; diffs are emailed and SNMP communities
135 -+#can be just as dangerous as passwords
136 -+NOCOMMSTR=YES; export NOCOMMSTR
137 - #
138 - # How many times failed collections are retried (for each run) before
139 - # giving up. Minimum: 1
140
141 diff --git a/net-misc/rancid/files/rancid-2.3.8-mailprefix.patch b/net-misc/rancid/files/rancid-2.3.8-mailprefix.patch
142 deleted file mode 100644
143 index 171a380679d..00000000000
144 --- a/net-misc/rancid/files/rancid-2.3.8-mailprefix.patch
145 +++ /dev/null
146 @@ -1,178 +0,0 @@
147 ---- rancid-2.3.8/bin/Makefile.am
148 -+++ rancid-2.3.8/bin/Makefile.am
149 -@@ -96,8 +96,6 @@
150 - -e 's,@PERLV\@,$(PERLV),g' \
151 - -e 's,@PERLV_PATH\@,$(PERLV_PATH),g' \
152 - -e 's,@LG_PING_CMD\@,$(LG_PING_CMD),g' \
153 -- -e 's,@ADMINMAILPLUS\@,$(ADMINMAILPLUS),g' \
154 -- -e 's,@MAILPLUS\@,$(MAILPLUS),g' \
155 - -e 's,@PACKAGE\@,$(PACKAGE),g' \
156 - -e 's,@SVN_FSTYPE\@,$(SVN_FSTYPE),g' \
157 - -e 's,@VERSION\@,$(VERSION),g' \
158 ---- rancid-2.3.8/bin/control_rancid.in
159 -+++ rancid-2.3.8/bin/control_rancid.in
160 -@@ -118,8 +118,8 @@
161 - fi
162 -
163 - # the receipient(s) of diffs & mail options
164 --mailrcpt=${mailrcpt:-"@MAILPLUS@${GROUP}${MAILDOMAIN}"}; export mailrcpt
165 --adminmailrcpt=${adminmailrcpt:-"@ADMINMAILPLUS@${GROUP}${MAILDOMAIN}"};
166 -+mailrcpt=${mailrcpt:-"${MAILPREFIX}${GROUP}${MAILDOMAIN}"}; export mailrcpt
167 -+adminmailrcpt=${adminmailrcpt:-"${ADMINMAILPREFIX}${GROUP}${MAILDOMAIN}"};
168 - export adminmailrcpt
169 - set | grep MAILHEADERS= > /dev/null 2>&1
170 - if [ $? -ne 0 ] ; then
171 ---- rancid-2.3.8/bin/rancid-run.in
172 -+++ rancid-2.3.8/bin/rancid-run.in
173 -@@ -147,7 +147,7 @@
174 - if [ -s $TMPDIR/.$GROUP.old ]
175 - then
176 - (
177 -- echo "To: @ADMINMAILPLUS@${GROUP}${MAILDOMAIN}"
178 -+ echo "To: ${ADMINMAILPREFIX}${GROUP}${MAILDOMAIN}"
179 - echo "Subject: rancid hung - $GROUP"
180 - echo "Precedence: bulk"
181 - echo ""
182 ---- rancid-2.3.8/configure.in
183 -+++ rancid-2.3.8/configure.in
184 -@@ -163,46 +163,6 @@
185 - AC_SUBST(SVN_FSTYPE)
186 - rd_cv_RCSSYS=$RCSSYS
187 -
188 --# Check for a preference for using mail addresses like rancid+group
189 --# instead of the standard rancid-group
190 --AC_MSG_CHECKING([whether mail addresses should be in the rancid+ form])
191 --AC_ARG_ENABLE(mail-plus,
192 -- AS_HELP_STRING([--enable-mail-plus], [enable mail to rancid+ addresses, instead of rancid-]),
193 --[if test "$enable_mail_plus" = yes; then
194 -- AC_MSG_RESULT(yes)
195 -- MAILPLUS="rancid+"
196 -- AC_SUBST(MAILPLUS)
197 --else
198 -- AC_MSG_RESULT(no)
199 -- MAILPLUS="rancid-"
200 -- AC_SUBST(MAILPLUS)
201 --fi],
202 --[AC_MSG_RESULT(no)
203 -- MAILPLUS="rancid-"
204 -- AC_SUBST(MAILPLUS)
205 --])
206 --rd_cv_MAILPLUS=$MAILPLUS
207 --
208 --# Check for a preference for using mail addresses like rancid+admin-group
209 --# instead of the standard rancid-admin-group
210 --AC_MSG_CHECKING([whether admin mail addresses should be in the rancid-admin+ form])
211 --AC_ARG_ENABLE(adminmail-plus,
212 -- AS_HELP_STRING([--enable-adminmail-plus], [enable mail to rancid-admin+ addresses, instead of rancid-admin-]),
213 --[if test "$enable_adminmail_plus" = yes; then
214 -- AC_MSG_RESULT([rancid-admin+])
215 -- ADMINMAILPLUS="rancid-admin+"
216 -- AC_SUBST(ADMINMAILPLUS)
217 --else
218 -- AC_MSG_RESULT([${MAILPLUS}admin-])
219 -- ADMINMAILPLUS="${MAILPLUS}admin-"
220 -- AC_SUBST(ADMINMAILPLUS)
221 --fi],
222 --[AC_MSG_RESULT([${MAILPLUS}admin-])
223 -- ADMINMAILPLUS="${MAILPLUS}admin-"
224 -- AC_SUBST(ADMINMAILPLUS)
225 --])
226 --rd_cv_ADMINMAILPLUS=$ADMINMAILPLUS
227 --
228 - AC_PATH_PROG(DIRNAME,dirname,no)
229 -
230 - # locate GNU diff (one supporting the -u option)
231 ---- rancid-2.3.8/etc/rancid.conf.sample.in
232 -+++ rancid-2.3.8/etc/rancid.conf.sample.in
233 -@@ -71,6 +71,21 @@
234 - # The number of devices to collect simultaneously.
235 - #PAR_COUNT=5; export PAR_COUNT
236 - #
237 -+# Define the prefixes for regular and administrative email groups
238 -+# configuration diffs will be emailed to {MAILPREFIX}{GROUPNAME}
239 -+# eg. rancid-routers
240 -+# problems/errors will be emailed to {ADMINMAILPREFIX}{GROUPNAME}
241 -+# eg. rancid-admin-routers
242 -+#
243 -+MAILPREFIX="rancid-"; export MAILPREFIX
244 -+ADMINMAILPREFIX="rancid-admin-"; export ADMINMAILPREFIX
245 -+#
246 -+# To use a delimiter-based system instead of email aliases,
247 -+# comment the above 2 lines and uncomment the following two lines:
248 -+#MAILPREFIX="rancid+"; export MAILPREFIX
249 -+#ADMINMAILPREFIX="rancid-admin+"; export ADMINMAILPREFIX
250 -+#
251 -+#
252 - # list of rancid groups
253 - #LIST_OF_GROUPS="sl joebobisp"
254 - # more groups...
255 ---- rancid-2.3.8/man/Makefile.am
256 -+++ rancid-2.3.8/man/Makefile.am
257 -@@ -79,9 +79,7 @@
258 - -e 's,@bindir\@,$(bindir),g' \
259 - -e 's,@localstatedir\@,$(localstatedir),g' \
260 - -e 's,@sysconfdir\@,$(sysconfdir),g' \
261 -- -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
262 -- -e 's,@ADMINMAILPLUS\@,$(ADMINMAILPLUS),g' \
263 -- -e 's,@MAILPLUS\@,$(MAILPLUS),g'
264 -+ -e 's,@pkgdatadir\@,$(pkgdatadir),g'
265 -
266 - lg.conf.5: Makefile $(srcdir)/lg.conf.5.in
267 - rm -f lg.conf.5 lg.conf.5.tmp; \
268 ---- rancid-2.3.8/man/rancid.conf.5.in
269 -+++ rancid-2.3.8/man/rancid.conf.5.in
270 -@@ -81,6 +81,19 @@
271 - are always filtered (e.g.: Alteon passwords).
272 - .\"
273 - .TP
274 -+.B MAILPREFIX
275 -+Sets the mail prefix that is used to generate group emails. Configuration
276 -+diffs are emailed to an address of the form {MAILPREFIX}{GROUPNAME}
277 -+eg. rancid-routers
278 -+.sp
279 -+Default: rancid-
280 -+.B ADMINMAILPREFIX
281 -+Sets the mail prefix that is used to generate admin group emails.
282 -+problems/errors are emailed to an address of the form
283 -+{ADMINMAILPREFIX}{GROUPNAME}
284 -+eg. rancid-admin-routers
285 -+.sp
286 -+Default: rancid-admin-
287 - .B LIST_OF_GROUPS
288 - Defines a list of group names of routers separated by white-space. These
289 - names become the directory names in $BASEDIR which contain the data
290 -@@ -104,10 +117,10 @@
291 - .sp
292 - .in +1i
293 - .nf
294 --@MAILPLUS@uofo: frank
295 --@ADMINMAILPLUS@uofo: joe,bob
296 --@MAILPLUS@usfs: frank
297 --@ADMINMAILPLUS@usfs: joe,bob
298 -+rancid-uofo: frank
299 -+rancid-admin-uofo: joe,bob
300 -+randid-usfs: frank
301 -+rancid-admin-usfs: joe,bob
302 - .fi
303 - .sp
304 - .in -1i
305 -@@ -129,7 +142,7 @@
306 - .B MAILDOMAIN
307 - Define the domain part of addresses for administrative and diff e-mail.
308 - The value of this variable is simply appended to the normal mail addresses.
309 --For example @MAILPLUS@usfs@×××××××.com, if
310 -+For example rancid-usfs@×××××××.com, if
311 - .B MAILDOMAIN
312 - had been set to "@example.com".
313 - .\"
314 ---- rancid-2.3.8/share/downreport.in
315 -+++ rancid-2.3.8/share/downreport.in
316 -@@ -73,7 +73,7 @@
317 -
318 - for GROUP in $LIST_OF_GROUPS; do
319 - (
320 -- echo "To: @MAILPLUS@admin-$GROUP"
321 -+ echo "To: ${ADMINMAILPREFIX}$GROUP"
322 - echo "Subject: Down router report - $GROUP"
323 - echo "$MAILHEADERS" | awk '{gsub(/\\n/,"\n");print;}'
324 - echo ""
325
326 diff --git a/net-misc/rancid/metadata.xml b/net-misc/rancid/metadata.xml
327 deleted file mode 100644
328 index 6f49eba8f49..00000000000
329 --- a/net-misc/rancid/metadata.xml
330 +++ /dev/null
331 @@ -1,5 +0,0 @@
332 -<?xml version="1.0" encoding="UTF-8"?>
333 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
334 -<pkgmetadata>
335 -<!-- maintainer-needed -->
336 -</pkgmetadata>
337
338 diff --git a/net-misc/rancid/rancid-2.3.8.ebuild b/net-misc/rancid/rancid-2.3.8.ebuild
339 deleted file mode 100644
340 index 300c3ef0e19..00000000000
341 --- a/net-misc/rancid/rancid-2.3.8.ebuild
342 +++ /dev/null
343 @@ -1,112 +0,0 @@
344 -# Copyright 1999-2015 Gentoo Foundation
345 -# Distributed under the terms of the GNU General Public License v2
346 -
347 -EAPI=5
348 -
349 -inherit autotools eutils readme.gentoo user
350 -
351 -DESCRIPTION="Really Awesome New Cisco confIg Differ"
352 -HOMEPAGE="http://www.shrubbery.net/rancid/"
353 -SRC_URI="http://http.debian.net/debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz -> ${P}.tar.gz"
354 -LICENSE="BSD-4"
355 -
356 -SLOT="0"
357 -RESTRICT="mirror"
358 -KEYWORDS="~amd64 ~x86"
359 -IUSE="+cvs subversion"
360 -
361 -REQUIRED_USE="^^ ( cvs subversion )"
362 -
363 -# app-arch/par is blocker, due to bug #455838
364 -DEPEND="
365 - !app-arch/par
366 - dev-lang/perl
367 - dev-lang/tcl:0=
368 - dev-tcltk/expect
369 - sys-apps/diffutils
370 - cvs? ( dev-vcs/cvs )
371 - subversion? ( dev-vcs/subversion )
372 - || (
373 - net-misc/netkit-telnetd
374 - net-misc/telnet-bsd
375 - )"
376 -RDEPEND="${DEPEND}"
377 -
378 -src_prepare() {
379 - epatch "${FILESDIR}"/${P}-mailprefix.patch
380 - epatch "${FILESDIR}"/${P}-config.patch
381 - epatch "${FILESDIR}"/${P}-buildsystem.patch
382 -
383 - # respect CFLAGS, bug #455840
384 - sed -i -e '/^CFLAGS/d' bin/Makefile.am || die 'sed on bin/Makefile.am failed'
385 -
386 - eautoreconf
387 -}
388 -
389 -src_configure() {
390 - econf \
391 - --localstatedir="${EPREFIX}"/var/${PN} \
392 - --enable-conf-install \
393 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
394 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
395 - $(use subversion && echo "--with-svn=fsfs")
396 -}
397 -
398 -src_install() {
399 - default
400 -
401 - if use subversion ; then
402 - sed -e 's/^RCSSYS=cvs/RCSSYS=svn/' \
403 - -i "${D}"/etc/rancid.conf || die
404 - fi
405 -
406 - echo "CONFIG_PROTECT=\"${EPREFIX}/var/rancid/.cloginrc\"" > "${T}"/99${PN}
407 - doenvd "${T}"/99${PN}
408 -
409 - readme.gentoo_src_install
410 -}
411 -
412 -pkg_preinst() {
413 - enewgroup ${PN}
414 - enewuser ${PN} -1 /bin/bash "${EPREFIX}"/var/rancid ${PN}
415 -
416 - keepdir /var/${PN}{,/logs}
417 - touch "${ED}"/var/${PN}/.cloginrc
418 -
419 - fperms ug=rwX,o= /var/${PN}/{,logs,.cloginrc}
420 - fowners ${PN}:${PN} /var/${PN}/{,logs,.cloginrc}
421 -}
422 -
423 -DISABLE_AUTOFORMATTING="yes"
424 -DOC_CONTENTS="Micro-HOWTO on how to get running:
425 -
426 -1) Modify MAILPREFIX, ADMINMAILPREFIX, and LIST_OF_GROUPS
427 -in /etc/rancid.conf:
428 -MAILPREFIX=\"rancid-\"
429 -ADMINMAILPREFIX=\"rancid-admin-\"
430 -LIST_OF_GROUPS=\"routers switches\"
431 -
432 -2) Setup email aliases for rancid:
433 -you will need to define mail aliases for {MAILPREFIX}{GROUP}
434 -and {ADMINMAILPREFIX}{GROUP} for each group you defined above
435 -How to do this depends on your mailserver
436 -
437 -3) Run rancid-cvs as the rancid user to initialise directories and
438 -repositories; eg. su -c /usr/bin/rancid-cvs - rancid
439 -Note the command is the same even if you are using subversion
440 -
441 -4) Populate /var/rancid/{GROUPNAME}/router.db with nodes
442 -see man 5 router.db for detailed formatting information
443 -
444 -5) Populate /var/rancid/.cloginrc with credentials
445 -see /usr/share/rancid/cloginrc.sample for an example
446 -
447 -6) Test clogin access with: clogin -f /var/rancid/.clogin hostname
448 -
449 -7) Add a cronjob for the rancid user to regularly call rancid-run
450 -eg: run crontab -u rancid -e and add the lines below
451 -# run rancid once an hour
452 -0 * * * * /usr/bin/rancid-run
453 -# cleanup old logfiles generated by rancid once a day
454 -50 23 * * * /usr/bin/find /var/rancid/logs -type f -mtime +2 -exec rm {} \;
455 -"
456
457 diff --git a/profiles/package.mask b/profiles/package.mask
458 index 040fb6f64ed..df9f58538b6 100644
459 --- a/profiles/package.mask
460 +++ b/profiles/package.mask
461 @@ -768,13 +768,6 @@ net-libs/adns
462 # Removal in 30 days. Bug #680212.
463 dev-libs/liboop
464
465 -# Michał Górny <mgorny@g.o> (13 Mar 2019)
466 -# Both packages duplicate each other (#511032) and share the same bugs.
467 -# They are both unmaintained, apparently fail to build (#541894)
468 -# and have a bump pending for over 3 years (#557284).
469 -# Removal in 30 days. Bug #680208.
470 -net-misc/rancid
471 -
472 # Eray Aslan <eras@g.o> (01 Mar 2019)
473 # Mask experimental software
474 =mail-mta/postfix-3.5*