Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/unrealircd/
Date: Sun, 28 Apr 2019 12:40:52
Message-Id: 1556455228.be2dc8684ff6e33c5fb560c535c444b4a67d7601.kensington@gentoo
1 commit: be2dc8684ff6e33c5fb560c535c444b4a67d7601
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 12:39:56 2019 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 12:40:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be2dc868
7
8 net-irc/unrealircd: remove 4.0.18 and 4.2.0
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 net-irc/unrealircd/Manifest | 2 -
14 net-irc/unrealircd/metadata.xml | 1 -
15 net-irc/unrealircd/unrealircd-4.0.18-r1.ebuild | 184 ------------------------
16 net-irc/unrealircd/unrealircd-4.2.0.ebuild | 185 -------------------------
17 4 files changed, 372 deletions(-)
18
19 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest
20 index b57362fab6f..ec2aab4b7c4 100644
21 --- a/net-irc/unrealircd/Manifest
22 +++ b/net-irc/unrealircd/Manifest
23 @@ -1,3 +1 @@
24 -DIST unrealircd-4.0.18.tar.gz 5317767 BLAKE2B cb71144ce0fce7f719b3081f2da9f85c997dbc372492dfa57354eb51aee122f0e42fdba9e0aca997cd118ed9c75fb6f197ca13e371931fe45709d6b64651336d SHA512 b9541ea83c24963187931938eadbba746175ec1d9449631e799df038bb062625e4b508c2d0d4e9e69a6401158cc23a855cbfbda3d28a4b971fbb249f074d26d3
25 -DIST unrealircd-4.2.0.tar.gz 5340752 BLAKE2B 12d1ada1d439c6acd692a04dd4ed7ed03ea91c897f9522c0fec853239ba9a21098bddb78c6f5159ed59f1b88cf88f0ecaa774d70aba226b3ac749c935bc18ff5 SHA512 2ee7955c3c6c9af2b74cb68cfa94f8500dddf640f0222888b230f0f46dd0a52fba2c68d795eff00c59a3025affb2becb1dd67ebac037c7f75e77a3a728239750
26 DIST unrealircd-4.2.2.tar.gz 6060272 BLAKE2B f45cae6aa85b478e7f667e379b557314fa509c17f150941f84ee80fb328b01de099235b69d3e2710afef01578f5898ba12f21245d6ce5370e7aa7ffdfa49d1f0 SHA512 961947e2286e10cd6032320d57cf3a99d4354f46ae28ad3142d11a0d423f7a0be915f8c09e8fe7b5816829752e4a03776907bb491366f418afc319fd8efb14ad
27
28 diff --git a/net-irc/unrealircd/metadata.xml b/net-irc/unrealircd/metadata.xml
29 index da34a4fb08f..71258eb2874 100644
30 --- a/net-irc/unrealircd/metadata.xml
31 +++ b/net-irc/unrealircd/metadata.xml
32 @@ -13,6 +13,5 @@
33 <flag name="operoverride">Enable OperOverride extension</flag>
34 <flag name="usermod">Enable /set* and /chg* commands</flag>
35 <flag name="shunnotices">Enable notifying a user when un-shunned</flag>
36 - <flag name="topicisnuhost">Enable displaying nick!user@host as topic setter</flag>
37 </use>
38 </pkgmetadata>
39
40 diff --git a/net-irc/unrealircd/unrealircd-4.0.18-r1.ebuild b/net-irc/unrealircd/unrealircd-4.0.18-r1.ebuild
41 deleted file mode 100644
42 index db75758bc7c..00000000000
43 --- a/net-irc/unrealircd/unrealircd-4.0.18-r1.ebuild
44 +++ /dev/null
45 @@ -1,184 +0,0 @@
46 -# Copyright 1999-2018 Gentoo Authors
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI=6
50 -
51 -SSL_CERT_MANDATORY=1
52 -inherit ssl-cert user versionator
53 -
54 -DESCRIPTION="An advanced Internet Relay Chat daemon"
55 -HOMEPAGE="https://www.unrealircd.org/"
56 -SRC_URI="https://www.unrealircd.org/${PN}$(get_version_component_range 1)/${P}.tar.gz"
57 -
58 -LICENSE="GPL-2"
59 -SLOT="0"
60 -KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux"
61 -IUSE="class-nofakelag curl +extban-stacking +operoverride operoverride-verify +prefixaq
62 - showlistmodes shunnotices topicisnuhost +usermod"
63 -
64 -RDEPEND="
65 - dev-libs/openssl:0=
66 - dev-libs/libpcre2
67 - dev-libs/tre
68 - >=net-dns/c-ares-1.7:=
69 - sys-libs/zlib
70 - curl? ( net-misc/curl[adns] )
71 -"
72 -DEPEND="${RDEPEND}
73 - virtual/pkgconfig
74 -"
75 -
76 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES{,.old},tao.of.irc,technical/,translations.txt} )
77 -
78 -pkg_pretend() {
79 - local v
80 - for v in ${REPLACING_VERSIONS}; do
81 - version_is_at_least 4 "${v}" && continue
82 - ewarn "The configuration file format has changed since ${v}."
83 - ewarn "Please be prepared to manually update them and visit:"
84 - ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"
85 - break
86 - done
87 -}
88 -
89 -pkg_setup() {
90 - enewuser unrealircd
91 -}
92 -
93 -src_prepare() {
94 - # QA check against bundled pkgs
95 - rm -r extras || die
96 -
97 - if use class-nofakelag; then
98 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
99 - fi
100 -
101 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
102 - # that to look for ca-certificates-provided file instead. %s is
103 - # CONFDIR. #618066
104 - sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die
105 -
106 - eapply_user
107 -}
108 -
109 -src_configure() {
110 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
111 - econf \
112 - --with-bindir="${EPREFIX}"/usr/bin \
113 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
114 - --with-confdir="${EPREFIX}"/etc/${PN} \
115 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
116 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
117 - --with-logdir="${EPREFIX}"/var/log/${PN} \
118 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
119 - --without-privatelibdir \
120 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
121 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
122 - --with-nick-history=2000 \
123 - --with-sendq=3000000 \
124 - --with-permissions=0640 \
125 - --with-fd-setsize=1024 \
126 - --with-system-cares \
127 - --with-system-pcre2 \
128 - --with-system-tre \
129 - --enable-dynamic-linking \
130 - --enable-ssl="${EPREFIX}"/usr \
131 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
132 - $(use_enable prefixaq) \
133 - $(use_with showlistmodes) \
134 - $(use_with topicisnuhost) \
135 - $(use_with shunnotices) \
136 - $(use_with !operoverride no-operoverride) \
137 - $(use_with operoverride-verify) \
138 - $(use_with !usermod disableusermod) \
139 - $(use_with !extban-stacking disable-extendedban-stacking)
140 -}
141 -
142 -src_install() {
143 - keepdir /var/log/${PN}
144 - keepdir /var/lib/${PN}/tmp
145 -
146 - newbin src/ircd ${PN}
147 -
148 - (
149 - cd src/modules || die
150 - for subdir in $(find . -type d -print); do
151 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
152 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
153 - doexe "${subdir}"/*.so
154 - fi
155 - done
156 - )
157 -
158 - insinto /etc/${PN}
159 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
160 - # is redundant with app-misc/ca-certificates and examples will all
161 - # be in docs anyway.
162 - doins -r doc/conf/{aliases,help}
163 - doins doc/conf/*.conf
164 - newins doc/conf/examples/example.conf ${PN}.conf
165 - keepdir /etc/${PN}/ssl
166 -
167 - einstalldocs
168 -
169 - newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
170 - newconfd "${FILESDIR}"/${PN}.confd-r3 ${PN}
171 -
172 - # config should be read-only
173 - fperms -R 0640 /etc/${PN}
174 - fperms 0750 /etc/${PN}{,/aliases,/help}
175 - fperms 0750 /etc/${PN}/ssl
176 - # state is editable but not owned by unrealircd directly
177 - fperms 0770 /var/log/${PN}
178 - fperms 0770 /var/lib/${PN}{,/tmp}
179 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
180 -}
181 -
182 -pkg_postinst() {
183 - # Move docert call from src_install() to install_cert in pkg_postinst for
184 - # bug #201682
185 - if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
186 - if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
187 - ewarn "The location ${PN} looks for SSL certificates has changed"
188 - ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
189 - ewarn "Please move your existing certificates."
190 - else
191 - (
192 - umask 0037
193 - install_cert /etc/${PN}/ssl/server.cert
194 - chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
195 - ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
196 - )
197 - fi
198 - fi
199 -
200 - local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf
201 - # Fix up the default cloak keys.
202 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
203 - ebegin "Generating cloak-keys"
204 - local keys=(
205 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")
206 - )
207 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
208 - eend $?
209 -
210 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
211 - sed -i \
212 - -e '/cloak-keys/ {
213 -n
214 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
215 -n
216 -s/"and another one";/"'"${keys[1]}"'";/
217 -n
218 -s/"and another one";/"'"${keys[2]}"'";/
219 -}' \
220 - "${unrealircd_conf}"
221 - eend $?
222 - fi
223 -
224 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
225 - elog
226 - elog "You can also configure ${PN} start at boot with rc-update(1)."
227 - elog "It is recommended to run unrealircd as an unprivileged user."
228 - elog "The provided init.d script does this for you."
229 -}
230
231 diff --git a/net-irc/unrealircd/unrealircd-4.2.0.ebuild b/net-irc/unrealircd/unrealircd-4.2.0.ebuild
232 deleted file mode 100644
233 index 9f2dfabd381..00000000000
234 --- a/net-irc/unrealircd/unrealircd-4.2.0.ebuild
235 +++ /dev/null
236 @@ -1,185 +0,0 @@
237 -# Copyright 1999-2018 Gentoo Authors
238 -# Distributed under the terms of the GNU General Public License v2
239 -
240 -EAPI=6
241 -
242 -SSL_CERT_MANDATORY=1
243 -inherit eapi7-ver ssl-cert user
244 -
245 -DESCRIPTION="An advanced Internet Relay Chat daemon"
246 -HOMEPAGE="https://www.unrealircd.org/"
247 -SRC_URI="https://www.unrealircd.org/${PN}$(ver_cut 1)/${P}.tar.gz"
248 -
249 -LICENSE="GPL-2"
250 -SLOT="0"
251 -KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux"
252 -IUSE="class-nofakelag curl +extban-stacking libressl +operoverride operoverride-verify
253 - +prefixaq showlistmodes shunnotices topicisnuhost +usermod"
254 -
255 -RDEPEND="
256 - !libressl? ( dev-libs/openssl:0= )
257 - libressl? ( dev-libs/libressl:= )
258 - dev-libs/libpcre2
259 - dev-libs/tre
260 - >=net-dns/c-ares-1.7:=
261 - sys-libs/zlib
262 - curl? ( net-misc/curl[adns] )
263 -"
264 -DEPEND="${RDEPEND}
265 - virtual/pkgconfig
266 -"
267 -
268 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES{,.old},tao.of.irc,technical/,translations.txt} )
269 -
270 -pkg_pretend() {
271 - local v
272 - for v in ${REPLACING_VERSIONS}; do
273 - ver_test "${v}" -ge 4 && continue
274 - ewarn "The configuration file format has changed since ${v}."
275 - ewarn "Please be prepared to manually update them and visit:"
276 - ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"
277 - break
278 - done
279 -}
280 -
281 -pkg_setup() {
282 - enewuser unrealircd
283 -}
284 -
285 -src_prepare() {
286 - # QA check against bundled pkgs
287 - rm -r extras || die
288 -
289 - if use class-nofakelag; then
290 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
291 - fi
292 -
293 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
294 - # that to look for ca-certificates-provided file instead. %s is
295 - # CONFDIR. #618066
296 - sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die
297 -
298 - eapply_user
299 -}
300 -
301 -src_configure() {
302 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
303 - econf \
304 - --with-bindir="${EPREFIX}"/usr/bin \
305 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
306 - --with-confdir="${EPREFIX}"/etc/${PN} \
307 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
308 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
309 - --with-logdir="${EPREFIX}"/var/log/${PN} \
310 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
311 - --without-privatelibdir \
312 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
313 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
314 - --with-nick-history=2000 \
315 - --with-sendq=3000000 \
316 - --with-permissions=0640 \
317 - --with-fd-setsize=1024 \
318 - --with-system-cares \
319 - --with-system-pcre2 \
320 - --with-system-tre \
321 - --enable-dynamic-linking \
322 - --enable-ssl="${EPREFIX}"/usr \
323 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
324 - $(use_enable prefixaq) \
325 - $(use_with showlistmodes) \
326 - $(use_with topicisnuhost) \
327 - $(use_with shunnotices) \
328 - $(use_with !operoverride no-operoverride) \
329 - $(use_with operoverride-verify) \
330 - $(use_with !usermod disableusermod) \
331 - $(use_with !extban-stacking disable-extendedban-stacking)
332 -}
333 -
334 -src_install() {
335 - keepdir /var/log/${PN}
336 - keepdir /var/lib/${PN}/tmp
337 -
338 - newbin src/ircd ${PN}
339 -
340 - (
341 - cd src/modules || die
342 - for subdir in $(find . -type d -print); do
343 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
344 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
345 - doexe "${subdir}"/*.so
346 - fi
347 - done
348 - )
349 -
350 - insinto /etc/${PN}
351 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
352 - # is redundant with app-misc/ca-certificates and examples will all
353 - # be in docs anyway.
354 - doins -r doc/conf/{aliases,help}
355 - doins doc/conf/*.conf
356 - newins doc/conf/examples/example.conf ${PN}.conf
357 - keepdir /etc/${PN}/ssl
358 -
359 - einstalldocs
360 -
361 - newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
362 - newconfd "${FILESDIR}"/${PN}.confd-r3 ${PN}
363 -
364 - # config should be read-only
365 - fperms -R 0640 /etc/${PN}
366 - fperms 0750 /etc/${PN}{,/aliases,/help}
367 - fperms 0750 /etc/${PN}/ssl
368 - # state is editable but not owned by unrealircd directly
369 - fperms 0770 /var/log/${PN}
370 - fperms 0770 /var/lib/${PN}{,/tmp}
371 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
372 -}
373 -
374 -pkg_postinst() {
375 - # Move docert call from src_install() to install_cert in pkg_postinst for
376 - # bug #201682
377 - if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
378 - if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
379 - ewarn "The location ${PN} looks for SSL certificates has changed"
380 - ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
381 - ewarn "Please move your existing certificates."
382 - else
383 - (
384 - umask 0037
385 - install_cert /etc/${PN}/ssl/server.cert
386 - chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
387 - ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
388 - )
389 - fi
390 - fi
391 -
392 - local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf
393 - # Fix up the default cloak keys.
394 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
395 - ebegin "Generating cloak-keys"
396 - local keys=(
397 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")
398 - )
399 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
400 - eend $?
401 -
402 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
403 - sed -i \
404 - -e '/cloak-keys/ {
405 -n
406 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
407 -n
408 -s/"and another one";/"'"${keys[1]}"'";/
409 -n
410 -s/"and another one";/"'"${keys[2]}"'";/
411 -}' \
412 - "${unrealircd_conf}"
413 - eend $?
414 - fi
415 -
416 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
417 - elog
418 - elog "You can also configure ${PN} start at boot with rc-update(1)."
419 - elog "It is recommended to run unrealircd as an unprivileged user."
420 - elog "The provided init.d script does this for you."
421 -}