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