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: Thu, 02 Dec 2021 06:31:26
Message-Id: 1638426668.3d9bf50fb3ca6a8c2f0f9a333a3bd6c2bf93e9c2.kensington@gentoo
1 commit: 3d9bf50fb3ca6a8c2f0f9a333a3bd6c2bf93e9c2
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 2 06:31:08 2021 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 2 06:31:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9bf50f
7
8 net-irc/unrealircd: remove 5.2.1.1
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 net-irc/unrealircd/Manifest | 1 -
14 net-irc/unrealircd/unrealircd-5.2.1.1.ebuild | 177 ---------------------------
15 2 files changed, 178 deletions(-)
16
17 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest
18 index a9c7fef420c8..5e1d7316cb20 100644
19 --- a/net-irc/unrealircd/Manifest
20 +++ b/net-irc/unrealircd/Manifest
21 @@ -1,2 +1 @@
22 -DIST unrealircd-5.2.1.1.tar.gz 7174342 BLAKE2B 0d149807bcacd0604195948f3c5a7f538426741b38238bd00df76e7c2fa4b8603f86f325c2ba6f8f87bc72621e38fc5642b86aa081cf1f4f74cabc5cbdc89eb7 SHA512 d49a5fd9b02d6e43ec13f9195d226c10c4f2a7a7f0ac41c51b02a13fc287fea14c8fd73203fea773e57eb2e969cc4248abfdc24bd643a4f727222de7e4f726fa
23 DIST unrealircd-5.2.2.tar.gz 7192024 BLAKE2B aa700c943cbab1dcc751e32c6cc0608cd27936b0910bbc62987dd2fe87ee5261e7a5eb2aa67dd77ed5ecb39d1d4f149c8810159e2c6f752ee65ce34e46548f60 SHA512 9d36eb1567431bc4a5420bc830bfc8dc89daa08ed1746efd6102e5ef161f67baf52e75e373454df7df6a443c4f575fb300d3c289d4dd99239a6de7d2b2a555a0
24
25 diff --git a/net-irc/unrealircd/unrealircd-5.2.1.1.ebuild b/net-irc/unrealircd/unrealircd-5.2.1.1.ebuild
26 deleted file mode 100644
27 index ec8c6dbb0620..000000000000
28 --- a/net-irc/unrealircd/unrealircd-5.2.1.1.ebuild
29 +++ /dev/null
30 @@ -1,177 +0,0 @@
31 -# Copyright 1999-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -SSL_CERT_MANDATORY=1
37 -inherit autotools ssl-cert systemd
38 -
39 -DESCRIPTION="An advanced Internet Relay Chat daemon"
40 -HOMEPAGE="https://www.unrealircd.org/"
41 -SRC_URI="https://www.unrealircd.org/downloads/${P}.tar.gz"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -KEYWORDS="amd64 ~arm ~arm64 ppc ~ppc64 x86 ~amd64-linux"
46 -IUSE="class-nofakelag curl +operoverride operoverride-verify +prefixaq showlistmodes"
47 -
48 -RDEPEND="
49 - acct-group/unrealircd
50 - acct-user/unrealircd
51 - >=app-crypt/argon2-20171227-r1:=
52 - dev-libs/libpcre2
53 - dev-libs/libsodium:=
54 - dev-libs/openssl:0=
55 - >=net-dns/c-ares-1.7:=
56 - virtual/libcrypt:=
57 - curl? ( net-misc/curl[adns] )
58 -"
59 -DEPEND="${RDEPEND}"
60 -BDEPEND="virtual/pkgconfig"
61 -
62 -DOCS=( doc/{Authors,Donation,RELEASE-NOTES.md,tao.of.irc,technical/,translations.txt} )
63 -
64 -src_prepare() {
65 - # QA check against bundled pkgs
66 - rm -r extras || die
67 -
68 - # building third-party modules (which we don't do) cause a sandbox violation
69 - # bug 704444
70 - echo "" > src/buildmod || die
71 -
72 - sed -e 's/$(MODULEFLAGS)/$(LDFLAGS) &/' -i src/modules/{,*/}Makefile.in || die
73 -
74 - if use class-nofakelag; then
75 - sed -i -e 's:^//#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die
76 - fi
77 -
78 - # File is missing from the 5.0.9.1 tarball
79 - sed -i -e '/unrealircd-upgrade-script/d' configure.ac || die
80 -
81 - default
82 - eautoreconf
83 -}
84 -
85 -src_configure() {
86 - # Default value for privatelibdir adds a build path to -Wl,-rpath.
87 - econf \
88 - --with-bindir="${EPREFIX}"/usr/bin \
89 - --with-cachedir="${EPREFIX}"/var/lib/${PN} \
90 - --with-confdir="${EPREFIX}"/etc/${PN} \
91 - --with-datadir="${EPREFIX}"/var/lib/${PN} \
92 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
93 - --with-logdir="${EPREFIX}"/var/log/${PN} \
94 - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
95 - --without-privatelibdir \
96 - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \
97 - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \
98 - --with-maxconnections=1024 \
99 - --with-nick-history=2000 \
100 - --with-permissions=0640 \
101 - --with-system-argon2 \
102 - --with-system-cares \
103 - --with-system-pcre2 \
104 - --enable-dynamic-linking \
105 - --enable-ssl="${EPREFIX}"/usr \
106 - $(use_enable curl libcurl "${EPREFIX}"/usr) \
107 - $(use_enable prefixaq) \
108 - $(use_with showlistmodes) \
109 - $(use_with !operoverride no-operoverride) \
110 - $(use_with operoverride-verify)
111 -}
112 -
113 -src_install() {
114 - keepdir /var/log/${PN}
115 - keepdir /var/lib/${PN}/tmp
116 -
117 - newbin src/ircd ${PN}
118 -
119 - (
120 - cd src/modules || die
121 - for subdir in $(find . -type d -print); do
122 - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then
123 - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"
124 - doexe "${subdir}"/*.so
125 - fi
126 - done
127 - )
128 -
129 - insinto /etc/${PN}
130 - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl
131 - # is redundant with app-misc/ca-certificates and examples will all
132 - # be in docs anyway.
133 - doins -r doc/conf/{aliases,help}
134 - doins doc/conf/*.conf
135 - newins doc/conf/examples/example.conf ${PN}.conf
136 - keepdir /etc/${PN}/tls
137 -
138 - einstalldocs
139 -
140 - newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
141 - newconfd "${FILESDIR}"/${PN}.confd-r3 ${PN}
142 -
143 - # config should be read-only
144 - fperms -R 0640 /etc/${PN}
145 - fperms 0750 /etc/${PN}{,/aliases,/help}
146 - fperms 0750 /etc/${PN}/tls
147 - # state is editable but not owned by unrealircd directly
148 - fperms 0770 /var/log/${PN}
149 - fperms 0770 /var/lib/${PN}{,/tmp}
150 - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN}
151 -
152 - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix
153 - # that to look for ca-certificates-provided file instead. %s is
154 - # CONFDIR. #618066
155 - dosym ../../ssl/certs/ca-certificates.crt /etc/${PN}/tls/curl-ca-bundle.crt
156 -
157 - systemd_dounit "${FILESDIR}"/${PN}.service
158 -}
159 -
160 -pkg_postinst() {
161 - # Move docert call from src_install() to install_cert in pkg_postinst for
162 - # bug #201682
163 - if [[ ! -f "${EROOT}"/etc/${PN}/tls/server.cert.key ]]; then
164 - if [[ -f "${EROOT}"/etc/${PN}/ssl/server.cert.key ]]; then
165 - ewarn "The location ${PN} looks for SSL certificates has changed"
166 - ewarn "from ${EROOT}/etc/${PN}/ssl to ${EROOT}/etc/${PN}/tls."
167 - ewarn "Please move your existing certificates."
168 - else
169 - (
170 - umask 0037
171 - install_cert /etc/${PN}/tls/server.cert
172 - chown unrealircd "${EROOT}"/etc/${PN}/tls/server.cert.*
173 - ln -snf server.cert.key "${EROOT}"/etc/${PN}/tls/server.key.pem
174 - )
175 - fi
176 - fi
177 -
178 - local unrealircd_conf="${EROOT}"/etc/${PN}/${PN}.conf
179 - # Fix up the default cloak keys.
180 - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
181 - ebegin "Generating cloak-keys"
182 - local keys=(
183 - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")
184 - )
185 - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
186 - eend $?
187 -
188 - ebegin "Substituting cloak-keys into ${unrealircd_conf}"
189 - sed -i \
190 - -e '/cloak-keys/ {
191 -n
192 -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
193 -n
194 -s/"and another one";/"'"${keys[1]}"'";/
195 -n
196 -s/"and another one";/"'"${keys[2]}"'";/
197 -}' \
198 - "${unrealircd_conf}"
199 - eend $?
200 - fi
201 -
202 - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
203 - elog
204 - elog "You can also configure ${PN} start at boot with rc-update(1)."
205 - elog "It is recommended to run unrealircd as an unprivileged user."
206 - elog "The provided init.d script does this for you."
207 -}