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-nntp/inn/files/, net-nntp/inn/, profiles/
Date: Tue, 04 Dec 2018 13:43:53
Message-Id: 1543930765.d5249be7088fb4b5619333a14a55cc5071ac65be.mgorny@gentoo
1 commit: d5249be7088fb4b5619333a14a55cc5071ac65be
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 4 13:39:25 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 4 13:39:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5249be7
7
8 net-nntp/inn: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/608908
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 net-nntp/inn/Manifest | 3 -
14 net-nntp/inn/files/inn-2.5.3-ar.patch | 37 ----
15 net-nntp/inn/files/inn-2.5.3-tests.patch | 19 --
16 net-nntp/inn/files/innd | 21 ---
17 net-nntp/inn/files/innd-r1 | 22 ---
18 net-nntp/inn/inn-2.5.3-r1.ebuild | 281 ------------------------------
19 net-nntp/inn/inn-2.5.3-r3.ebuild | 286 -------------------------------
20 net-nntp/inn/inn-2.5.4-r1.ebuild | 286 -------------------------------
21 net-nntp/inn/inn-2.5.5-r1.ebuild | 286 -------------------------------
22 net-nntp/inn/metadata.xml | 10 --
23 profiles/package.mask | 4 -
24 11 files changed, 1255 deletions(-)
25
26 diff --git a/net-nntp/inn/Manifest b/net-nntp/inn/Manifest
27 deleted file mode 100644
28 index 9f72f3356fb..00000000000
29 --- a/net-nntp/inn/Manifest
30 +++ /dev/null
31 @@ -1,3 +0,0 @@
32 -DIST inn-2.5.3.tar.gz 2412119 BLAKE2B 8958744b6a54842ee888e89fe9a25152968a2e66196c78338d9a1f25d8e079d57e2d161d947e1d9bd44180c9e7f9b5af3d5a116050f7e92b3e0420f551623a7e SHA512 e579944571f0ec4fcdbf86de8458342075ce08f60df046bc8c45969b39f396ede8f5034f734542e1c64fb7792ae01c117c6a7af170fe5a43e1d0b2693f34d392
33 -DIST inn-2.5.4.tar.gz 2408600 BLAKE2B 0515ebc655aa7efdcb22a28037cba607d58056e04dd44b57473dd352823f4780272cd3a8064c0af7f7116c65def01eb417936f2a03d4c9d40ad26df26945e3f2 SHA512 f632599d009e8965d1b0ce7fef84dfbe48034c3a86825694a5ca4311123347647f9a4b534cff59820437f619ec09867bcff16f8f18c705e056eeea6493bc5441
34 -DIST inn-2.5.5.tar.gz 2419841 BLAKE2B c28a16883200429f179e114d62b2599900de2c5e54e85a0cdc16f7765d3419d5d09522c0e4d46f920c495f81d49cede50dc2251dd842178b2cc704fae88c66dc SHA512 aada60b15952810fa31c3b2078b4ca1b1e560cee348cc81d076e0ba1f8b785497310d60aca89b9ecc4af85a1493eefa8a2b976cb349b8ea96482c93cbcf049f1
35
36 diff --git a/net-nntp/inn/files/inn-2.5.3-ar.patch b/net-nntp/inn/files/inn-2.5.3-ar.patch
37 deleted file mode 100644
38 index ac4f8158c44..00000000000
39 --- a/net-nntp/inn/files/inn-2.5.3-ar.patch
40 +++ /dev/null
41 @@ -1,37 +0,0 @@
42 -Use system AR.
43 -
44 -Gentoo bug #461254.
45 -
46 ---- lib/Makefile
47 -+++ lib/Makefile
48 -@@ -53,7 +53,7 @@
49 - -rpath $(PATHLIB) -version-info 2:0:0
50 -
51 - libinn.a: $(OBJECTS)
52 -- ar r $@ $(OBJECTS)
53 -+ $(AR) r $@ $(OBJECTS)
54 - $(RANLIB) libinn.a
55 -
56 - .c.o .c.lo:
57 ---- storage/Makefile
58 -+++ storage/Makefile
59 -@@ -55,7 +55,7 @@
60 - -rpath $(PATHLIB) -version-info 2:0:0
61 -
62 - libstorage.a: $(OBJECTS)
63 -- ar r $@ $(OBJECTS)
64 -+ $(AR) r $@ $(OBJECTS)
65 - $(RANLIB) libstorage.a
66 -
67 - # Make.methods is included in the distribution tarball since some non-GNU
68 ---- history/Makefile
69 -+++ history/Makefile
70 -@@ -51,7 +51,7 @@
71 - -rpath $(PATHLIB) -version-info 2:0:0
72 -
73 - libinnhist.a: $(OBJECTS)
74 -- ar r $@ $(OBJECTS)
75 -+ $(AR) r $@ $(OBJECTS)
76 - $(RANLIB) libinnhist.a
77 -
78 - # Try to set up these rules so that buildconfig is only run once.
79
80 diff --git a/net-nntp/inn/files/inn-2.5.3-tests.patch b/net-nntp/inn/files/inn-2.5.3-tests.patch
81 deleted file mode 100644
82 index 6511508308d..00000000000
83 --- a/net-nntp/inn/files/inn-2.5.3-tests.patch
84 +++ /dev/null
85 @@ -1,19 +0,0 @@
86 -Certain filesystems (such as reiserfs) cannot properly report
87 -the number of free inodes. In this case, inndf reports an absurdly
88 -high number instead of nothing, which standard df does.
89 -There seems to be some confusion about which FOO_MAX is returned,
90 -so this patch adds an actual value known to be returned.
91 -
92 -See bug #348490.
93 -
94 ---- tests/util/inndf.t
95 -+++ tests/util/inndf.t
96 -@@ -62,7 +62,7 @@
97 - real=`df -i . | sed 1d | awk '{ print $4 }'`
98 - fi
99 - try=`$inndf -i .`
100 -- if [ "$try" = 4294967295 ] ; then
101 -+ if [ "$try" = 4294967295 ] || [ "$try" = 2147483647 ] ; then
102 - printcount "ok"
103 - else
104 - diff=`expr "$real" - "$try"`
105
106 diff --git a/net-nntp/inn/files/innd b/net-nntp/inn/files/innd
107 deleted file mode 100644
108 index c45d45b830c..00000000000
109 --- a/net-nntp/inn/files/innd
110 +++ /dev/null
111 @@ -1,21 +0,0 @@
112 -#!/sbin/openrc-run
113 -# Copyright 1999-2012 Gentoo Foundation
114 -# Distributed under the terms of the GNU General Public License v2
115 -
116 -depend() {
117 - need net
118 -}
119 -
120 -start() {
121 - ebegin "Starting innd"
122 - checkpath -d -m 0755 -o news:news /var/run/news
123 - start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news
124 - eend $?
125 -}
126 -
127 -stop() {
128 - ebegin "Stopping innd"
129 - start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop
130 - sleep 2
131 - eend $?
132 -}
133
134 diff --git a/net-nntp/inn/files/innd-r1 b/net-nntp/inn/files/innd-r1
135 deleted file mode 100644
136 index 071797e5079..00000000000
137 --- a/net-nntp/inn/files/innd-r1
138 +++ /dev/null
139 @@ -1,22 +0,0 @@
140 -#!/sbin/openrc-run
141 -# Copyright 1999-2016 Gentoo Foundation
142 -# Distributed under the terms of the GNU General Public License v2
143 -
144 -depend() {
145 - need net
146 -}
147 -
148 -start() {
149 - ebegin "Starting ${SVCNAME}"
150 - checkpath -d -m 0755 -o news:news /run/news
151 - start-stop-daemon --start --user news --pidfile /run/news/${SVCNAME}.pid \
152 - --exec /usr/lib/news/bin/rc.news
153 - eend $?
154 -}
155 -
156 -stop() {
157 - ebegin "Stopping ${SVCNAME}"
158 - start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop
159 - sleep 2
160 - eend $?
161 -}
162
163 diff --git a/net-nntp/inn/inn-2.5.3-r1.ebuild b/net-nntp/inn/inn-2.5.3-r1.ebuild
164 deleted file mode 100644
165 index 48edc30bd81..00000000000
166 --- a/net-nntp/inn/inn-2.5.3-r1.ebuild
167 +++ /dev/null
168 @@ -1,281 +0,0 @@
169 -# Copyright 1999-2017 Gentoo Foundation
170 -# Distributed under the terms of the GNU General Public License v2
171 -
172 -EAPI=5
173 -
174 -PYTHON_COMPAT=( python2_7 )
175 -
176 -inherit autotools eutils multilib python-single-r1 ssl-cert
177 -
178 -DESCRIPTION="The Internet News daemon, fully featured NNTP server"
179 -HOMEPAGE="https://www.isc.org/software/inn"
180 -SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
181 -
182 -# GPL-2 only for init script
183 -LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2"
184 -SLOT="0"
185 -KEYWORDS="amd64 ppc x86"
186 -IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl"
187 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
188 -
189 -DEPEND="
190 - virtual/mta
191 - dev-perl/MIME-tools
192 - sys-libs/pam
193 - sys-libs/zlib
194 - kerberos? ( virtual/krb5 )
195 - sasl? ( >=dev-libs/cyrus-sasl-2 )
196 - ssl? ( dev-libs/openssl:0= )
197 - python? ( ${PYTHON_DEPS} )
198 - berkdb? ( sys-libs/db:* )
199 -"
200 -RDEPEND="${DEPEND}"
201 -
202 -pkg_setup() {
203 - use python && python-single-r1_pkg_setup
204 -}
205 -
206 -src_prepare() {
207 - epatch "${FILESDIR}"/${P}-tests.patch
208 -
209 - sed -e 's: -B .OLD::' -i Makefile.global.in || die
210 -
211 - # Do not treat LDFLAGS as if it contained libraries to link to
212 - sed -e 's:LDFLAGS::g' -i m4/python.m4 || die
213 -
214 - # We do not have the biff service, but we do have comsat
215 - sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die
216 -
217 - eautoreconf
218 -}
219 -
220 -src_configure() {
221 - econf \
222 - --prefix=/usr/$(get_libdir)/news \
223 - --sysconfdir=/etc/news \
224 - --mandir=/usr/share/man \
225 - --infodir=/usr/share/info \
226 - --with-control-dir=/usr/$(get_libdir)/news/bin/control \
227 - --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \
228 - --with-db-dir=/var/spool/news/db \
229 - --with-doc-dir=/usr/share/doc/${PF} \
230 - --with-spool-dir=/var/spool/news \
231 - --with-log-dir=/var/log/news \
232 - --with-run-dir=/var/run/news \
233 - --with-tmp-dir=/var/spool/news/tmp \
234 - --disable-libtool \
235 - --with-gnu-ld \
236 - --enable-setgid-inews \
237 - --enable-uucp-rnews \
238 - $(use_with perl) \
239 - $(use_with python) \
240 - $(use_with kerberos kerberos /usr) \
241 - $(use_with sasl) \
242 - $(use_with ssl openssl) \
243 - $(use_with berkdb berkeleydb /usr) \
244 - $(use_enable ipv6) \
245 - $(use_enable !inntaggedhash largefiles) \
246 - $(use_enable inntaggedhash tagged-hash) \
247 - $(use_enable innkeywords keywords)
248 -}
249 -
250 -src_install() {
251 - emake DESTDIR="${D}/" P="" SPECIAL="" install
252 -
253 - chown -R root:0 \
254 - "${D}"/usr/$(get_libdir)/news/$(get_libdir) \
255 - "${D}"/usr/$(get_libdir)/news/include \
256 - "${D}"/usr/share/doc \
257 - "${D}"/usr/share/man \
258 - || die
259 - chmod 644 "${D}"/etc/news/* || die
260 - chmod 640 \
261 - "${D}"/etc/news/control.ctl \
262 - "${D}"/etc/news/expire.ctl \
263 - "${D}"/etc/news/incoming.conf \
264 - "${D}"/etc/news/nntpsend.ctl \
265 - "${D}"/etc/news/passwd.nntp \
266 - "${D}"/etc/news/readers.conf \
267 - || die
268 -
269 - # Prevent old db/* files from being overwritten
270 - insinto /usr/share/inn/dbexamples
271 - newins site/active.minimal active
272 - newins site/newsgroups.minimal newsgroups
273 -
274 - keepdir \
275 - /var/log/news \
276 - /var/spool/news/archive \
277 - /var/spool/news/articles \
278 - /var/spool/news/db \
279 - /var/spool/news/incoming \
280 - /var/spool/news/incoming/bad \
281 - /var/spool/news/innfeed \
282 - /var/spool/news/outgoing \
283 - /var/spool/news/overview \
284 - /var/spool/news/tmp
285 -
286 - fowners news:news /var/log/news
287 -
288 - dodoc ChangeLog MANIFEST README* doc/checklist
289 - use ipv6 && dodoc doc/IPv6-info
290 -
291 - # So other programs can build against INN
292 - insinto /usr/$(get_libdir)/news/include
293 - doins include/*.h
294 -
295 - doinitd "${FILESDIR}"/innd
296 -
297 - rm -r "${D}"/var/run
298 -}
299 -
300 -pkg_postinst() {
301 - for db_file in active newsgroups
302 - do
303 - [[ -f ${ROOT}/var/spool/news/db/${db_file} ]] && continue
304 -
305 - if [[ -f ${ROOT}/usr/share/inn/dbexamples/${db_file} ]]
306 - then
307 - cp "${ROOT}"/usr/share/inn/dbexamples/${db_file} \
308 - "${ROOT}"/var/spool/news/db/${db_file}
309 - else
310 - touch "${ROOT}"/var/spool/news/db/${db_file}
311 - fi
312 -
313 - chown news:news "${ROOT}"/var/spool/news/db/${db_file}
314 - chmod 664 "${ROOT}"/var/spool/news/db/${db_file}
315 - done
316 -
317 - elog "Do not forget to update your cron entries, and also run"
318 - elog "makedbz if you need to. If this is a first-time installation"
319 - elog "a minimal active file has been installed. You will need to"
320 - elog "touch history and run 'makedbz -i' to initialize the history"
321 - elog "database. See INSTALL for more information."
322 - elog
323 - elog "You need to assign a real shell to the news user, or else"
324 - elog "starting inn will fail. You can use 'usermod -s /bin/bash news'"
325 - elog "for this."
326 -
327 - if use ssl
328 - then
329 - install_cert /etc/news/cert/cert
330 - chown news:news \
331 - "${ROOT}"/etc/news/cert/cert.{crt,csr,key,pem}
332 -
333 - elog
334 - elog "You may want to start nnrpd manually for native ssl support."
335 - elog "If you choose to do so, automating this with a bootscript might"
336 - elog "also be a good choice."
337 - elog "Have a look at man nnrpd for valid parameters."
338 - elog
339 - elog "The certificate location in /etc/news/sasl.conf has been changed"
340 - elog "to /etc/news/cert!"
341 -
342 - fi
343 -}
344 -
345 -pkg_postrm() {
346 - elog
347 - elog "If you want your newsspool or altered configuration files"
348 - elog "to be removed, please do so now manually."
349 - elog
350 -}
351 -
352 -pkg_config() {
353 - NEWSSPOOL_DIR="${ROOT}/var/spool/news"
354 - NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}/etc/passwd )"
355 - NEWS_ERRFLAG="0"
356 -
357 - if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then
358 - einfo "Changing shell to /bin/bash for user news..."
359 - usermod -s /bin/bash news
360 - else
361 - einfo "Shell for user news unchanged ('${NEWS_SHELL}')."
362 - if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then
363 - ewarn "You might want to change it to '/bin/bash', though."
364 - fi
365 - fi
366 -
367 - if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then
368 - if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \
369 - && ! -f ${NEWSSPOOL_DIR}/db/history.pag \
370 - && ! -f ${NEWSSPOOL_DIR}/db/history.hash \
371 - && ! -f ${NEWSSPOOL_DIR}/db/history.index ]]
372 - then
373 - einfo "Building history database ..."
374 -
375 - touch "${NEWSSPOOL_DIR}"/db/history
376 - chown news:news "${NEWSSPOOL_DIR}"/db/history
377 - chmod 644 "${NEWSSPOOL_DIR}"/db/history
378 -
379 - einfo "Running makedbz -i ..."
380 - su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
381 -
382 - einfo "Moving files into place ..."
383 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \
384 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \
385 - "${NEWSSPOOL_DIR}"/db/history.dir
386 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \
387 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \
388 - "${NEWSSPOOL_DIR}"/db/history.pag
389 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \
390 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \
391 - "${NEWSSPOOL_DIR}"/db/history.hash
392 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \
393 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \
394 - "${NEWSSPOOL_DIR}"/db/history.index
395 -
396 - einfo "Running makehistory ..."
397 - su - news -c /usr/$(get_libdir)/news/bin/makehistory
398 - else
399 - NEWS_ERRFLAG="1"
400 - eerror "Your installation seems to be screwed up."
401 - eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's"
402 - eerror "one of the files history.dir, history.hash or history.index"
403 - eerror "within ${NEWSSPOOL_DIR}/db."
404 - eerror "Use your backup to restore the history database."
405 - fi
406 - else
407 - einfo "${NEWSSPOOL_DIR}/db/history found."
408 - einfo "Leaving history database as it is."
409 - fi
410 -
411 - INNCFG_INODES=$(
412 - sed /etc/news/inn.conf \
413 - -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:'
414 - )
415 - INNSPOOL_INODES=$(
416 - df -Pi ${NEWSSPOOL_DIR} | \
417 - sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d'
418 - )
419 - if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then
420 - ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind"
421 - ewarn "$NEWSSPOOL_DIR works without inodes."
422 - ewarn
423 - cp /etc/news/inn.conf /etc/news/inn.conf.OLD
424 - einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD."
425 - sed -i /etc/news/inn.conf \
426 - -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:'
427 - chown news:news /etc/news/inn.conf
428 - chmod 644 /etc/news/inn.conf
429 - fi
430 -
431 - INNCHECK_LINES=$(
432 - su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l"
433 - )
434 - if [[ ${INNCHECK_LINES} -gt 0 ]]; then
435 - NEWS_ERRFLAG="1"
436 - ewarn "inncheck most certainly found an error."
437 - ewarn "Please check its output:"
438 - eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`"
439 - fi
440 -
441 - if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then
442 - eerror "There were one or more errors/warnings checking your"
443 - eerror "configuration. Please read inn's documentation and"
444 - eerror "fix them accordingly."
445 - else
446 - einfo "INN configuration tests passed successfully."
447 - ewarn "Please ensure you have configured inn properly."
448 - fi
449 -}
450
451 diff --git a/net-nntp/inn/inn-2.5.3-r3.ebuild b/net-nntp/inn/inn-2.5.3-r3.ebuild
452 deleted file mode 100644
453 index e356b6892f4..00000000000
454 --- a/net-nntp/inn/inn-2.5.3-r3.ebuild
455 +++ /dev/null
456 @@ -1,286 +0,0 @@
457 -# Copyright 1999-2017 Gentoo Foundation
458 -# Distributed under the terms of the GNU General Public License v2
459 -
460 -EAPI=5
461 -
462 -PYTHON_COMPAT=( python2_7 )
463 -
464 -inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs
465 -
466 -DESCRIPTION="The Internet News daemon, fully featured NNTP server"
467 -HOMEPAGE="https://www.isc.org/software/inn"
468 -SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
469 -
470 -# GPL-2 only for init script
471 -LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2"
472 -SLOT="0"
473 -KEYWORDS="~amd64 ~ppc ~x86"
474 -IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl"
475 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
476 -
477 -DEPEND="
478 - virtual/mta
479 - dev-perl/MIME-tools
480 - sys-libs/pam
481 - sys-libs/zlib
482 - kerberos? ( virtual/krb5 )
483 - sasl? ( >=dev-libs/cyrus-sasl-2 )
484 - ssl? ( dev-libs/openssl:0= )
485 - python? ( ${PYTHON_DEPS} )
486 - berkdb? ( sys-libs/db:* )
487 -"
488 -RDEPEND="${DEPEND}"
489 -
490 -pkg_setup() {
491 - use python && python-single-r1_pkg_setup
492 -}
493 -
494 -src_prepare() {
495 - epatch "${FILESDIR}"/${P}-ar.patch
496 - epatch "${FILESDIR}"/${P}-tests.patch
497 -
498 - sed -e 's: -B .OLD::' -i Makefile.global.in || die
499 -
500 - # Do not treat LDFLAGS as if it contained libraries to link to
501 - sed -e 's:LDFLAGS::g' -i m4/python.m4 || die
502 -
503 - # We do not have the biff service, but we do have comsat
504 - sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die
505 -
506 - eautoreconf
507 -}
508 -
509 -src_configure() {
510 - tc-export AR
511 -
512 - econf \
513 - --prefix=/usr/$(get_libdir)/news \
514 - --sysconfdir=/etc/news \
515 - --mandir=/usr/share/man \
516 - --infodir=/usr/share/info \
517 - --with-control-dir=/usr/$(get_libdir)/news/bin/control \
518 - --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \
519 - --with-db-dir=/var/spool/news/db \
520 - --with-doc-dir=/usr/share/doc/${PF} \
521 - --with-spool-dir=/var/spool/news \
522 - --with-log-dir=/var/log/news \
523 - --with-run-dir=/run/news \
524 - --with-tmp-dir=/var/spool/news/tmp \
525 - --disable-libtool \
526 - --with-gnu-ld \
527 - --enable-setgid-inews \
528 - --enable-uucp-rnews \
529 - $(use_with perl) \
530 - $(use_with python) \
531 - $(use_with kerberos kerberos /usr) \
532 - $(use_with sasl) \
533 - $(use_with ssl openssl) \
534 - $(use_with berkdb berkeleydb /usr) \
535 - $(use_enable ipv6) \
536 - $(use_enable !inntaggedhash largefiles) \
537 - $(use_enable inntaggedhash tagged-hash) \
538 - $(use_enable innkeywords keywords)
539 -}
540 -
541 -src_install() {
542 - emake DESTDIR="${D}/" P="" SPECIAL="" install
543 -
544 - chown -R root:0 \
545 - "${D}"/usr/$(get_libdir)/news/$(get_libdir) \
546 - "${D}"/usr/$(get_libdir)/news/include \
547 - "${D}"/usr/share/doc \
548 - "${D}"/usr/share/man \
549 - || die
550 - chmod 644 "${D}"/etc/news/* || die
551 - chmod 640 \
552 - "${D}"/etc/news/control.ctl \
553 - "${D}"/etc/news/expire.ctl \
554 - "${D}"/etc/news/incoming.conf \
555 - "${D}"/etc/news/innfeed.conf \
556 - "${D}"/etc/news/nntpsend.ctl \
557 - "${D}"/etc/news/passwd.nntp \
558 - "${D}"/etc/news/readers.conf \
559 - || die
560 -
561 - # Prevent old db/* files from being overwritten
562 - insinto /usr/share/inn/dbexamples
563 - newins site/active.minimal active
564 - newins site/newsgroups.minimal newsgroups
565 -
566 - keepdir \
567 - /var/log/news \
568 - /var/spool/news/archive \
569 - /var/spool/news/articles \
570 - /var/spool/news/db \
571 - /var/spool/news/incoming \
572 - /var/spool/news/incoming/bad \
573 - /var/spool/news/innfeed \
574 - /var/spool/news/outgoing \
575 - /var/spool/news/overview \
576 - /var/spool/news/tmp
577 -
578 - fowners news:news /var/log/news
579 -
580 - dodoc ChangeLog MANIFEST README* doc/checklist
581 - use ipv6 && dodoc doc/IPv6-info
582 -
583 - # So other programs can build against INN
584 - insinto /usr/$(get_libdir)/news/include
585 - doins include/*.h
586 -
587 - newinitd "${FILESDIR}"/innd-r1 innd
588 -}
589 -
590 -pkg_postinst() {
591 - for db_file in active newsgroups
592 - do
593 - [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue
594 -
595 - if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]]
596 - then
597 - cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \
598 - "${ROOT}"var/spool/news/db/${db_file}
599 - else
600 - touch "${ROOT}"var/spool/news/db/${db_file}
601 - fi
602 -
603 - chown news:news "${ROOT}"var/spool/news/db/${db_file}
604 - chmod 664 "${ROOT}"var/spool/news/db/${db_file}
605 - done
606 -
607 - elog "It is recommended to run emerge --config ${CATEGORY}/${PN}"
608 - elog "now to finish setting up this package."
609 - elog
610 - elog "Do not forget to update your cron entries, and also run"
611 - elog "makedbz if you need to. If this is a first-time installation"
612 - elog "a minimal active file has been installed. You will need to"
613 - elog "touch history and run 'makedbz -i' to initialize the history"
614 - elog "database. See INSTALL for more information."
615 - elog
616 - elog "You need to assign a real shell to the news user, or else"
617 - elog "starting inn will fail. You can use 'usermod -s /bin/bash news'"
618 - elog "for this."
619 -
620 - if use ssl
621 - then
622 - install_cert /etc/news/cert/cert
623 - chown news:news \
624 - "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem}
625 -
626 - elog
627 - elog "You may want to start nnrpd manually for native ssl support."
628 - elog "If you choose to do so, automating this with a bootscript might"
629 - elog "also be a good choice."
630 - elog "Have a look at man nnrpd for valid parameters."
631 - elog
632 - elog "The certificate location in /etc/news/sasl.conf has been changed"
633 - elog "to /etc/news/cert!"
634 -
635 - fi
636 -}
637 -
638 -pkg_postrm() {
639 - elog
640 - elog "If you want your newsspool or altered configuration files"
641 - elog "to be removed, please do so now manually."
642 - elog
643 -}
644 -
645 -pkg_config() {
646 - NEWSSPOOL_DIR="${ROOT}var/spool/news"
647 - NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )"
648 - NEWS_ERRFLAG="0"
649 -
650 - if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then
651 - einfo "Changing shell to /bin/bash for user news..."
652 - usermod -s /bin/bash news
653 - else
654 - einfo "Shell for user news unchanged ('${NEWS_SHELL}')."
655 - if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then
656 - ewarn "You might want to change it to '/bin/bash', though."
657 - fi
658 - fi
659 -
660 - if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then
661 - if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \
662 - && ! -f ${NEWSSPOOL_DIR}/db/history.pag \
663 - && ! -f ${NEWSSPOOL_DIR}/db/history.hash \
664 - && ! -f ${NEWSSPOOL_DIR}/db/history.index ]]
665 - then
666 - einfo "Building history database ..."
667 -
668 - touch "${NEWSSPOOL_DIR}"/db/history
669 - chown news:news "${NEWSSPOOL_DIR}"/db/history
670 - chmod 644 "${NEWSSPOOL_DIR}"/db/history
671 -
672 - einfo "Running makedbz -i ..."
673 - su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
674 -
675 - einfo "Moving files into place ..."
676 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \
677 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \
678 - "${NEWSSPOOL_DIR}"/db/history.dir
679 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \
680 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \
681 - "${NEWSSPOOL_DIR}"/db/history.pag
682 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \
683 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \
684 - "${NEWSSPOOL_DIR}"/db/history.hash
685 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \
686 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \
687 - "${NEWSSPOOL_DIR}"/db/history.index
688 -
689 - einfo "Running makehistory ..."
690 - su - news -c /usr/$(get_libdir)/news/bin/makehistory
691 - else
692 - NEWS_ERRFLAG="1"
693 - eerror "Your installation seems to be screwed up."
694 - eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's"
695 - eerror "one of the files history.dir, history.hash or history.index"
696 - eerror "within ${NEWSSPOOL_DIR}/db."
697 - eerror "Use your backup to restore the history database."
698 - fi
699 - else
700 - einfo "${NEWSSPOOL_DIR}/db/history found."
701 - einfo "Leaving history database as it is."
702 - fi
703 -
704 - INNCFG_INODES=$(
705 - sed /etc/news/inn.conf \
706 - -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:'
707 - )
708 - INNSPOOL_INODES=$(
709 - df -Pi ${NEWSSPOOL_DIR} | \
710 - sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d'
711 - )
712 - if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then
713 - ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind"
714 - ewarn "$NEWSSPOOL_DIR works without inodes."
715 - ewarn
716 - cp /etc/news/inn.conf /etc/news/inn.conf.OLD
717 - einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD."
718 - sed -i /etc/news/inn.conf \
719 - -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:'
720 - chown news:news /etc/news/inn.conf
721 - chmod 644 /etc/news/inn.conf
722 - fi
723 -
724 - INNCHECK_LINES=$(
725 - su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l"
726 - )
727 - if [[ ${INNCHECK_LINES} -gt 0 ]]; then
728 - NEWS_ERRFLAG="1"
729 - ewarn "inncheck most certainly found an error."
730 - ewarn "Please check its output:"
731 - eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`"
732 - fi
733 -
734 - if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then
735 - eerror "There were one or more errors/warnings checking your"
736 - eerror "configuration. Please read inn's documentation and"
737 - eerror "fix them accordingly."
738 - else
739 - einfo "INN configuration tests passed successfully."
740 - ewarn "Please ensure you have configured inn properly."
741 - fi
742 -}
743
744 diff --git a/net-nntp/inn/inn-2.5.4-r1.ebuild b/net-nntp/inn/inn-2.5.4-r1.ebuild
745 deleted file mode 100644
746 index 19a769d0a7c..00000000000
747 --- a/net-nntp/inn/inn-2.5.4-r1.ebuild
748 +++ /dev/null
749 @@ -1,286 +0,0 @@
750 -# Copyright 1999-2017 Gentoo Foundation
751 -# Distributed under the terms of the GNU General Public License v2
752 -
753 -EAPI=5
754 -
755 -PYTHON_COMPAT=( python2_7 )
756 -
757 -inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs
758 -
759 -DESCRIPTION="The Internet News daemon, fully featured NNTP server"
760 -HOMEPAGE="https://www.isc.org/software/inn"
761 -SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
762 -
763 -# GPL-2 only for init script
764 -LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2"
765 -SLOT="0"
766 -KEYWORDS="~amd64 ~ppc ~x86"
767 -IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl"
768 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
769 -
770 -DEPEND="
771 - virtual/mta
772 - dev-perl/MIME-tools
773 - sys-libs/pam
774 - sys-libs/zlib
775 - kerberos? ( virtual/krb5 )
776 - sasl? ( >=dev-libs/cyrus-sasl-2 )
777 - ssl? ( dev-libs/openssl:0= )
778 - python? ( ${PYTHON_DEPS} )
779 - berkdb? ( sys-libs/db:* )
780 -"
781 -RDEPEND="${DEPEND}"
782 -
783 -pkg_setup() {
784 - use python && python-single-r1_pkg_setup
785 -}
786 -
787 -src_prepare() {
788 - epatch "${FILESDIR}"/${PN}-2.5.3-ar.patch
789 - epatch "${FILESDIR}"/${PN}-2.5.3-tests.patch
790 -
791 - sed -e 's: -B .OLD::' -i Makefile.global.in || die
792 -
793 - # Do not treat LDFLAGS as if it contained libraries to link to
794 - sed -e 's:LDFLAGS::g' -i m4/python.m4 || die
795 -
796 - # We do not have the biff service, but we do have comsat
797 - sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die
798 -
799 - eautoreconf
800 -}
801 -
802 -src_configure() {
803 - tc-export AR
804 -
805 - econf \
806 - --prefix=/usr/$(get_libdir)/news \
807 - --sysconfdir=/etc/news \
808 - --mandir=/usr/share/man \
809 - --infodir=/usr/share/info \
810 - --with-control-dir=/usr/$(get_libdir)/news/bin/control \
811 - --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \
812 - --with-db-dir=/var/spool/news/db \
813 - --with-doc-dir=/usr/share/doc/${PF} \
814 - --with-spool-dir=/var/spool/news \
815 - --with-log-dir=/var/log/news \
816 - --with-run-dir=/run/news \
817 - --with-tmp-dir=/var/spool/news/tmp \
818 - --disable-libtool \
819 - --with-gnu-ld \
820 - --enable-setgid-inews \
821 - --enable-uucp-rnews \
822 - $(use_with perl) \
823 - $(use_with python) \
824 - $(use_with kerberos kerberos /usr) \
825 - $(use_with sasl) \
826 - $(use_with ssl openssl) \
827 - $(use_with berkdb berkeleydb /usr) \
828 - $(use_enable ipv6) \
829 - $(use_enable !inntaggedhash largefiles) \
830 - $(use_enable inntaggedhash tagged-hash) \
831 - $(use_enable innkeywords keywords)
832 -}
833 -
834 -src_install() {
835 - emake DESTDIR="${D}/" P="" SPECIAL="" install
836 -
837 - chown -R root:0 \
838 - "${D}"/usr/$(get_libdir)/news/$(get_libdir) \
839 - "${D}"/usr/$(get_libdir)/news/include \
840 - "${D}"/usr/share/doc \
841 - "${D}"/usr/share/man \
842 - || die
843 - chmod 644 "${D}"/etc/news/* || die
844 - chmod 640 \
845 - "${D}"/etc/news/control.ctl \
846 - "${D}"/etc/news/expire.ctl \
847 - "${D}"/etc/news/incoming.conf \
848 - "${D}"/etc/news/innfeed.conf \
849 - "${D}"/etc/news/nntpsend.ctl \
850 - "${D}"/etc/news/passwd.nntp \
851 - "${D}"/etc/news/readers.conf \
852 - || die
853 -
854 - # Prevent old db/* files from being overwritten
855 - insinto /usr/share/inn/dbexamples
856 - newins site/active.minimal active
857 - newins site/newsgroups.minimal newsgroups
858 -
859 - keepdir \
860 - /var/log/news \
861 - /var/spool/news/archive \
862 - /var/spool/news/articles \
863 - /var/spool/news/db \
864 - /var/spool/news/incoming \
865 - /var/spool/news/incoming/bad \
866 - /var/spool/news/innfeed \
867 - /var/spool/news/outgoing \
868 - /var/spool/news/overview \
869 - /var/spool/news/tmp
870 -
871 - fowners news:news /var/log/news
872 -
873 - dodoc ChangeLog MANIFEST README* doc/checklist
874 - use ipv6 && dodoc doc/IPv6-info
875 -
876 - # So other programs can build against INN
877 - insinto /usr/$(get_libdir)/news/include
878 - doins include/*.h
879 -
880 - newinitd "${FILESDIR}"/innd-r1 innd
881 -}
882 -
883 -pkg_postinst() {
884 - for db_file in active newsgroups
885 - do
886 - [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue
887 -
888 - if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]]
889 - then
890 - cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \
891 - "${ROOT}"var/spool/news/db/${db_file}
892 - else
893 - touch "${ROOT}"var/spool/news/db/${db_file}
894 - fi
895 -
896 - chown news:news "${ROOT}"var/spool/news/db/${db_file}
897 - chmod 664 "${ROOT}"var/spool/news/db/${db_file}
898 - done
899 -
900 - elog "It is recommended to run emerge --config ${CATEGORY}/${PN}"
901 - elog "now to finish setting up this package."
902 - elog
903 - elog "Do not forget to update your cron entries, and also run"
904 - elog "makedbz if you need to. If this is a first-time installation"
905 - elog "a minimal active file has been installed. You will need to"
906 - elog "touch history and run 'makedbz -i' to initialize the history"
907 - elog "database. See INSTALL for more information."
908 - elog
909 - elog "You need to assign a real shell to the news user, or else"
910 - elog "starting inn will fail. You can use 'usermod -s /bin/bash news'"
911 - elog "for this."
912 -
913 - if use ssl
914 - then
915 - install_cert /etc/news/cert/cert
916 - chown news:news \
917 - "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem}
918 -
919 - elog
920 - elog "You may want to start nnrpd manually for native ssl support."
921 - elog "If you choose to do so, automating this with a bootscript might"
922 - elog "also be a good choice."
923 - elog "Have a look at man nnrpd for valid parameters."
924 - elog
925 - elog "The certificate location in /etc/news/sasl.conf has been changed"
926 - elog "to /etc/news/cert!"
927 -
928 - fi
929 -}
930 -
931 -pkg_postrm() {
932 - elog
933 - elog "If you want your newsspool or altered configuration files"
934 - elog "to be removed, please do so now manually."
935 - elog
936 -}
937 -
938 -pkg_config() {
939 - NEWSSPOOL_DIR="${ROOT}var/spool/news"
940 - NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )"
941 - NEWS_ERRFLAG="0"
942 -
943 - if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then
944 - einfo "Changing shell to /bin/bash for user news..."
945 - usermod -s /bin/bash news
946 - else
947 - einfo "Shell for user news unchanged ('${NEWS_SHELL}')."
948 - if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then
949 - ewarn "You might want to change it to '/bin/bash', though."
950 - fi
951 - fi
952 -
953 - if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then
954 - if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \
955 - && ! -f ${NEWSSPOOL_DIR}/db/history.pag \
956 - && ! -f ${NEWSSPOOL_DIR}/db/history.hash \
957 - && ! -f ${NEWSSPOOL_DIR}/db/history.index ]]
958 - then
959 - einfo "Building history database ..."
960 -
961 - touch "${NEWSSPOOL_DIR}"/db/history
962 - chown news:news "${NEWSSPOOL_DIR}"/db/history
963 - chmod 644 "${NEWSSPOOL_DIR}"/db/history
964 -
965 - einfo "Running makedbz -i ..."
966 - su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
967 -
968 - einfo "Moving files into place ..."
969 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \
970 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \
971 - "${NEWSSPOOL_DIR}"/db/history.dir
972 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \
973 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \
974 - "${NEWSSPOOL_DIR}"/db/history.pag
975 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \
976 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \
977 - "${NEWSSPOOL_DIR}"/db/history.hash
978 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \
979 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \
980 - "${NEWSSPOOL_DIR}"/db/history.index
981 -
982 - einfo "Running makehistory ..."
983 - su - news -c /usr/$(get_libdir)/news/bin/makehistory
984 - else
985 - NEWS_ERRFLAG="1"
986 - eerror "Your installation seems to be screwed up."
987 - eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's"
988 - eerror "one of the files history.dir, history.hash or history.index"
989 - eerror "within ${NEWSSPOOL_DIR}/db."
990 - eerror "Use your backup to restore the history database."
991 - fi
992 - else
993 - einfo "${NEWSSPOOL_DIR}/db/history found."
994 - einfo "Leaving history database as it is."
995 - fi
996 -
997 - INNCFG_INODES=$(
998 - sed /etc/news/inn.conf \
999 - -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:'
1000 - )
1001 - INNSPOOL_INODES=$(
1002 - df -Pi ${NEWSSPOOL_DIR} | \
1003 - sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d'
1004 - )
1005 - if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then
1006 - ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind"
1007 - ewarn "$NEWSSPOOL_DIR works without inodes."
1008 - ewarn
1009 - cp /etc/news/inn.conf /etc/news/inn.conf.OLD
1010 - einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD."
1011 - sed -i /etc/news/inn.conf \
1012 - -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:'
1013 - chown news:news /etc/news/inn.conf
1014 - chmod 644 /etc/news/inn.conf
1015 - fi
1016 -
1017 - INNCHECK_LINES=$(
1018 - su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l"
1019 - )
1020 - if [[ ${INNCHECK_LINES} -gt 0 ]]; then
1021 - NEWS_ERRFLAG="1"
1022 - ewarn "inncheck most certainly found an error."
1023 - ewarn "Please check its output:"
1024 - eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`"
1025 - fi
1026 -
1027 - if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then
1028 - eerror "There were one or more errors/warnings checking your"
1029 - eerror "configuration. Please read inn's documentation and"
1030 - eerror "fix them accordingly."
1031 - else
1032 - einfo "INN configuration tests passed successfully."
1033 - ewarn "Please ensure you have configured inn properly."
1034 - fi
1035 -}
1036
1037 diff --git a/net-nntp/inn/inn-2.5.5-r1.ebuild b/net-nntp/inn/inn-2.5.5-r1.ebuild
1038 deleted file mode 100644
1039 index 19a769d0a7c..00000000000
1040 --- a/net-nntp/inn/inn-2.5.5-r1.ebuild
1041 +++ /dev/null
1042 @@ -1,286 +0,0 @@
1043 -# Copyright 1999-2017 Gentoo Foundation
1044 -# Distributed under the terms of the GNU General Public License v2
1045 -
1046 -EAPI=5
1047 -
1048 -PYTHON_COMPAT=( python2_7 )
1049 -
1050 -inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs
1051 -
1052 -DESCRIPTION="The Internet News daemon, fully featured NNTP server"
1053 -HOMEPAGE="https://www.isc.org/software/inn"
1054 -SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
1055 -
1056 -# GPL-2 only for init script
1057 -LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2"
1058 -SLOT="0"
1059 -KEYWORDS="~amd64 ~ppc ~x86"
1060 -IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl"
1061 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1062 -
1063 -DEPEND="
1064 - virtual/mta
1065 - dev-perl/MIME-tools
1066 - sys-libs/pam
1067 - sys-libs/zlib
1068 - kerberos? ( virtual/krb5 )
1069 - sasl? ( >=dev-libs/cyrus-sasl-2 )
1070 - ssl? ( dev-libs/openssl:0= )
1071 - python? ( ${PYTHON_DEPS} )
1072 - berkdb? ( sys-libs/db:* )
1073 -"
1074 -RDEPEND="${DEPEND}"
1075 -
1076 -pkg_setup() {
1077 - use python && python-single-r1_pkg_setup
1078 -}
1079 -
1080 -src_prepare() {
1081 - epatch "${FILESDIR}"/${PN}-2.5.3-ar.patch
1082 - epatch "${FILESDIR}"/${PN}-2.5.3-tests.patch
1083 -
1084 - sed -e 's: -B .OLD::' -i Makefile.global.in || die
1085 -
1086 - # Do not treat LDFLAGS as if it contained libraries to link to
1087 - sed -e 's:LDFLAGS::g' -i m4/python.m4 || die
1088 -
1089 - # We do not have the biff service, but we do have comsat
1090 - sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die
1091 -
1092 - eautoreconf
1093 -}
1094 -
1095 -src_configure() {
1096 - tc-export AR
1097 -
1098 - econf \
1099 - --prefix=/usr/$(get_libdir)/news \
1100 - --sysconfdir=/etc/news \
1101 - --mandir=/usr/share/man \
1102 - --infodir=/usr/share/info \
1103 - --with-control-dir=/usr/$(get_libdir)/news/bin/control \
1104 - --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \
1105 - --with-db-dir=/var/spool/news/db \
1106 - --with-doc-dir=/usr/share/doc/${PF} \
1107 - --with-spool-dir=/var/spool/news \
1108 - --with-log-dir=/var/log/news \
1109 - --with-run-dir=/run/news \
1110 - --with-tmp-dir=/var/spool/news/tmp \
1111 - --disable-libtool \
1112 - --with-gnu-ld \
1113 - --enable-setgid-inews \
1114 - --enable-uucp-rnews \
1115 - $(use_with perl) \
1116 - $(use_with python) \
1117 - $(use_with kerberos kerberos /usr) \
1118 - $(use_with sasl) \
1119 - $(use_with ssl openssl) \
1120 - $(use_with berkdb berkeleydb /usr) \
1121 - $(use_enable ipv6) \
1122 - $(use_enable !inntaggedhash largefiles) \
1123 - $(use_enable inntaggedhash tagged-hash) \
1124 - $(use_enable innkeywords keywords)
1125 -}
1126 -
1127 -src_install() {
1128 - emake DESTDIR="${D}/" P="" SPECIAL="" install
1129 -
1130 - chown -R root:0 \
1131 - "${D}"/usr/$(get_libdir)/news/$(get_libdir) \
1132 - "${D}"/usr/$(get_libdir)/news/include \
1133 - "${D}"/usr/share/doc \
1134 - "${D}"/usr/share/man \
1135 - || die
1136 - chmod 644 "${D}"/etc/news/* || die
1137 - chmod 640 \
1138 - "${D}"/etc/news/control.ctl \
1139 - "${D}"/etc/news/expire.ctl \
1140 - "${D}"/etc/news/incoming.conf \
1141 - "${D}"/etc/news/innfeed.conf \
1142 - "${D}"/etc/news/nntpsend.ctl \
1143 - "${D}"/etc/news/passwd.nntp \
1144 - "${D}"/etc/news/readers.conf \
1145 - || die
1146 -
1147 - # Prevent old db/* files from being overwritten
1148 - insinto /usr/share/inn/dbexamples
1149 - newins site/active.minimal active
1150 - newins site/newsgroups.minimal newsgroups
1151 -
1152 - keepdir \
1153 - /var/log/news \
1154 - /var/spool/news/archive \
1155 - /var/spool/news/articles \
1156 - /var/spool/news/db \
1157 - /var/spool/news/incoming \
1158 - /var/spool/news/incoming/bad \
1159 - /var/spool/news/innfeed \
1160 - /var/spool/news/outgoing \
1161 - /var/spool/news/overview \
1162 - /var/spool/news/tmp
1163 -
1164 - fowners news:news /var/log/news
1165 -
1166 - dodoc ChangeLog MANIFEST README* doc/checklist
1167 - use ipv6 && dodoc doc/IPv6-info
1168 -
1169 - # So other programs can build against INN
1170 - insinto /usr/$(get_libdir)/news/include
1171 - doins include/*.h
1172 -
1173 - newinitd "${FILESDIR}"/innd-r1 innd
1174 -}
1175 -
1176 -pkg_postinst() {
1177 - for db_file in active newsgroups
1178 - do
1179 - [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue
1180 -
1181 - if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]]
1182 - then
1183 - cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \
1184 - "${ROOT}"var/spool/news/db/${db_file}
1185 - else
1186 - touch "${ROOT}"var/spool/news/db/${db_file}
1187 - fi
1188 -
1189 - chown news:news "${ROOT}"var/spool/news/db/${db_file}
1190 - chmod 664 "${ROOT}"var/spool/news/db/${db_file}
1191 - done
1192 -
1193 - elog "It is recommended to run emerge --config ${CATEGORY}/${PN}"
1194 - elog "now to finish setting up this package."
1195 - elog
1196 - elog "Do not forget to update your cron entries, and also run"
1197 - elog "makedbz if you need to. If this is a first-time installation"
1198 - elog "a minimal active file has been installed. You will need to"
1199 - elog "touch history and run 'makedbz -i' to initialize the history"
1200 - elog "database. See INSTALL for more information."
1201 - elog
1202 - elog "You need to assign a real shell to the news user, or else"
1203 - elog "starting inn will fail. You can use 'usermod -s /bin/bash news'"
1204 - elog "for this."
1205 -
1206 - if use ssl
1207 - then
1208 - install_cert /etc/news/cert/cert
1209 - chown news:news \
1210 - "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem}
1211 -
1212 - elog
1213 - elog "You may want to start nnrpd manually for native ssl support."
1214 - elog "If you choose to do so, automating this with a bootscript might"
1215 - elog "also be a good choice."
1216 - elog "Have a look at man nnrpd for valid parameters."
1217 - elog
1218 - elog "The certificate location in /etc/news/sasl.conf has been changed"
1219 - elog "to /etc/news/cert!"
1220 -
1221 - fi
1222 -}
1223 -
1224 -pkg_postrm() {
1225 - elog
1226 - elog "If you want your newsspool or altered configuration files"
1227 - elog "to be removed, please do so now manually."
1228 - elog
1229 -}
1230 -
1231 -pkg_config() {
1232 - NEWSSPOOL_DIR="${ROOT}var/spool/news"
1233 - NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )"
1234 - NEWS_ERRFLAG="0"
1235 -
1236 - if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then
1237 - einfo "Changing shell to /bin/bash for user news..."
1238 - usermod -s /bin/bash news
1239 - else
1240 - einfo "Shell for user news unchanged ('${NEWS_SHELL}')."
1241 - if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then
1242 - ewarn "You might want to change it to '/bin/bash', though."
1243 - fi
1244 - fi
1245 -
1246 - if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then
1247 - if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \
1248 - && ! -f ${NEWSSPOOL_DIR}/db/history.pag \
1249 - && ! -f ${NEWSSPOOL_DIR}/db/history.hash \
1250 - && ! -f ${NEWSSPOOL_DIR}/db/history.index ]]
1251 - then
1252 - einfo "Building history database ..."
1253 -
1254 - touch "${NEWSSPOOL_DIR}"/db/history
1255 - chown news:news "${NEWSSPOOL_DIR}"/db/history
1256 - chmod 644 "${NEWSSPOOL_DIR}"/db/history
1257 -
1258 - einfo "Running makedbz -i ..."
1259 - su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
1260 -
1261 - einfo "Moving files into place ..."
1262 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \
1263 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \
1264 - "${NEWSSPOOL_DIR}"/db/history.dir
1265 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \
1266 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \
1267 - "${NEWSSPOOL_DIR}"/db/history.pag
1268 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \
1269 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \
1270 - "${NEWSSPOOL_DIR}"/db/history.hash
1271 - [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \
1272 - mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \
1273 - "${NEWSSPOOL_DIR}"/db/history.index
1274 -
1275 - einfo "Running makehistory ..."
1276 - su - news -c /usr/$(get_libdir)/news/bin/makehistory
1277 - else
1278 - NEWS_ERRFLAG="1"
1279 - eerror "Your installation seems to be screwed up."
1280 - eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's"
1281 - eerror "one of the files history.dir, history.hash or history.index"
1282 - eerror "within ${NEWSSPOOL_DIR}/db."
1283 - eerror "Use your backup to restore the history database."
1284 - fi
1285 - else
1286 - einfo "${NEWSSPOOL_DIR}/db/history found."
1287 - einfo "Leaving history database as it is."
1288 - fi
1289 -
1290 - INNCFG_INODES=$(
1291 - sed /etc/news/inn.conf \
1292 - -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:'
1293 - )
1294 - INNSPOOL_INODES=$(
1295 - df -Pi ${NEWSSPOOL_DIR} | \
1296 - sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d'
1297 - )
1298 - if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then
1299 - ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind"
1300 - ewarn "$NEWSSPOOL_DIR works without inodes."
1301 - ewarn
1302 - cp /etc/news/inn.conf /etc/news/inn.conf.OLD
1303 - einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD."
1304 - sed -i /etc/news/inn.conf \
1305 - -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:'
1306 - chown news:news /etc/news/inn.conf
1307 - chmod 644 /etc/news/inn.conf
1308 - fi
1309 -
1310 - INNCHECK_LINES=$(
1311 - su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l"
1312 - )
1313 - if [[ ${INNCHECK_LINES} -gt 0 ]]; then
1314 - NEWS_ERRFLAG="1"
1315 - ewarn "inncheck most certainly found an error."
1316 - ewarn "Please check its output:"
1317 - eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`"
1318 - fi
1319 -
1320 - if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then
1321 - eerror "There were one or more errors/warnings checking your"
1322 - eerror "configuration. Please read inn's documentation and"
1323 - eerror "fix them accordingly."
1324 - else
1325 - einfo "INN configuration tests passed successfully."
1326 - ewarn "Please ensure you have configured inn properly."
1327 - fi
1328 -}
1329
1330 diff --git a/net-nntp/inn/metadata.xml b/net-nntp/inn/metadata.xml
1331 deleted file mode 100644
1332 index c3c5f1546ad..00000000000
1333 --- a/net-nntp/inn/metadata.xml
1334 +++ /dev/null
1335 @@ -1,10 +0,0 @@
1336 -<?xml version="1.0" encoding="UTF-8"?>
1337 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1338 -<pkgmetadata>
1339 -<!-- maintainer-needed -->
1340 -<use>
1341 - <flag name="innkeywords">Enable automatic keyword generation support</flag>
1342 - <flag name="inntaggedhash">Use tagged hash table for history (disables large
1343 - file support)</flag>
1344 -</use>
1345 -</pkgmetadata>
1346
1347 diff --git a/profiles/package.mask b/profiles/package.mask
1348 index 3bcf2939123..4ccc565cb81 100644
1349 --- a/profiles/package.mask
1350 +++ b/profiles/package.mask
1351 @@ -415,10 +415,6 @@ media-libs/schroedinger
1352 # gstreamer:0.10 (#610434, #560254). Removal in a month.
1353 app-accessibility/pocketsphinx
1354
1355 -# Pacho Ramos <pacho@g.o> (04 Nov 2018)
1356 -# Fails to build, hard to bump (#608908). Removal in a month.
1357 -net-nntp/inn
1358 -
1359 # Andreas Sturmlechner <asturm@g.o> (03 Nov 2018)
1360 # Breaks revdeps (GDir and GDirEntry split from gfile.h into new gdir.h)
1361 # See tracker: https://bugs.gentoo.org/670222