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: Sun, 20 Feb 2022 05:51:50
Message-Id: 1645335955.7b3d06105f95dd42164f722ef64907af8fdc2d34.sam@gentoo
1 commit: 7b3d06105f95dd42164f722ef64907af8fdc2d34
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 05:45:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 05:45:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b3d0610
7
8 net-irc/unrealircd: drop 5.2.2
9
10 Bug: https://bugs.gentoo.org/832272
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-irc/unrealircd/Manifest | 1 -
14 net-irc/unrealircd/unrealircd-5.2.2.ebuild | 177 -----------------------------
15 2 files changed, 178 deletions(-)
16
17 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest
18 index a4f56594338f..9dc7cf35c43b 100644
19 --- a/net-irc/unrealircd/Manifest
20 +++ b/net-irc/unrealircd/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST unrealircd-5.2.2.tar.gz 7192024 BLAKE2B aa700c943cbab1dcc751e32c6cc0608cd27936b0910bbc62987dd2fe87ee5261e7a5eb2aa67dd77ed5ecb39d1d4f149c8810159e2c6f752ee65ce34e46548f60 SHA512 9d36eb1567431bc4a5420bc830bfc8dc89daa08ed1746efd6102e5ef161f67baf52e75e373454df7df6a443c4f575fb300d3c289d4dd99239a6de7d2b2a555a0
23 DIST unrealircd-5.2.4.tar.gz 7201203 BLAKE2B 06afc8b5e28bbd56971b2ce21da3e000e39366444472786891bfe000754f5fed37b59850f9539b4f01914d6b33c1f9f17a15fe69569620ba5213f39fce1cfcad SHA512 b6784d011bc56b0b8253d61fb1edddb2133e791e9ce4ae978f90059563d11f3f7b3ebca1cf13765b4077ebc39f0699e101bdfc71cbb0c5cf51d508c5a5fdacb3
24 DIST unrealircd-6.0.2.tar.gz 8672255 BLAKE2B d52f2984f32331c489528b429f4671189713e4e308a7a7fd2f70933bfd606a938a9b6a6e581170b41fa9a948d1cc04c0cd8bb90c595c01c39b473cf341494a27 SHA512 041f97ad82d89222ad49bdc7db83869fc5133a049dd5354c34759c33c16307b9d60c25d3ef4e19a549059e3a0030699d061bd03fa8118428ded1f1e79d483398
25
26 diff --git a/net-irc/unrealircd/unrealircd-5.2.2.ebuild b/net-irc/unrealircd/unrealircd-5.2.2.ebuild
27 deleted file mode 100644
28 index 401ba6e89ae9..000000000000
29 --- a/net-irc/unrealircd/unrealircd-5.2.2.ebuild
30 +++ /dev/null
31 @@ -1,177 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -SSL_CERT_MANDATORY=1
38 -inherit autotools ssl-cert systemd
39 -
40 -DESCRIPTION="An advanced Internet Relay Chat daemon"
41 -HOMEPAGE="https://www.unrealircd.org/"
42 -SRC_URI="https://www.unrealircd.org/downloads/${P}.tar.gz"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -KEYWORDS="amd64 arm arm64 ppc ~ppc64 x86 ~amd64-linux"
47 -IUSE="class-nofakelag curl +operoverride operoverride-verify +prefixaq showlistmodes"
48 -
49 -RDEPEND="
50 - acct-group/unrealircd
51 - acct-user/unrealircd
52 - >=app-crypt/argon2-20171227-r1:=
53 - dev-libs/libpcre2
54 - dev-libs/libsodium:=
55 - dev-libs/openssl:0=
56 - >=net-dns/c-ares-1.7:=
57 - virtual/libcrypt:=
58 - curl? ( net-misc/curl[adns] )
59 -"
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-r2 ${PN}
142 - newconfd "${FILESDIR}"/${PN}.confd-r3 ${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 /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 -}