Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/unrealircd/
Date: Sat, 29 Jan 2022 07:03:18
Message-Id: 1643439784.ff1aad29df982e1c0e66b72c481372007519894e.sam@gentoo
1 commit: ff1aad29df982e1c0e66b72c481372007519894e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 07:03:04 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 07:03:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1aad29
7
8 net-irc/unrealircd: drop 5.2.3, 6.0.1.1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-irc/unrealircd/Manifest | 2 -
13 net-irc/unrealircd/unrealircd-5.2.3.ebuild | 175 --------------------------
14 net-irc/unrealircd/unrealircd-6.0.1.1.ebuild | 178 ---------------------------
15 3 files changed, 355 deletions(-)
16
17 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest
18 index 0b7548eca211..a4f56594338f 100644
19 --- a/net-irc/unrealircd/Manifest
20 +++ b/net-irc/unrealircd/Manifest
21 @@ -1,5 +1,3 @@
22 DIST unrealircd-5.2.2.tar.gz 7192024 BLAKE2B aa700c943cbab1dcc751e32c6cc0608cd27936b0910bbc62987dd2fe87ee5261e7a5eb2aa67dd77ed5ecb39d1d4f149c8810159e2c6f752ee65ce34e46548f60 SHA512 9d36eb1567431bc4a5420bc830bfc8dc89daa08ed1746efd6102e5ef161f67baf52e75e373454df7df6a443c4f575fb300d3c289d4dd99239a6de7d2b2a555a0
23 -DIST unrealircd-5.2.3.tar.gz 7200834 BLAKE2B af15b97219d5552a8fe6ecd77b4d0d0b8bcbe8c2f65ab531a7322471c05af3001000cc3799db68291b9abe8c3a5ea7d04559f858774d1b12a764a20fb4ab2bd0 SHA512 c92c631340cb81b030006646a047fde4ee738edc8362870ba4eb979133d851806c7d4764848a35cbd48c787708eab9f051f257008798a494673d9986d16b2405
24 DIST unrealircd-5.2.4.tar.gz 7201203 BLAKE2B 06afc8b5e28bbd56971b2ce21da3e000e39366444472786891bfe000754f5fed37b59850f9539b4f01914d6b33c1f9f17a15fe69569620ba5213f39fce1cfcad SHA512 b6784d011bc56b0b8253d61fb1edddb2133e791e9ce4ae978f90059563d11f3f7b3ebca1cf13765b4077ebc39f0699e101bdfc71cbb0c5cf51d508c5a5fdacb3
25 -DIST unrealircd-6.0.1.1.tar.gz 8616313 BLAKE2B 9b8462523d7605ce7bf17ccc6aed3455a9f100826ee6a1554b3576654d611e8a0a68594f5fb8a6b3d9d929c0b52ca8cf33ece9bf6898453789b70cdea36b6df0 SHA512 44bf9358d6159c298f8a3e97e16aa6e7364e06c4e59bb9e12bc34610414bbabb9cd8049c164260ee78fcdcafc669716eb03390aa8f4f8b097b65298d074f9ab0
26 DIST unrealircd-6.0.2.tar.gz 8672255 BLAKE2B d52f2984f32331c489528b429f4671189713e4e308a7a7fd2f70933bfd606a938a9b6a6e581170b41fa9a948d1cc04c0cd8bb90c595c01c39b473cf341494a27 SHA512 041f97ad82d89222ad49bdc7db83869fc5133a049dd5354c34759c33c16307b9d60c25d3ef4e19a549059e3a0030699d061bd03fa8118428ded1f1e79d483398
27
28 diff --git a/net-irc/unrealircd/unrealircd-5.2.3.ebuild b/net-irc/unrealircd/unrealircd-5.2.3.ebuild
29 deleted file mode 100644
30 index cf63b49a2637..000000000000
31 --- a/net-irc/unrealircd/unrealircd-5.2.3.ebuild
32 +++ /dev/null
33 @@ -1,175 +0,0 @@
34 -# Copyright 1999-2021 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -SSL_CERT_MANDATORY=1
40 -inherit autotools ssl-cert systemd
41 -
42 -DESCRIPTION="An advanced Internet Relay Chat daemon"
43 -HOMEPAGE="https://www.unrealircd.org/"
44 -SRC_URI="https://www.unrealircd.org/downloads/${P}.tar.gz"
45 -
46 -LICENSE="GPL-2"
47 -SLOT="0"
48 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux"
49 -IUSE="class-nofakelag curl +operoverride operoverride-verify +prefixaq showlistmodes"
50 -
51 -RDEPEND="acct-group/unrealircd
52 - acct-user/unrealircd
53 - >=app-crypt/argon2-20171227-r1:=
54 - dev-libs/libpcre2
55 - dev-libs/libsodium:=
56 - dev-libs/openssl:0=
57 - >=net-dns/c-ares-1.7:=
58 - virtual/libcrypt:=
59 - curl? ( net-misc/curl[adns] )"
60 -DEPEND="${RDEPEND}"
61 -BDEPEND="virtual/pkgconfig"
62 -
63 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES.md,tao.of.irc,technical/,translations.txt} )
64 -
65 -src_prepare() {
66 - # QA check against bundled pkgs
67 - rm -r extras || die
68 -
69 - # building third-party modules (which we don't do) cause a sandbox violation
70 - # bug 704444
71 - echo "" > src/buildmod || die
72 -
73 - sed -e 's/$(MODULEFLAGS)/$(LDFLAGS) &/' -i src/modules/{,*/}Makefile.in || die
74 -
75 - if use class-nofakelag; then
76 - sed -i -e 's:^//#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
77 - fi
78 -
79 - # File is missing from the 5.0.9.1 tarball
80 - sed -i -e '/unrealircd-upgrade-script/d' configure.ac || die
81 -
82 - default
83 - eautoreconf
84 -}
85 -
86 -src_configure() {
87 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
88 - econf \
89 - --with-bindir="${EPREFIX}"/usr/bin \
90 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
91 - --with-confdir="${EPREFIX}"/etc/${PN} \
92 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
93 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
94 - --with-logdir="${EPREFIX}"/var/log/${PN} \
95 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)"/${PN}/modules \
96 - --without-privatelibdir \
97 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
98 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
99 - --with-maxconnections=1024 \
100 - --with-nick-history=2000 \
101 - --with-permissions=0640 \
102 - --with-system-argon2 \
103 - --with-system-cares \
104 - --with-system-pcre2 \
105 - --enable-dynamic-linking \
106 - --enable-ssl="${EPREFIX}"/usr \
107 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
108 - $(use_enable prefixaq) \
109 - $(use_with showlistmodes) \
110 - $(use_with !operoverride no-operoverride) \
111 - $(use_with operoverride-verify)
112 -}
113 -
114 -src_install() {
115 - keepdir /var/log/${PN}
116 - keepdir /var/lib/${PN}/tmp
117 -
118 - newbin src/ircd ${PN}
119 -
120 - (
121 - cd src/modules || die
122 - for subdir in $(find . -type d -print); do
123 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
124 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
125 - doexe "${subdir}"/*.so
126 - fi
127 - done
128 - )
129 -
130 - insinto /etc/${PN}
131 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
132 - # is redundant with app-misc/ca-certificates and examples will all
133 - # be in docs anyway.
134 - doins -r doc/conf/{aliases,help}
135 - doins doc/conf/*.conf
136 - newins doc/conf/examples/example.conf ${PN}.conf
137 - keepdir /etc/${PN}/tls
138 -
139 - einstalldocs
140 -
141 - newinitd "${FILESDIR}"/${PN}.initd-r3 ${PN}
142 - newconfd "${FILESDIR}"/${PN}.confd-r4 ${PN}
143 -
144 - # config should be read-only
145 - fperms -R 0640 /etc/${PN}
146 - fperms 0750 /etc/${PN}{,/aliases,/help}
147 - fperms 0750 /etc/${PN}/tls
148 - # state is editable but not owned by unrealircd directly
149 - fperms 0770 /var/log/${PN}
150 - fperms 0770 /var/lib/${PN}{,/tmp}
151 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
152 -
153 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
154 - # that to look for ca-certificates-provided file instead. %s is
155 - # CONFDIR. #618066
156 - dosym ../../ssl/certs/ca-certificates.crt /etc/${PN}/tls/curl-ca-bundle.crt
157 -
158 - systemd_dounit "${FILESDIR}"/${PN}.service
159 -}
160 -
161 -pkg_postinst() {
162 - # Move docert call from src_install() to install_cert in pkg_postinst for
163 - # bug #201682
164 - if [[ ! -f "${EROOT}"/etc/${PN}/tls/server.cert.key ]]; then
165 - if [[ -f "${EROOT}"/etc/${PN}/ssl/server.cert.key ]]; then
166 - ewarn "The location ${PN} looks for SSL certificates has changed"
167 - ewarn "from ${EROOT}/etc/${PN}/ssl to ${EROOT}/etc/${PN}/tls."
168 - ewarn "Please move your existing certificates."
169 - else
170 - (
171 - umask 0037
172 - install_cert /etc/${PN}/tls/server.cert
173 - chown unrealircd "${EROOT}"/etc/${PN}/tls/server.cert.*
174 - ln -snf server.cert.key "${EROOT}"/etc/${PN}/tls/server.key.pem
175 - )
176 - fi
177 - fi
178 -
179 - local unrealircd_conf="${EROOT}"/etc/${PN}/${PN}.conf
180 - # Fix up the default cloak keys.
181 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
182 - ebegin "Generating cloak-keys"
183 - local keys=(
184 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")
185 - )
186 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
187 - eend $?
188 -
189 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
190 - sed -i \
191 - -e '/cloak-keys/ {
192 -n
193 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
194 -n
195 -s/"and another one";/"'"${keys[1]}"'";/
196 -n
197 -s/"and another one";/"'"${keys[2]}"'";/
198 -}' \
199 - "${unrealircd_conf}"
200 - eend $?
201 - fi
202 -
203 - elog "UnrealIRCd will not run until you've set up ${EROOT}/etc/unrealircd/unrealircd.conf"
204 - elog
205 - elog "You can also configure ${PN} start at boot with rc-update(1)."
206 - elog "It is recommended to run unrealircd as an unprivileged user."
207 - elog "The provided init.d script does this for you."
208 -}
209
210 diff --git a/net-irc/unrealircd/unrealircd-6.0.1.1.ebuild b/net-irc/unrealircd/unrealircd-6.0.1.1.ebuild
211 deleted file mode 100644
212 index eb6a6e282a83..000000000000
213 --- a/net-irc/unrealircd/unrealircd-6.0.1.1.ebuild
214 +++ /dev/null
215 @@ -1,178 +0,0 @@
216 -# Copyright 1999-2022 Gentoo Authors
217 -# Distributed under the terms of the GNU General Public License v2
218 -
219 -EAPI=8
220 -
221 -SSL_CERT_MANDATORY=1
222 -inherit autotools ssl-cert systemd
223 -
224 -DESCRIPTION="An advanced Internet Relay Chat daemon"
225 -HOMEPAGE="https://www.unrealircd.org/"
226 -SRC_URI="https://www.unrealircd.org/downloads/${P}.tar.gz"
227 -
228 -LICENSE="GPL-2"
229 -SLOT="0"
230 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux"
231 -IUSE="class-nofakelag curl geoip +operoverride operoverride-verify"
232 -
233 -RDEPEND="acct-group/unrealircd
234 - acct-user/unrealircd
235 - >=app-crypt/argon2-20171227-r1:=
236 - dev-libs/libpcre2
237 - dev-libs/libsodium:=
238 - dev-libs/openssl:=
239 - dev-libs/jansson:=
240 - >=net-dns/c-ares-1.7:=
241 - virtual/libcrypt:=
242 - curl? ( net-misc/curl[adns] )
243 - geoip? ( dev-libs/libmaxminddb )"
244 -DEPEND="${RDEPEND}"
245 -BDEPEND="virtual/pkgconfig"
246 -
247 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES.md,tao.of.irc,technical/,translations.txt} )
248 -
249 -src_prepare() {
250 - # QA check against bundled pkgs
251 - rm -r extras || die
252 -
253 - # building third-party modules (which we don't do) cause a sandbox violation
254 - # bug 704444
255 - echo "" > src/buildmod || die
256 -
257 - sed -e 's/$(MODULEFLAGS)/$(LDFLAGS) &/' -i src/modules/{,*/}Makefile.in || die
258 -
259 - if use class-nofakelag; then
260 - sed -i -e 's:^//#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
261 - fi
262 -
263 - # File is missing from the 5.0.9.1 tarball
264 - sed -i -e '/unrealircd-upgrade-script/d' configure.ac || die
265 -
266 - default
267 - eautoreconf
268 -}
269 -
270 -src_configure() {
271 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
272 - econf \
273 - --with-bindir="${EPREFIX}"/usr/bin \
274 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
275 - --with-confdir="${EPREFIX}"/etc/${PN} \
276 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
277 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
278 - --with-logdir="${EPREFIX}"/var/log/${PN} \
279 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)"/${PN}/modules \
280 - --without-privatelibdir \
281 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
282 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
283 - --with-maxconnections=1024 \
284 - --with-nick-history=2000 \
285 - --with-permissions=0640 \
286 - --with-system-argon2 \
287 - --with-system-cares \
288 - --with-system-pcre2 \
289 - --with-system-sodium \
290 - --with-system-jansson \
291 - --enable-dynamic-linking \
292 - --enable-ssl="${EPREFIX}"/usr \
293 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
294 - $(use_with !operoverride no-operoverride) \
295 - $(use_with operoverride-verify) \
296 - $(use_enable geoip libmaxminddb)
297 -}
298 -
299 -src_install() {
300 - keepdir /var/log/${PN}
301 - keepdir /var/lib/${PN}/tmp
302 -
303 - newbin src/ircd ${PN}
304 -
305 - (
306 - cd src/modules || die
307 - for subdir in $(find . -type d -print); do
308 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
309 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
310 - doexe "${subdir}"/*.so
311 - fi
312 - done
313 - )
314 -
315 - insinto /etc/${PN}
316 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
317 - # is redundant with app-misc/ca-certificates and examples will all
318 - # be in docs anyway.
319 - doins -r doc/conf/{aliases,help}
320 - doins doc/conf/*.conf
321 - newins doc/conf/examples/example.conf ${PN}.conf
322 - keepdir /etc/${PN}/tls
323 -
324 - einstalldocs
325 -
326 - newinitd "${FILESDIR}"/${PN}.initd-r3 ${PN}
327 - newconfd "${FILESDIR}"/${PN}.confd-r4 ${PN}
328 -
329 - # config should be read-only
330 - fperms -R 0640 /etc/${PN}
331 - fperms 0750 /etc/${PN}{,/aliases,/help}
332 - fperms 0750 /etc/${PN}/tls
333 - # state is editable but not owned by unrealircd directly
334 - fperms 0770 /var/log/${PN}
335 - fperms 0770 /var/lib/${PN}{,/tmp}
336 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
337 -
338 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
339 - # that to look for ca-certificates-provided file instead. %s is
340 - # CONFDIR. #618066
341 - dosym ../../ssl/certs/ca-certificates.crt /etc/${PN}/tls/curl-ca-bundle.crt
342 -
343 - systemd_dounit "${FILESDIR}"/${PN}.service
344 -}
345 -
346 -pkg_postinst() {
347 - # Move docert call from src_install() to install_cert in pkg_postinst for
348 - # bug #201682
349 - if [[ ! -f "${EROOT}"/etc/${PN}/tls/server.cert.key ]]; then
350 - if [[ -f "${EROOT}"/etc/${PN}/ssl/server.cert.key ]]; then
351 - ewarn "The location ${PN} looks for SSL certificates has changed"
352 - ewarn "from ${EROOT}/etc/${PN}/ssl to ${EROOT}/etc/${PN}/tls."
353 - ewarn "Please move your existing certificates."
354 - else
355 - (
356 - umask 0037
357 - install_cert /etc/${PN}/tls/server.cert
358 - chown unrealircd "${EROOT}"/etc/${PN}/tls/server.cert.*
359 - ln -snf server.cert.key "${EROOT}"/etc/${PN}/tls/server.key.pem
360 - )
361 - fi
362 - fi
363 -
364 - local unrealircd_conf="${EROOT}"/etc/${PN}/${PN}.conf
365 - # Fix up the default cloak keys.
366 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"Oozahho1raezoh0iMee4ohvegaifahv5xaepeitaich9tahdiquaid0geecipahdauVaij3zieph4ahi";$' "${unrealircd_conf}"; then
367 - ebegin "Generating cloak-keys"
368 - local keys=(
369 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 6 | head -n 3")
370 - )
371 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
372 - eend $?
373 -
374 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
375 - sed -i \
376 - -e '/cloak-keys/ {
377 -n
378 -s/"Oozahho1raezoh0iMee4ohvegaifahv5xaepeitaich9tahdiquaid0geecipahdauVaij3zieph4ahi";/'${keys[0]}'/
379 -n
380 -s/"and another one";/'${keys[1]}'/
381 -n
382 -s/"and another one";/'${keys[2]}'/
383 -}' \
384 - "${unrealircd_conf}"
385 - eend $?
386 - fi
387 -
388 - elog "UnrealIRCd will not run until you've set up ${EROOT}/etc/unrealircd/unrealircd.conf"
389 - elog
390 - elog "You can also configure ${PN} start at boot with rc-update(1)."
391 - elog "It is recommended to run unrealircd as an unprivileged user."
392 - elog "The provided init.d script does this for you."
393 -}