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