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/, net-irc/unrealircd/files/
Date: Sat, 17 Nov 2018 06:51:18
Message-Id: 1542437457.1742110b170945178f7b34179efddb315ed76e2d.kensington@gentoo
1 commit: 1742110b170945178f7b34179efddb315ed76e2d
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 17 06:50:29 2018 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 17 06:50:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1742110b
7
8 net-irc/unrealircd: remove old
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 net-irc/unrealircd/Manifest | 3 -
14 .../unrealircd-4.0.12-without-privatelibdir.patch | 70 ------
15 net-irc/unrealircd/files/unrealircd.confd-r1 | 31 ---
16 net-irc/unrealircd/files/unrealircd.confd-r2 | 35 ---
17 net-irc/unrealircd/files/unrealircd.initd | 43 ----
18 net-irc/unrealircd/files/unrealircd.initd-r1 | 43 ----
19 net-irc/unrealircd/unrealircd-3.2.10.7.ebuild | 212 -----------------
20 net-irc/unrealircd/unrealircd-4.0.12.ebuild | 249 --------------------
21 net-irc/unrealircd/unrealircd-4.0.17.ebuild | 250 ---------------------
22 net-irc/unrealircd/unrealircd-4.0.18.ebuild | 184 ---------------
23 10 files changed, 1120 deletions(-)
24
25 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest
26 index dc9f107acb1..79557586c05 100644
27 --- a/net-irc/unrealircd/Manifest
28 +++ b/net-irc/unrealircd/Manifest
29 @@ -1,4 +1 @@
30 -DIST Unreal3.2.10.7.tar.gz 3539026 BLAKE2B a61fcd7cd4329c6b0991219a331482ca84aecfa37638762aa1c20166ab2ce0d4facb2a51b2010a9dd2fbc32278de91acaf8fd209ce5b8a2d4232dce154880904 SHA512 7d5fd4729fdde56c6b3e38a93bc365857b5b4faf58cb39e844b43e87872623abc7527025247eeda8c8535576e2b1b8ef14d482c964ce940cafb5de77cc9e1667
31 -DIST unrealircd-4.0.12.tar.gz 5521686 BLAKE2B d55973387f58cabd80156e1113491adec623a56d83e0043dcd89457b00cc6519ab37459eb2c0a10176b5d5bb1518a81fa288bdea43f0e4b9303f629103c5ea1d SHA512 3df18e07226673d76977771f91f0f6c2129955523f1330519e5cada7989c8987382d78770c95837d520737796cf4fa84f1de3eb0f08ef017c5c56f775cf45420
32 -DIST unrealircd-4.0.17.tar.gz 5325068 BLAKE2B d6d1c05234ee5921e65e0a7a4223152bd729878a5d8b40dfb4b1b2d066a891564b8cd66097e03a8a47f84878aeeadb7356ff222dd4d8efece69a9f1df5fe3542 SHA512 e02684ba7b61747f6d0edb8105c3d9cb1f383c79b9ff563b374fefe1ed5224c168d8f9e3e482a122acd7a2af12ee8595812e4c46654e651cde7115656fb3d36e
33 DIST unrealircd-4.0.18.tar.gz 5317767 BLAKE2B cb71144ce0fce7f719b3081f2da9f85c997dbc372492dfa57354eb51aee122f0e42fdba9e0aca997cd118ed9c75fb6f197ca13e371931fe45709d6b64651336d SHA512 b9541ea83c24963187931938eadbba746175ec1d9449631e799df038bb062625e4b508c2d0d4e9e69a6401158cc23a855cbfbda3d28a4b971fbb249f074d26d3
34
35 diff --git a/net-irc/unrealircd/files/unrealircd-4.0.12-without-privatelibdir.patch b/net-irc/unrealircd/files/unrealircd-4.0.12-without-privatelibdir.patch
36 deleted file mode 100644
37 index 03b7a7a0eb2..00000000000
38 --- a/net-irc/unrealircd/files/unrealircd-4.0.12-without-privatelibdir.patch
39 +++ /dev/null
40 @@ -1,70 +0,0 @@
41 -From 2b94733cbe0161b58084a2e7a26985e6d321e1c8 Mon Sep 17 00:00:00 2001
42 -From: Nathan Phillip Brink <binki@g.o>
43 -Date: Thu, 6 Jul 2017 06:04:18 +0000
44 -Subject: [PATCH] Support --without-privatelibdir for packagers.
45 -
46 ----
47 - configure.ac | 22 +++++++++++++---------
48 - 1 file changed, 13 insertions(+), 9 deletions(-)
49 -
50 -diff --git a/configure.ac b/configure.ac
51 -index 78360df..aa49df5 100644
52 ---- a/configure.ac
53 -+++ b/configure.ac
54 -@@ -586,15 +586,19 @@ AC_ARG_WITH(pidfile, [AS_HELP_STRING([--with-pidfile=path],[Specify the path of
55 - [AC_DEFINE_UNQUOTED([PIDFILE], ["$HOME/unrealircd/data/unrealircd.pid"], [Define the path of the pid file])
56 - PIDFILE="$HOME/unrealircd/data/unrealircd.pid"])
57 -
58 --LDFLAGS_PRIVATELIBS=""
59 --AC_ARG_WITH(privatelibdir, [AS_HELP_STRING([--with-privatelibdir=path],[Specify the directory where private libraries are stored])],
60 -- [AC_DEFINE_UNQUOTED([PRIVATELIBDIR], ["$withval"], [Define the location of private libraries])
61 -- PRIVATELIBDIR="$withval"
62 -- LDFLAGS_PRIVATELIBS="-Wl,-rpath=$PRIVATELIBDIR"
63 -- LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
64 -- export LDFLAGS],
65 -- [AC_DEFINE_UNQUOTED([PRIVATELIBDIR], ["$HOME/unrealircd/lib"], [Define the location of private libraries])
66 -- PRIVATELIBDIR="$HOME/unrealircd/lib"
67 -+dnl Ensure that this “feature” can be disabled as it makes it harder to package unrealircd.
68 -+dnl Users have always been able to specify “./configure LDFLAGS=-Wl,-rpath,/path/to/blah”—binki
69 -+AC_ARG_WITH(privatelibdir, [AS_HELP_STRING([--with-privatelibdir=path],[Specify the directory where private libraries are stored. Disable when building a package for a distro])],
70 -+ [],
71 -+ [with_privatelibdir="yes"])
72 -+AS_IF([test "x$with_privatelibdir" = "xno"],
73 -+ [PRIVATELIBDIR=],
74 -+ [test "x$with_privatelibdir" = "xyes"],
75 -+ [PRIVATELIBDIR="$HOME/unrealircd/lib"],
76 -+ [PRIVATELIBDIR="$with_privatelibdir"])
77 -+AS_IF([test "x$PRIVATELIBDIR" = "x"],
78 -+ [LDFLAGS_PRIVATELIBS=""],
79 -+ [AC_DEFINE_UNQUOTED([PRIVATELIBDIR], ["$PRIVATELIBDIR"], [Define the location of private libraries])
80 - LDFLAGS_PRIVATELIBS="-Wl,-rpath=$PRIVATELIBDIR"
81 - LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
82 - export LDFLAGS])
83 ---
84 -2.4.6
85 -
86 -From 6591e6bcee0858b7cddf6fcfee7dbe04ae511169 Mon Sep 17 00:00:00 2001
87 -From: Nathan Phillip Brink <binki@g.o>
88 -Date: Thu, 6 Jul 2017 06:43:20 +0000
89 -Subject: [PATCH] Do not try to delete libcares when not using PRIVATELIBDIR.
90 -
91 ----
92 - configure.ac | 2 +-
93 - 1 file changed, 1 insertion(+), 1 deletion(-)
94 -
95 -diff --git a/configure.ac b/configure.ac
96 -index aa49df5..874d58f 100644
97 ---- a/configure.ac
98 -+++ b/configure.ac
99 -@@ -786,7 +786,7 @@ dnl Use system c-ares when available, unless --without-system-cares.
100 - has_system_cares="no"
101 - AS_IF([test "x$with_system_cares" = "xyes"],[
102 - PKG_CHECK_MODULES([CARES], libcares >= 1.6.0,[has_system_cares=yes
103 --rm -f "$PRIVATELIBDIR/"libcares*],[has_system_cares=no])])
104 -+AS_IF([test "x$PRIVATELIBDIR" != "x"], [rm -f "$PRIVATELIBDIR/"libcares*])],[has_system_cares=no])])
105 -
106 - AS_IF([test "$has_system_cares" = "no"], [
107 - dnl REMEMBER TO CHANGE WITH A NEW C-ARES RELEASE!
108 ---
109 -2.4.6
110 -
111
112 diff --git a/net-irc/unrealircd/files/unrealircd.confd-r1 b/net-irc/unrealircd/files/unrealircd.confd-r1
113 deleted file mode 100644
114 index 9b4f7b632c2..00000000000
115 --- a/net-irc/unrealircd/files/unrealircd.confd-r1
116 +++ /dev/null
117 @@ -1,31 +0,0 @@
118 -# Copyright 1999-2011 Gentoo Foundation
119 -# Distributed under the terms of the GNU General Public License v2
120 -
121 -# user to run unrealircd as
122 -UNREALIRCD_USER="unrealircd"
123 -
124 -# Which configuration file to load instead of unrealircd.conf. If you
125 -# want to run multiple instances of unrealircd, you must edit
126 -# files::pidfile to match UNREALIRCD_PIDFILE. You should also ensure
127 -# that files::tunefile is different for each unrealircd instance. See
128 -# http://unrealircd.org/docs.php#filesblock.
129 -#
130 -# To support multiple instances of unrealircd, you may create symlinks
131 -# in /etc/init.d pointing to /etc/init.d/unrealircd. It is recommended
132 -# that the scheme unrealircd.${instance_name} be used. For each
133 -# instance, you may make a copy of this file with the appropriate name
134 -# to override default options specific to that instance.
135 -UNREALIRCD_CONF="/etc/unrealircd/${SVCNAME}.conf"
136 -
137 -# The path where unrealircd is configured to create its pidfile.
138 -UNREALIRCD_PIDFILE="/var/run/unrealircd/${SVCNAME#unreal}.pid"
139 -
140 -# extra options to pass to unrealircd ...
141 -# You should not specify the -f option here; use
142 -# UNREALIRCD_CONF instead.
143 -#
144 -# [-h servername]
145 -# [-p portnumber]
146 -# [-x loglevel]
147 -# [-t] (to enable debug output)
148 -UNREALIRCD_OPTS=""
149
150 diff --git a/net-irc/unrealircd/files/unrealircd.confd-r2 b/net-irc/unrealircd/files/unrealircd.confd-r2
151 deleted file mode 100644
152 index ac7db3dbf00..00000000000
153 --- a/net-irc/unrealircd/files/unrealircd.confd-r2
154 +++ /dev/null
155 @@ -1,35 +0,0 @@
156 -# Copyright 1999-2016 Gentoo Foundation
157 -# Distributed under the terms of the GNU General Public License v2
158 -
159 -# user to run unrealircd as
160 -UNREALIRCD_USER="unrealircd"
161 -
162 -# Which configuration file to load instead of unrealircd.conf. If you
163 -# want to run multiple instances of unrealircd, you must edit
164 -# files::pidfile to match UNREALIRCD_PIDFILE. You should also ensure
165 -# that files::tunefile is different for each unrealircd instance. See
166 -# https://www.unrealircd.org/docs/Configuration#Files_block
167 -#
168 -# To support multiple instances of unrealircd, you may create symlinks
169 -# in /etc/init.d pointing to /etc/init.d/unrealircd. It is recommended
170 -# that the scheme unrealircd.${instance_name} be used. For each
171 -# instance, you may make a copy of this file with the appropriate name
172 -# to override default options specific to that instance.
173 -UNREALIRCD_CONF="/etc/unrealircd/${SVCNAME}.conf"
174 -
175 -# The path where unrealircd is configured to create its pidfile.
176 -UNREALIRCD_PIDFILE="/var/run/unrealircd/${SVCNAME#unreal}.pid"
177 -
178 -# extra options to pass to unrealircd ...
179 -# You should not specify the -f option here; use
180 -# UNREALIRCD_CONF instead.
181 -#
182 -# [-h servername]
183 -# [-p portnumber]
184 -# [-x loglevel]
185 -# [-t] (to enable debug output)
186 -UNREALIRCD_OPTS=""
187 -
188 -# Extra flags to pass to start-stop-daemon. When initially
189 -# debugging, removing --quiet may help.
190 -UNREALIRCD_SSD_OPTS="--quiet"
191
192 diff --git a/net-irc/unrealircd/files/unrealircd.initd b/net-irc/unrealircd/files/unrealircd.initd
193 deleted file mode 100644
194 index cc4cd50e49d..00000000000
195 --- a/net-irc/unrealircd/files/unrealircd.initd
196 +++ /dev/null
197 @@ -1,43 +0,0 @@
198 -#!/sbin/openrc-run
199 -# Copyright 1999-2013 Gentoo Foundation
200 -# Distributed under the terms of the GNU General Public License v2
201 -
202 -extra_started_commands="reload"
203 -
204 -# Defaults
205 -: ${UNREALIRCD_USER:=unrealircd}
206 -: ${UNREALIRCD_CONF:=/etc/unrealircd/${SVCNAME}.conf}
207 -: ${UNREALIRCD_PIDFILE:=/var/run/unrealircd/${SVCNAME#unreal}.pid}
208 -
209 -depend() {
210 - use dns net
211 - provide ircd
212 -}
213 -
214 -start() {
215 - UNREALIRCD_PIDFILEDIR=${UNREALIRCD_PIDFILE%/*}
216 - if ! [ -d "${UNREALIRCD_PIDFILEDIR}" ]; then
217 - ebegin "Creating ${UNREALIRCD_PIDFILEDIR} for ${SVCNAME}"
218 - mkdir "${UNREALIRCD_PIDFILEDIR}" \
219 - && chown :unrealircd "${UNREALIRCD_PIDFILEDIR}" \
220 - && chmod 770 "${UNREALIRCD_PIDFILEDIR}"
221 - eend $?
222 - fi
223 -
224 - ebegin "Starting ${SVCNAME}"
225 - start-stop-daemon --start --quiet --exec /usr/bin/unrealircd \
226 - --user ${UNREALIRCD_USER} --pidfile "${UNREALIRCD_PIDFILE}" -- -f "${UNREALIRCD_CONF}" ${UNREALIRCD_OPTS}
227 - eend $?
228 -}
229 -
230 -stop() {
231 - ebegin "Stopping ${SVCNAME}"
232 - start-stop-daemon --stop --quiet --pidfile "${UNREALIRCD_PIDFILE}"
233 - eend $?
234 -}
235 -
236 -reload() {
237 - ebegin "Reloading ${SVCNAME}"
238 - start-stop-daemon --signal HUP --quiet --pidfile "${UNREALIRCD_PIDFILE}"
239 - eend $?
240 -}
241
242 diff --git a/net-irc/unrealircd/files/unrealircd.initd-r1 b/net-irc/unrealircd/files/unrealircd.initd-r1
243 deleted file mode 100644
244 index 0c54752779f..00000000000
245 --- a/net-irc/unrealircd/files/unrealircd.initd-r1
246 +++ /dev/null
247 @@ -1,43 +0,0 @@
248 -#!/sbin/openrc-run
249 -# Copyright 1999-2016 Gentoo Foundation
250 -# Distributed under the terms of the GNU General Public License v2
251 -
252 -extra_started_commands="reload"
253 -
254 -# Defaults
255 -: ${UNREALIRCD_USER:=unrealircd}
256 -: ${UNREALIRCD_CONF:=/etc/unrealircd/${SVCNAME}.conf}
257 -: ${UNREALIRCD_PIDFILE:=/run/unrealircd/${SVCNAME#unreal}.pid}
258 -
259 -depend() {
260 - use dns net
261 - provide ircd
262 -}
263 -
264 -start() {
265 - UNREALIRCD_PIDFILEDIR=${UNREALIRCD_PIDFILE%/*}
266 - if ! [ -d "${UNREALIRCD_PIDFILEDIR}" ]; then
267 - ebegin "Creating ${UNREALIRCD_PIDFILEDIR} for ${SVCNAME}"
268 - mkdir "${UNREALIRCD_PIDFILEDIR}" \
269 - && chown :unrealircd "${UNREALIRCD_PIDFILEDIR}" \
270 - && chmod 770 "${UNREALIRCD_PIDFILEDIR}"
271 - eend $?
272 - fi
273 -
274 - ebegin "Starting ${SVCNAME}"
275 - start-stop-daemon --start ${UNREALIRCD_SSD_OPTS} --exec /usr/bin/unrealircd \
276 - --user ${UNREALIRCD_USER} --pidfile "${UNREALIRCD_PIDFILE}" -- -f "${UNREALIRCD_CONF}" ${UNREALIRCD_OPTS}
277 - eend $?
278 -}
279 -
280 -stop() {
281 - ebegin "Stopping ${SVCNAME}"
282 - start-stop-daemon --stop ${UNREALIRCD_SSD_OPTS} --pidfile "${UNREALIRCD_PIDFILE}"
283 - eend $?
284 -}
285 -
286 -reload() {
287 - ebegin "Reloading ${SVCNAME}"
288 - start-stop-daemon --signal HUP ${UNREALIRCD_SSD_OPTS} --pidfile "${UNREALIRCD_PIDFILE}"
289 - eend $?
290 -}
291
292 diff --git a/net-irc/unrealircd/unrealircd-3.2.10.7.ebuild b/net-irc/unrealircd/unrealircd-3.2.10.7.ebuild
293 deleted file mode 100644
294 index e63246f588c..00000000000
295 --- a/net-irc/unrealircd/unrealircd-3.2.10.7.ebuild
296 +++ /dev/null
297 @@ -1,212 +0,0 @@
298 -# Copyright 1999-2016 Gentoo Foundation
299 -# Distributed under the terms of the GNU General Public License v2
300 -
301 -EAPI=4
302 -
303 -inherit eutils ssl-cert versionator multilib user
304 -
305 -MY_P=Unreal${PV/_/-}
306 -
307 -DESCRIPTION="An advanced Internet Relay Chat daemon"
308 -HOMEPAGE="http://www.unrealircd.com/"
309 -SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz"
310 -
311 -SLOT="0"
312 -LICENSE="GPL-2"
313 -KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux"
314 -IUSE="class-nofakelag curl ipv6 +extban-stacking +operoverride operoverride-verify +prefixaq
315 - showlistmodes shunnotices ssl topicisnuhost +usermod zlib"
316 -
317 -RDEPEND="ssl? ( dev-libs/openssl )
318 - zlib? ( sys-libs/zlib )
319 - curl? ( net-misc/curl[adns] )
320 - dev-libs/tre
321 - >=net-dns/c-ares-1.7"
322 -DEPEND="${RDEPEND}
323 - >=sys-apps/sed-4
324 - virtual/pkgconfig"
325 -
326 -S=${WORKDIR}/Unreal${PV}
327 -
328 -pkg_setup() {
329 - enewuser unrealircd
330 -}
331 -
332 -src_prepare() {
333 - # QA check against bundled pkgs
334 - rm extras/*.gz || die
335 -
336 - sed -i \
337 - -e "s:ircd\.pid:${EPREFIX}/var/run/unrealircd/ircd.pid:" \
338 - -e "s:ircd\.log:${EPREFIX}/var/log/unrealircd/ircd.log:" \
339 - -e "s:debug\.log:${EPREFIX}/var/log/unrealircd/debug.log:" \
340 - -e "s:ircd\.tune:${EPREFIX}/var/lib/unrealircd/ircd.tune:" \
341 - include/config.h \
342 - || die "sed failed"
343 -
344 - if use class-nofakelag; then
345 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
346 - fi
347 -}
348 -
349 -src_configure() {
350 - econf \
351 - --with-listen=5 \
352 - --with-dpath="${EPREFIX}"/etc/unrealircd \
353 - --with-spath="${EPREFIX}"/usr/bin/unrealircd \
354 - --with-nick-history=2000 \
355 - --with-sendq=3000000 \
356 - --with-bufferpool=18 \
357 - --with-permissions=0600 \
358 - --with-fd-setsize=1024 \
359 - --with-system-cares \
360 - --with-system-tre \
361 - --enable-dynamic-linking \
362 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
363 - $(use_enable ipv6 inet6) \
364 - $(use_enable prefixaq) \
365 - $(use_enable ssl ssl "${EPREFIX}"/usr) \
366 - $(use_enable zlib ziplinks "${EPREFIX}"/usr) \
367 - $(use_with showlistmodes) \
368 - $(use_with topicisnuhost) \
369 - $(use_with shunnotices) \
370 - $(use_with !operoverride no-operoverride) \
371 - $(use_with operoverride-verify) \
372 - $(use_with !usermod disableusermod) \
373 - $(use_with !extban-stacking disable-extendedban-stacking)
374 -}
375 -
376 -src_install() {
377 - keepdir /var/{lib,log}/unrealircd
378 -
379 - newbin src/ircd unrealircd
380 -
381 - exeinto /usr/$(get_libdir)/unrealircd/modules
382 - doexe src/modules/*.so
383 -
384 - dodir /etc/unrealircd
385 - dosym /var/lib/unrealircd /etc/unrealircd/tmp
386 -
387 - insinto /etc/unrealircd
388 - doins {badwords.*,help,spamfilter,dccallow}.conf
389 - newins doc/example.conf unrealircd.conf
390 -
391 - insinto /etc/unrealircd/aliases
392 - doins aliases/*.conf
393 -
394 - local so_suffix=so
395 - [[ ${CHOST} == -*mingw* ]] && so_suffix=dll
396 - sed -i \
397 - -e s:src/modules:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \
398 - -e '/loadmodule.*\.'${so_suffix}'/s;^//;;' \
399 - -e s:ircd\\.log:"${EPREFIX}"/var/log/unrealircd/ircd.log: \
400 - "${ED}"/etc/unrealircd/unrealircd.conf \
401 - || die
402 -
403 - dodoc \
404 - Changes Donation Unreal.nfo \
405 - ircdcron/{ircd.cron,ircdchk} \
406 - || die "dodoc failed"
407 - dohtml doc/*.html
408 -
409 - newinitd "${FILESDIR}"/unrealircd.initd unrealircd
410 - newconfd "${FILESDIR}"/unrealircd.confd-r1 unrealircd
411 -
412 - # config should be read-only
413 - fperms -R 0640 /etc/unrealircd{,/aliases}
414 - fperms 0750 /etc/unrealircd{,/aliases}
415 - # state is editable but not owned by unrealircd directly
416 - fperms 0770 /var/{lib,log}/unrealircd
417 - fowners -R root:unrealircd /{etc,var/{lib,log}}/unrealircd
418 -}
419 -
420 -pkg_preinst() {
421 - # Must pre-create directories; otherwise their permissions are lost
422 - # on installation.
423 -
424 - # Usage: _unrealircd_dir_permissions <user> <group> <mode> <dir>[, <dir>…]
425 - #
426 - # Ensure that directories are created with the correct permissions
427 - # before portage tries to merge them to the filesystem because,
428 - # otherwise, those directories are installed world-readable.
429 - #
430 - # If this is a first-time install, create those directories with
431 - # correct permissions before installing. Otherwise, update
432 - # permissions—but only if we are replacing an unrealircd ebuild at
433 - # least as old as net-irc/unrealircd-3.2.10. Portage handles normal
434 - # file permissions correctly, so no need for recursive
435 - # chmoding/chowning.
436 - _unrealircd_dir_permissions() {
437 - local user=${1} group=${2} mode=${3} dir v
438 - shift 3
439 - while dir=${1} && shift; do
440 - if [[ ! -d "${EROOT}${dir}" ]]; then
441 - ebegin "Creating ${EROOT}${dir} with correct permissions"
442 - install -d -m "${mode}" -o "${user}" -g "${group}" "${EROOT}${dir}" || die
443 - eend ${?}
444 - elif ! [[ ${REPLACING_VERSIONS} ]] || for v in ${REPLACING_VERSIONS}; do
445 - # If 3.2.10 ≤ ${REPLACING_VERSIONS}, then we update
446 - # existing permissions.
447 - version_is_at_least "${v}" 3.2.10 && break
448 - done; then
449 - ebegin "Correcting permissions of ${EROOT}${dir} left by ${CATEGORY}/${PN}-${v}"
450 - chmod "${mode}" "${EROOT}${dir}" \
451 - && chown ${user}:${group} "${EROOT}${dir}" \
452 - || die "Unable to correct permissions of ${EROOT}${dir}"
453 - eend ${?}
454 - fi
455 - done
456 - }
457 -
458 - # unrealircd only needs to be able to read files in /etc/unrealircd.
459 - _unrealircd_dir_permissions root unrealircd 0750 etc/unrealircd{,/aliases}
460 -
461 - # unrealircd needs to be able to create files in /var/lib/unrealircd
462 - # and /var/log/unrealircd.
463 - _unrealircd_dir_permissions root unrealircd 0770 var/{lib,log}/unrealircd
464 -}
465 -
466 -pkg_postinst() {
467 - # Move docert call from scr_install() to install_cert in pkg_postinst for
468 - # bug #201682
469 - if use ssl ; then
470 - if [[ ! -f "${EROOT}"/etc/unrealircd/server.cert.key ]]; then
471 - install_cert /etc/unrealircd/server.cert
472 - chown unrealircd "${EROOT}"/etc/unrealircd/server.cert.*
473 - chmod 0640 "${EROOT}"/etc/unrealircd/server.cert.*
474 - ln -snf server.cert.key "${EROOT}"/etc/unrealircd/server.key.pem
475 - fi
476 - fi
477 -
478 - local unrealircd_conf="${EROOT}"/etc/unrealircd/unrealircd.conf
479 - # Fix up the default cloak keys.
480 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
481 - ebegin "Generating cloak-keys"
482 - local keys=(
483 - $(unrealircd -k 2>&1 | tail -n 3)
484 - )
485 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
486 - eend $?
487 -
488 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
489 - sed -i \
490 - -e '/cloak-keys/ {
491 -n
492 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
493 -n
494 -s/"and another one";/"'"${keys[1]}"'";/
495 -n
496 -s/"and another one";/"'"${keys[2]}"'";/
497 -}' \
498 - "${unrealircd_conf}"
499 - eend $?
500 - fi
501 -
502 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
503 - elog
504 - elog "You can find example cron scripts here:"
505 - elog " /usr/share/doc/${PF}/ircd.cron.gz"
506 - elog " /usr/share/doc/${PF}/ircdchk.gz"
507 - elog
508 - elog "You can also use /etc/init.d/unrealircd to start at boot"
509 -}
510
511 diff --git a/net-irc/unrealircd/unrealircd-4.0.12.ebuild b/net-irc/unrealircd/unrealircd-4.0.12.ebuild
512 deleted file mode 100644
513 index d5cab32b8f7..00000000000
514 --- a/net-irc/unrealircd/unrealircd-4.0.12.ebuild
515 +++ /dev/null
516 @@ -1,249 +0,0 @@
517 -# Copyright 1999-2017 Gentoo Foundation
518 -# Distributed under the terms of the GNU General Public License v2
519 -
520 -EAPI=6
521 -
522 -SSL_CERT_MANDATORY=1
523 -inherit autotools eutils ssl-cert versionator multilib user
524 -
525 -DESCRIPTION="An advanced Internet Relay Chat daemon"
526 -HOMEPAGE="https://www.unrealircd.org/"
527 -SRC_URI="https://www.unrealircd.org/${PN}$(get_version_component_range 1)/${P}.tar.gz"
528 -
529 -SLOT="0"
530 -LICENSE="GPL-2"
531 -KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux"
532 -IUSE="class-nofakelag curl +extban-stacking +operoverride operoverride-verify +prefixaq
533 - showlistmodes shunnotices topicisnuhost +usermod"
534 -
535 -RDEPEND="dev-libs/openssl:=
536 - curl? ( net-misc/curl[adns] )
537 - dev-libs/libpcre2
538 - dev-libs/tre
539 - >=net-dns/c-ares-1.7"
540 -DEPEND="${RDEPEND}
541 - virtual/pkgconfig"
542 -
543 -pkg_pretend() {
544 - local v
545 - for v in ${REPLACING_VERSIONS}; do
546 - version_is_at_least 4 "${v}" && continue
547 - ewarn "The configuration file format has changed since ${v}."
548 - ewarn "Please be prepared to manually update them and visit:"
549 - ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"
550 - break
551 - done
552 -}
553 -
554 -pkg_setup() {
555 - enewuser unrealircd
556 -}
557 -
558 -src_prepare() {
559 - # QA check against bundled pkgs
560 - rm -r extras || die
561 -
562 - if use class-nofakelag; then
563 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
564 - fi
565 -
566 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
567 - # that to look for ca-certificates-provided file instead. %s is
568 - # CONFDIR. #618066
569 - sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die
570 -
571 - epatch "${FILESDIR}"/${P}-without-privatelibdir.patch
572 - eautoreconf -I autoconf/m4
573 -
574 - eapply_user
575 -}
576 -
577 -src_configure() {
578 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
579 - econf \
580 - --with-bindir="${EPREFIX}"/usr/bin \
581 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
582 - --with-confdir="${EPREFIX}"/etc/${PN} \
583 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
584 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
585 - --with-logdir="${EPREFIX}"/var/log/${PN} \
586 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
587 - --without-privatelibdir \
588 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
589 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
590 - --with-nick-history=2000 \
591 - --with-sendq=3000000 \
592 - --with-permissions=0640 \
593 - --with-fd-setsize=1024 \
594 - --with-system-cares \
595 - --with-system-pcre2 \
596 - --with-system-tre \
597 - --enable-dynamic-linking \
598 - --enable-ssl="${EPREFIX}"/usr \
599 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
600 - $(use_enable prefixaq) \
601 - $(use_with showlistmodes) \
602 - $(use_with topicisnuhost) \
603 - $(use_with shunnotices) \
604 - $(use_with !operoverride no-operoverride) \
605 - $(use_with operoverride-verify) \
606 - $(use_with !usermod disableusermod) \
607 - $(use_with !extban-stacking disable-extendedban-stacking)
608 -}
609 -
610 -src_install() {
611 - keepdir /var/log/${PN}
612 - keepdir /var/lib/${PN}/tmp
613 -
614 - newbin src/ircd ${PN}
615 -
616 - (
617 - cd src/modules || die
618 - for subdir in $(find . -type d -print); do
619 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
620 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
621 - doexe "${subdir}"/*.so
622 - fi
623 - done
624 - )
625 -
626 - insinto /etc/${PN}
627 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
628 - # is redundant with app-misc/ca-certificates and examples will all
629 - # be in docs anyway.
630 - doins -r doc/conf/{aliases,help}
631 - doins doc/conf/*.conf
632 - newins doc/conf/examples/example.conf ${PN}.conf
633 - keepdir /etc/${PN}/ssl
634 -
635 - dodoc \
636 - doc/{Changes.old,Changes.older,RELEASE-NOTES} \
637 - doc/{Donation,translations.txt}
638 -
639 - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
640 - newconfd "${FILESDIR}"/${PN}.confd-r2 ${PN}
641 -
642 - # config should be read-only
643 - fperms -R 0640 /etc/${PN}
644 - fperms 0750 /etc/${PN}{,/aliases,/help}
645 - fperms 0750 /etc/${PN}/ssl
646 - # state is editable but not owned by unrealircd directly
647 - fperms 0770 /var/log/${PN}
648 - fperms 0770 /var/lib/${PN}{,/tmp}
649 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
650 -}
651 -
652 -pkg_preinst() {
653 - # Must pre-create directories; otherwise their permissions are lost
654 - # on installation.
655 -
656 - # Usage: _unrealircd_dir_permissions <user> <group> <mode> <dir>[, <dir>…]
657 - #
658 - # Ensure that directories are created with the correct permissions
659 - # before portage tries to merge them to the filesystem because,
660 - # otherwise, those directories are installed world-readable.
661 - #
662 - # If this is a first-time install, create those directories with
663 - # correct permissions before installing. Otherwise, update
664 - # permissions—but only if we are replacing an unrealircd ebuild at
665 - # least as old as net-irc/unrealircd-3.2.10. Portage handles normal
666 - # file permissions correctly, so no need for recursive
667 - # chmoding/chowning.
668 - _unrealircd_dir_permissions() {
669 - local user=${1} group=${2} mode=${3} dir v
670 - shift 3
671 - while dir=${1} && shift; do
672 - if [[ ! -d "${EROOT}${dir}" ]]; then
673 - ebegin "Creating ""${EROOT}${dir}"" with correct permissions"
674 - install -d -m "${mode}" -o "${user}" -g "${group}" "${EROOT}${dir}" || die
675 - eend ${?}
676 - elif ! [[ ${REPLACING_VERSIONS} ]] || for v in ${REPLACING_VERSIONS}; do
677 - # If 3.2.10 ≤ ${REPLACING_VERSIONS}, then we update
678 - # existing permissions.
679 - version_is_at_least "${v}" 3.2.10 && break
680 - done; then
681 - ebegin "Correcting permissions of ""${EROOT}${dir}"" left by ${CATEGORY}/${PN}-${v}"
682 - chmod "${mode}" "${EROOT}${dir}" \
683 - && chown ${user}:${group} "${EROOT}${dir}" \
684 - || die "Unable to correct permissions of ${EROOT}${dir}"
685 - eend ${?}
686 - fi
687 - done
688 - }
689 -
690 - # unrealircd only needs to be able to read files in /etc/unrealircd.
691 - _unrealircd_dir_permissions root unrealircd 0750 etc/${PN}{,/aliases}
692 -
693 - # unrealircd needs to be able to create files in /var/lib/unrealircd
694 - # and /var/log/unrealircd.
695 - _unrealircd_dir_permissions root unrealircd 0770 var/{lib,log}/${PN}
696 -}
697 -
698 -pkg_postinst() {
699 - # Move docert call from src_install() to install_cert in pkg_postinst for
700 - # bug #201682
701 - if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
702 - if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
703 - ewarn "The location ${PN} looks for SSL certificates has changed"
704 - ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
705 - ewarn "Please move your existing certificates."
706 - else
707 - (
708 - umask 0037
709 - install_cert /etc/${PN}/ssl/server.cert
710 - chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
711 - ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
712 - )
713 - fi
714 - fi
715 -
716 - local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf
717 - # Fix up the default cloak keys.
718 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
719 - ebegin "Generating cloak-keys"
720 - local keys=(
721 - $(${PN} -k 2>&1 | tail -n 3)
722 - )
723 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
724 - eend $?
725 -
726 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
727 - sed -i \
728 - -e '/cloak-keys/ {
729 -n
730 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
731 -n
732 -s/"and another one";/"'"${keys[1]}"'";/
733 -n
734 -s/"and another one";/"'"${keys[2]}"'";/
735 -}' \
736 - "${unrealircd_conf}"
737 - eend $?
738 - fi
739 -
740 - # Precreate ircd.tune and ircd.log with the correct ownership to
741 - # protect people from themselves when they run unrealircd as root
742 - # before trying the initscripts. #560790
743 - local f
744 - for f in "${EROOT}"var/{lib/${PN}/ircd.tune,log/${PN}/ircd.log}; do
745 - [[ -e ${f} ]] && continue
746 - ebegin "Precreating ${f} to set ownership"
747 - (
748 - umask 0037
749 - # ircd.tune must be seeded with content instead of being empty.
750 - if [[ ${f} == *ircd.tune ]]; then
751 - echo 0 > "${f}"
752 - echo 0 >> "${f}"
753 - fi
754 - touch "${f}"
755 - )
756 - chown unrealircd "${f}"
757 - eend $?
758 - done
759 -
760 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
761 - elog
762 - elog "You can also configure ${PN} start at boot with rc-update(1)."
763 - elog "It is recommended to run unrealircd as an unprivileged user."
764 - elog "The provided init.d script does this for you."
765 -}
766
767 diff --git a/net-irc/unrealircd/unrealircd-4.0.17.ebuild b/net-irc/unrealircd/unrealircd-4.0.17.ebuild
768 deleted file mode 100644
769 index fd9b43877ff..00000000000
770 --- a/net-irc/unrealircd/unrealircd-4.0.17.ebuild
771 +++ /dev/null
772 @@ -1,250 +0,0 @@
773 -# Copyright 1999-2018 Gentoo Foundation
774 -# Distributed under the terms of the GNU General Public License v2
775 -
776 -EAPI=6
777 -
778 -SSL_CERT_MANDATORY=1
779 -inherit ssl-cert versionator user
780 -
781 -DESCRIPTION="An advanced Internet Relay Chat daemon"
782 -HOMEPAGE="https://www.unrealircd.org/"
783 -SRC_URI="https://www.unrealircd.org/${PN}$(get_version_component_range 1)/${P}.tar.gz"
784 -
785 -LICENSE="GPL-2"
786 -SLOT="0"
787 -KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux"
788 -IUSE="class-nofakelag curl +extban-stacking +operoverride operoverride-verify +prefixaq
789 - showlistmodes shunnotices topicisnuhost +usermod"
790 -
791 -RDEPEND="
792 - dev-libs/openssl:0=
793 - dev-libs/libpcre2
794 - dev-libs/tre
795 - >=net-dns/c-ares-1.7:=
796 - sys-libs/zlib
797 - curl? ( net-misc/curl[adns] )
798 -"
799 -DEPEND="${RDEPEND}
800 - virtual/pkgconfig
801 -"
802 -
803 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES{,.old},tao.of.irc,technical/,translations.txt} )
804 -
805 -pkg_pretend() {
806 - local v
807 - for v in ${REPLACING_VERSIONS}; do
808 - version_is_at_least 4 "${v}" && continue
809 - ewarn "The configuration file format has changed since ${v}."
810 - ewarn "Please be prepared to manually update them and visit:"
811 - ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"
812 - break
813 - done
814 -}
815 -
816 -pkg_setup() {
817 - enewuser unrealircd
818 -}
819 -
820 -src_prepare() {
821 - # QA check against bundled pkgs
822 - rm -r extras || die
823 -
824 - if use class-nofakelag; then
825 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
826 - fi
827 -
828 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
829 - # that to look for ca-certificates-provided file instead. %s is
830 - # CONFDIR. #618066
831 - sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die
832 -
833 - eapply_user
834 -}
835 -
836 -src_configure() {
837 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
838 - econf \
839 - --with-bindir="${EPREFIX}"/usr/bin \
840 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
841 - --with-confdir="${EPREFIX}"/etc/${PN} \
842 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
843 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
844 - --with-logdir="${EPREFIX}"/var/log/${PN} \
845 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
846 - --without-privatelibdir \
847 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
848 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
849 - --with-nick-history=2000 \
850 - --with-sendq=3000000 \
851 - --with-permissions=0640 \
852 - --with-fd-setsize=1024 \
853 - --with-system-cares \
854 - --with-system-pcre2 \
855 - --with-system-tre \
856 - --enable-dynamic-linking \
857 - --enable-ssl="${EPREFIX}"/usr \
858 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
859 - $(use_enable prefixaq) \
860 - $(use_with showlistmodes) \
861 - $(use_with topicisnuhost) \
862 - $(use_with shunnotices) \
863 - $(use_with !operoverride no-operoverride) \
864 - $(use_with operoverride-verify) \
865 - $(use_with !usermod disableusermod) \
866 - $(use_with !extban-stacking disable-extendedban-stacking)
867 -}
868 -
869 -src_install() {
870 - keepdir /var/log/${PN}
871 - keepdir /var/lib/${PN}/tmp
872 -
873 - newbin src/ircd ${PN}
874 -
875 - (
876 - cd src/modules || die
877 - for subdir in $(find . -type d -print); do
878 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
879 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
880 - doexe "${subdir}"/*.so
881 - fi
882 - done
883 - )
884 -
885 - insinto /etc/${PN}
886 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
887 - # is redundant with app-misc/ca-certificates and examples will all
888 - # be in docs anyway.
889 - doins -r doc/conf/{aliases,help}
890 - doins doc/conf/*.conf
891 - newins doc/conf/examples/example.conf ${PN}.conf
892 - keepdir /etc/${PN}/ssl
893 -
894 - einstalldocs
895 -
896 - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
897 - newconfd "${FILESDIR}"/${PN}.confd-r2 ${PN}
898 -
899 - # config should be read-only
900 - fperms -R 0640 /etc/${PN}
901 - fperms 0750 /etc/${PN}{,/aliases,/help}
902 - fperms 0750 /etc/${PN}/ssl
903 - # state is editable but not owned by unrealircd directly
904 - fperms 0770 /var/log/${PN}
905 - fperms 0770 /var/lib/${PN}{,/tmp}
906 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
907 -}
908 -
909 -pkg_preinst() {
910 - # Must pre-create directories; otherwise their permissions are lost
911 - # on installation.
912 -
913 - # Usage: _unrealircd_dir_permissions <user> <group> <mode> <dir>[, <dir>…]
914 - #
915 - # Ensure that directories are created with the correct permissions
916 - # before portage tries to merge them to the filesystem because,
917 - # otherwise, those directories are installed world-readable.
918 - #
919 - # If this is a first-time install, create those directories with
920 - # correct permissions before installing. Otherwise, update
921 - # permissions—but only if we are replacing an unrealircd ebuild at
922 - # least as old as net-irc/unrealircd-3.2.10. Portage handles normal
923 - # file permissions correctly, so no need for recursive
924 - # chmoding/chowning.
925 - _unrealircd_dir_permissions() {
926 - local user=${1} group=${2} mode=${3} dir v
927 - shift 3
928 - while dir=${1} && shift; do
929 - if [[ ! -d "${EROOT}${dir}" ]]; then
930 - ebegin "Creating ""${EROOT}${dir}"" with correct permissions"
931 - install -d -m "${mode}" -o "${user}" -g "${group}" "${EROOT}${dir}" || die
932 - eend ${?}
933 - elif ! [[ ${REPLACING_VERSIONS} ]] || for v in ${REPLACING_VERSIONS}; do
934 - # If 3.2.10 ≤ ${REPLACING_VERSIONS}, then we update
935 - # existing permissions.
936 - version_is_at_least "${v}" 3.2.10 && break
937 - done; then
938 - ebegin "Correcting permissions of ""${EROOT}${dir}"" left by ${CATEGORY}/${PN}-${v}"
939 - chmod "${mode}" "${EROOT}${dir}" \
940 - && chown ${user}:${group} "${EROOT}${dir}" \
941 - || die "Unable to correct permissions of ${EROOT}${dir}"
942 - eend ${?}
943 - fi
944 - done
945 - }
946 -
947 - # unrealircd only needs to be able to read files in /etc/unrealircd.
948 - _unrealircd_dir_permissions root unrealircd 0750 etc/${PN}{,/aliases}
949 -
950 - # unrealircd needs to be able to create files in /var/lib/unrealircd
951 - # and /var/log/unrealircd.
952 - _unrealircd_dir_permissions root unrealircd 0770 var/{lib,log}/${PN}
953 -}
954 -
955 -pkg_postinst() {
956 - # Move docert call from src_install() to install_cert in pkg_postinst for
957 - # bug #201682
958 - if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
959 - if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
960 - ewarn "The location ${PN} looks for SSL certificates has changed"
961 - ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
962 - ewarn "Please move your existing certificates."
963 - else
964 - (
965 - umask 0037
966 - install_cert /etc/${PN}/ssl/server.cert
967 - chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
968 - ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
969 - )
970 - fi
971 - fi
972 -
973 - local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf
974 - # Fix up the default cloak keys.
975 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
976 - ebegin "Generating cloak-keys"
977 - local keys=(
978 - $(${PN} -k 2>&1 | tail -n 3)
979 - )
980 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
981 - eend $?
982 -
983 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
984 - sed -i \
985 - -e '/cloak-keys/ {
986 -n
987 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
988 -n
989 -s/"and another one";/"'"${keys[1]}"'";/
990 -n
991 -s/"and another one";/"'"${keys[2]}"'";/
992 -}' \
993 - "${unrealircd_conf}"
994 - eend $?
995 - fi
996 -
997 - # Precreate ircd.tune and ircd.log with the correct ownership to
998 - # protect people from themselves when they run unrealircd as root
999 - # before trying the initscripts. #560790
1000 - local f
1001 - for f in "${EROOT}"var/{lib/${PN}/ircd.tune,log/${PN}/ircd.log}; do
1002 - [[ -e ${f} ]] && continue
1003 - ebegin "Precreating ${f} to set ownership"
1004 - (
1005 - umask 0037
1006 - # ircd.tune must be seeded with content instead of being empty.
1007 - if [[ ${f} == *ircd.tune ]]; then
1008 - echo 0 > "${f}"
1009 - echo 0 >> "${f}"
1010 - fi
1011 - touch "${f}"
1012 - )
1013 - chown unrealircd "${f}"
1014 - eend $?
1015 - done
1016 -
1017 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
1018 - elog
1019 - elog "You can also configure ${PN} start at boot with rc-update(1)."
1020 - elog "It is recommended to run unrealircd as an unprivileged user."
1021 - elog "The provided init.d script does this for you."
1022 -}
1023
1024 diff --git a/net-irc/unrealircd/unrealircd-4.0.18.ebuild b/net-irc/unrealircd/unrealircd-4.0.18.ebuild
1025 deleted file mode 100644
1026 index e2003270220..00000000000
1027 --- a/net-irc/unrealircd/unrealircd-4.0.18.ebuild
1028 +++ /dev/null
1029 @@ -1,184 +0,0 @@
1030 -# Copyright 1999-2018 Gentoo Authors
1031 -# Distributed under the terms of the GNU General Public License v2
1032 -
1033 -EAPI=6
1034 -
1035 -SSL_CERT_MANDATORY=1
1036 -inherit ssl-cert user versionator
1037 -
1038 -DESCRIPTION="An advanced Internet Relay Chat daemon"
1039 -HOMEPAGE="https://www.unrealircd.org/"
1040 -SRC_URI="https://www.unrealircd.org/${PN}$(get_version_component_range 1)/${P}.tar.gz"
1041 -
1042 -LICENSE="GPL-2"
1043 -SLOT="0"
1044 -KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux"
1045 -IUSE="class-nofakelag curl +extban-stacking +operoverride operoverride-verify +prefixaq
1046 - showlistmodes shunnotices topicisnuhost +usermod"
1047 -
1048 -RDEPEND="
1049 - dev-libs/openssl:0=
1050 - dev-libs/libpcre2
1051 - dev-libs/tre
1052 - >=net-dns/c-ares-1.7:=
1053 - sys-libs/zlib
1054 - curl? ( net-misc/curl[adns] )
1055 -"
1056 -DEPEND="${RDEPEND}
1057 - virtual/pkgconfig
1058 -"
1059 -
1060 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES{,.old},tao.of.irc,technical/,translations.txt} )
1061 -
1062 -pkg_pretend() {
1063 - local v
1064 - for v in ${REPLACING_VERSIONS}; do
1065 - version_is_at_least 4 "${v}" && continue
1066 - ewarn "The configuration file format has changed since ${v}."
1067 - ewarn "Please be prepared to manually update them and visit:"
1068 - ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"
1069 - break
1070 - done
1071 -}
1072 -
1073 -pkg_setup() {
1074 - enewuser unrealircd
1075 -}
1076 -
1077 -src_prepare() {
1078 - # QA check against bundled pkgs
1079 - rm -r extras || die
1080 -
1081 - if use class-nofakelag; then
1082 - sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
1083 - fi
1084 -
1085 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
1086 - # that to look for ca-certificates-provided file instead. %s is
1087 - # CONFDIR. #618066
1088 - sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die
1089 -
1090 - eapply_user
1091 -}
1092 -
1093 -src_configure() {
1094 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
1095 - econf \
1096 - --with-bindir="${EPREFIX}"/usr/bin \
1097 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
1098 - --with-confdir="${EPREFIX}"/etc/${PN} \
1099 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
1100 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
1101 - --with-logdir="${EPREFIX}"/var/log/${PN} \
1102 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
1103 - --without-privatelibdir \
1104 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
1105 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
1106 - --with-nick-history=2000 \
1107 - --with-sendq=3000000 \
1108 - --with-permissions=0640 \
1109 - --with-fd-setsize=1024 \
1110 - --with-system-cares \
1111 - --with-system-pcre2 \
1112 - --with-system-tre \
1113 - --enable-dynamic-linking \
1114 - --enable-ssl="${EPREFIX}"/usr \
1115 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
1116 - $(use_enable prefixaq) \
1117 - $(use_with showlistmodes) \
1118 - $(use_with topicisnuhost) \
1119 - $(use_with shunnotices) \
1120 - $(use_with !operoverride no-operoverride) \
1121 - $(use_with operoverride-verify) \
1122 - $(use_with !usermod disableusermod) \
1123 - $(use_with !extban-stacking disable-extendedban-stacking)
1124 -}
1125 -
1126 -src_install() {
1127 - keepdir /var/log/${PN}
1128 - keepdir /var/lib/${PN}/tmp
1129 -
1130 - newbin src/ircd ${PN}
1131 -
1132 - (
1133 - cd src/modules || die
1134 - for subdir in $(find . -type d -print); do
1135 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
1136 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
1137 - doexe "${subdir}"/*.so
1138 - fi
1139 - done
1140 - )
1141 -
1142 - insinto /etc/${PN}
1143 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
1144 - # is redundant with app-misc/ca-certificates and examples will all
1145 - # be in docs anyway.
1146 - doins -r doc/conf/{aliases,help}
1147 - doins doc/conf/*.conf
1148 - newins doc/conf/examples/example.conf ${PN}.conf
1149 - keepdir /etc/${PN}/ssl
1150 -
1151 - einstalldocs
1152 -
1153 - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
1154 - newconfd "${FILESDIR}"/${PN}.confd-r2 ${PN}
1155 -
1156 - # config should be read-only
1157 - fperms -R 0640 /etc/${PN}
1158 - fperms 0750 /etc/${PN}{,/aliases,/help}
1159 - fperms 0750 /etc/${PN}/ssl
1160 - # state is editable but not owned by unrealircd directly
1161 - fperms 0770 /var/log/${PN}
1162 - fperms 0770 /var/lib/${PN}{,/tmp}
1163 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
1164 -}
1165 -
1166 -pkg_postinst() {
1167 - # Move docert call from src_install() to install_cert in pkg_postinst for
1168 - # bug #201682
1169 - if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
1170 - if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
1171 - ewarn "The location ${PN} looks for SSL certificates has changed"
1172 - ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
1173 - ewarn "Please move your existing certificates."
1174 - else
1175 - (
1176 - umask 0037
1177 - install_cert /etc/${PN}/ssl/server.cert
1178 - chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
1179 - ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
1180 - )
1181 - fi
1182 - fi
1183 -
1184 - local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf
1185 - # Fix up the default cloak keys.
1186 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
1187 - ebegin "Generating cloak-keys"
1188 - local keys=(
1189 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")
1190 - )
1191 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
1192 - eend $?
1193 -
1194 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
1195 - sed -i \
1196 - -e '/cloak-keys/ {
1197 -n
1198 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
1199 -n
1200 -s/"and another one";/"'"${keys[1]}"'";/
1201 -n
1202 -s/"and another one";/"'"${keys[2]}"'";/
1203 -}' \
1204 - "${unrealircd_conf}"
1205 - eend $?
1206 - fi
1207 -
1208 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
1209 - elog
1210 - elog "You can also configure ${PN} start at boot with rc-update(1)."
1211 - elog "It is recommended to run unrealircd as an unprivileged user."
1212 - elog "The provided init.d script does this for you."
1213 -}