Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/
Date: Mon, 03 Jan 2022 21:36:12
Message-Id: 1641245756.cec17f7cc708b65953a65da434f7da8c48a131c4.cybertailor@gentoo
1 commit: cec17f7cc708b65953a65da434f7da8c48a131c4
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Jan 3 21:29:01 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Mon Jan 3 21:35:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cec17f7c
7
8 net-nntp/inn: initial import
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 net-nntp/inn/Manifest | 2 +
13 net-nntp/inn/inn-2.6.4.ebuild | 113 ++++++++++++++++++++++++++++++++++++++++++
14 net-nntp/inn/metadata.xml | 30 +++++++++++
15 3 files changed, 145 insertions(+)
16
17 diff --git a/net-nntp/inn/Manifest b/net-nntp/inn/Manifest
18 new file mode 100644
19 index 000000000..86209df86
20 --- /dev/null
21 +++ b/net-nntp/inn/Manifest
22 @@ -0,0 +1,2 @@
23 +DIST inn-2.6.4.tar.gz 2610659 BLAKE2B 0cabe90b941f47d759179f71de10212ffb71c1955452ab1b04018a3f7dbb2f8fa0f2f3c534bda9fc08768b4ffa1034fcf2d59077fa1a5bb77801c74d11a6cab5 SHA512 0b1e4add9fe1f2a423f372adbce9622ffe943c75865427f30b18f5a5b8c2dae158d5bfa4d611631cb993757523bc858ca6ad907463bd5f91c60a851359a70c57
24 +DIST inn-2.6.4.tar.gz.sha256.asc 620 BLAKE2B e21d72effaf090a7a8bbc6f1b6fc8f2b6a604dfbc594ae1bba5f559e93e0b352bd255a2b12880dabbd038f6204003064b9744def43ea6cfc0cd52aec0779f279 SHA512 17ab70d3df9500f3fbe0ee2e359bbaf8d54fcd4337000b44ab7e74f87c65617740b052d942f9e0adcb901e017ed64367f55e4dbb07075ae734fd05fcd5d21396
25
26 diff --git a/net-nntp/inn/inn-2.6.4.ebuild b/net-nntp/inn/inn-2.6.4.ebuild
27 new file mode 100644
28 index 000000000..5b0671696
29 --- /dev/null
30 +++ b/net-nntp/inn/inn-2.6.4.ebuild
31 @@ -0,0 +1,113 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit optfeature python-single-r1 verify-sig
40 +
41 +DESCRIPTION="InterNetNews -- the Internet meets Netnews"
42 +HOMEPAGE="https://www.eyrie.org/~eagle/software/inn/"
43 +SRC_URI="https://archives.eyrie.org/software/${PN}/${P}.tar.gz
44 + verify-sig? ( https://archives.eyrie.org/software/${PN}/${P}.tar.gz.sha256.asc )"
45 +
46 +LICENSE="ISC"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE="berkdb gzip kerberos keywords largefile low-memory +perl +python sasl ssl systemd zlib"
50 +REQUIRED_USE="
51 + python? ( ${PYTHON_REQUIRED_USE} )
52 + ?? ( low-memory largefile )
53 +" # ?? ( bzip2 gzip )
54 +
55 +DEPEND="
56 + app-crypt/gnupg
57 + sys-libs/pam
58 + virtual/libcrypt:=
59 + virtual/sendmail
60 + !berkdb? ( sys-libs/gdbm:= )
61 + berkdb? ( sys-libs/db:* )
62 + kerberos? ( app-crypt/mit-krb5 )
63 + perl? ( dev-lang/perl:= )
64 + python? ( ${PYTHON_DEPS} )
65 + sasl? ( dev-libs/cyrus-sasl:2 )
66 + ssl? ( dev-libs/openssl:= )
67 + systemd? ( sys-apps/systemd:= )
68 + zlib? ( sys-libs/zlib:= )
69 +"
70 +RDEPEND="${DEPEND}"
71 +BDEPEND="
72 + sys-devel/flex
73 + virtual/yacc
74 + verify-sig? ( sec-keys/openpgp-keys-russallbery )
75 +"
76 +
77 +DOCS=(
78 + ChangeLog CONTRIBUTORS HACKING INSTALL NEWS README TODO
79 + doc/{checklist,external-auth,FAQ} doc/history{,-innfeed}
80 + doc/hook-{perl,python} doc/{IPv6-info,sample-control}
81 + doc/config-{design,semantics,syntax}
82 +)
83 +
84 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/russallbery.asc"
85 +
86 +src_unpack() {
87 + if use verify-sig; then
88 + pushd "${DISTDIR}" || die
89 + verify-sig_verify_signed_checksums \
90 + ${P}.tar.gz.sha256.asc sha256 ${P}.tar.gz
91 + popd || die
92 + fi
93 +
94 + unpack ${P}.tar.gz
95 +}
96 +
97 +src_configure() {
98 + econf_args=(
99 + --prefix=/opt/${PN}
100 + $(use_enable keywords)
101 + $(use_enable largefile largefiles)
102 + $(use_enable low-memory tagged-hash)
103 + $(use_with berkdb bdb)
104 + $(use_with kerberos krb5)
105 + $(use_with perl)
106 + $(use_with python)
107 + $(use_with sasl)
108 + $(use_with ssl openssl)
109 + $(use_with zlib)
110 + )
111 +
112 + if use gzip; then
113 + econf_args+=( --with-log-compress=gzip )
114 + else
115 + econf_args+=( --with-log-compress=cat )
116 + fi
117 +
118 + econf "${econf_args[@]}"
119 +}
120 +
121 +src_compile() {
122 + emake -j1
123 +}
124 +
125 +src_test() {
126 + emake -j1 check
127 +}
128 +
129 +src_install() {
130 + default
131 +
132 + # collision with sys-apps/man-pages
133 + mv "${ED}"/usr/share/man/man3/{list,inn-list}.3 || die
134 +
135 + rm -r "${ED}"/opt/${PN}/{db,doc} || die
136 +}
137 +
138 +pkg_postinst() {
139 + if use perl; then
140 + optfeature "controlchan program" dev-perl/MIME-tools
141 + optfeature "innreport script" dev-perl/GD
142 + optfeature "send-uucp backend" net-misc/taylor-uucp
143 + fi
144 +}
145
146 diff --git a/net-nntp/inn/metadata.xml b/net-nntp/inn/metadata.xml
147 new file mode 100644
148 index 000000000..3fa0a8245
149 --- /dev/null
150 +++ b/net-nntp/inn/metadata.xml
151 @@ -0,0 +1,30 @@
152 +<?xml version="1.0" encoding="UTF-8"?>
153 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
154 +<pkgmetadata>
155 +<maintainer type="person">
156 + <email>cyber+gentoo@×××××.in</email>
157 + <name>Anna</name>
158 +</maintainer>
159 +<upstream>
160 + <remote-id type="github">InterNetNews/inn</remote-id>
161 + <bugs-to>https://github.com/InterNetNews/inn/issues</bugs-to>
162 + <doc>https://www.eyrie.org/~eagle/software/inn/docs/</doc>
163 + <maintainer>
164 + <email>eagle@×××××.org</email>
165 + <name>Russ Allbery</name>
166 + </maintainer>
167 +</upstream>
168 +<longdescription>
169 +InterNetNews is a complete Usenet system. The cornerstone of the package is
170 +innd, an NNTP server that multiplexes all I/O. Newsreading is handled by a
171 +separate server, nnrpd, that is spawned for each client. Both innd and nnrpd
172 +have some slight variances from the NNTP protocol.
173 +</longdescription>
174 +<use>
175 + <!--flag name="bzip2">Compress logs using bzip2</flag-->
176 + <flag name="gzip">Compress logs using gzip</flag>
177 + <flag name="keywords">Enable automatic innd keyword generation</flag>
178 + <flag name="low-memory">Use tagged hash table for history to reduce memory footprint</flag>
179 + <flag name="largefile">Support files larger than 2GB</flag>
180 +</use>
181 +</pkgmetadata>