Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/notqmail/
Date: Fri, 05 Jun 2020 16:04:05
Message-Id: 1591373034.d331eb76b161a27da553b85f6f6c8821d6065a0c.mgorny@gentoo
1 commit: d331eb76b161a27da553b85f6f6c8821d6065a0c
2 Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
3 AuthorDate: Thu May 21 08:57:55 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 5 16:03:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d331eb76
7
8 mail-mta/notqmail: new package
9
10 "notqmail is a community-driven fork of qmail, beginning where netqmail left
11 off".
12
13 From everything we can tell there will be no new release of netqmail, so we
14 decided to do our own thing. Eventually this will replace the existing
15 mail-mta/netqmail ebuilds.
16
17 Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
18 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
19
20 mail-mta/notqmail/Manifest | 7 ++
21 mail-mta/notqmail/metadata.xml | 23 ++++
22 mail-mta/notqmail/notqmail-1.08.ebuild | 186 +++++++++++++++++++++++++++++++++
23 mail-mta/notqmail/notqmail-9999.ebuild | 186 +++++++++++++++++++++++++++++++++
24 4 files changed, 402 insertions(+)
25
26 diff --git a/mail-mta/notqmail/Manifest b/mail-mta/notqmail/Manifest
27 new file mode 100644
28 index 00000000000..57b6074b1bd
29 --- /dev/null
30 +++ b/mail-mta/notqmail/Manifest
31 @@ -0,0 +1,7 @@
32 +DIST genqmail-20191010.tar.bz2 10063 BLAKE2B bd1b664fca9fdb92aba49930b1d0c336097f2bad56ea814014c0d811d9d96fb861925dd0b016ce4ef1edd0473481fa807e81be17b7169688bfbd72a72e287718 SHA512 8d19a25b8745a04f7bdb378259dcee7b43f62cf90e7a7d8f4843d39169f8221cd8c5b9c332b37e5ecc7917366093e56f34bc4362b8ab0dd1785a6d0f12687a4b
33 +DIST notqmail-1.08-auth.patch 71183 BLAKE2B c980475ef7a2ad6e05d71f494293579e5082b63606fd0bbbd51fff5d067912b1548b4033f36de8030d60b195a684ff0845afe022d316ad835b1ad0b360cafbd6 SHA512 697b8b2a26a10c0029918193046dd2758bb3e84af97fb2e99f29bfb23efb0a9e0ee6ecca0431369e348d1414ef70bc5c446420b4f019ba427d16d0f07f23f6e3
34 +DIST notqmail-1.08-big-todo.patch 7179 BLAKE2B f7582d0193096f17316feb15e65c2b841545e274309351fc2921120ec3a4fb35b1998fbd8b8ca573c7dbd690ab7197f4b4f9105671f7d299687bf339b747deb2 SHA512 8444c8b4558410682d46e4954973721a1fb5e90585c9a3a4d7603448faf68cc0d07d2b5d51977ce72d35551b5c43b03014638251b542e48fe9cbef327cacc7c6
35 +DIST notqmail-1.08-tls-20200107.patch 50123 BLAKE2B 94bbab86bd089c6ac032bfabc300eb89b367c239ae7a60256c417a2abfa583984e6273eae6df22d44b98dcefce4904f6db9625ff2a57f4b30a8fff8c629d374b SHA512 bdccdf98024f811802504872b8e3f3ac3010c1f218a0ec79bb12e635c35bfa15471c2b7e499c14e6bec9b5d3e48f1e584e26ba2ca01f1ce73a347a338de2a304
36 +DIST notqmail-1.08.tar.xz 179500 BLAKE2B 6c774037b257849aea65e7761a6f6c9918079faa490c0ed027d73a8b32de5d5907a54a59162b9b68479229c4b92a23fe28cd2f334123cfe674a94502b90a3635 SHA512 c18d09e28c2e580522eea144e5344e814811108b12f3272b4cf10ad58d9d3d8e666616dcfea2f369e226b68db4fe8cf67cbae994b242d36e9e07c289a0539394
37 +DIST qmail-103.patch 2104 BLAKE2B 23721b3331c719f3b6deca8b2603bf824b66068d3901a84dda9edbe33b506d0c2b6e711364e2426d9e393453a54485f0286d4668f99cf6b9acabf10a5dc59b0a SHA512 b81062bb0b0023f474c0b6af40601926e1c04ad395de480d114809e48a8060c06d99bdbdeb6f44d9e24ae1acedabb094b979193d305371aed958f18fc6eee354
38 +DIST qmail-spp-0.42.tar.gz 18689 BLAKE2B df67f10f6daf9601fd074c774c5be4decca59f3e790774d502c28ebd495f9d7523ecebfd37abd333e347151647364d08d3ccc25099c82748bf7b7ea84bb18977 SHA512 03449862886a0ca20fbadab4c94b34b55d185f8df3261bd68aea99e9ded9edfab4477c6b38a8e0295e9b38b0045615da8b1a906a458f28745eadd3c4d882bcbf
39
40 diff --git a/mail-mta/notqmail/metadata.xml b/mail-mta/notqmail/metadata.xml
41 new file mode 100644
42 index 00000000000..1547ff2797a
43 --- /dev/null
44 +++ b/mail-mta/notqmail/metadata.xml
45 @@ -0,0 +1,23 @@
46 +<?xml version="1.0" encoding="UTF-8"?>
47 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
48 +<pkgmetadata>
49 + <maintainer type="person">
50 + <email>eike@×××××××.de</email>
51 + <name>Rolf Eike Beer</name>
52 + </maintainer>
53 + <maintainer type="project">
54 + <email>proxy-maint@g.o</email>
55 + <name>Proxy Maintainers</name>
56 + </maintainer>
57 + <use>
58 + <flag name="authcram">Enable AUTHCRAM support</flag>
59 + <flag name="gencertdaily">Generate SSL certificates daily instead of
60 + hourly</flag>
61 + <flag name="highvolume">Prepare notqmail for high volume servers</flag>
62 + <flag name="pop3">Include POP3 server</flag>
63 + </use>
64 + <upstream>
65 + <remote-id type="github">notqmail/notqmail</remote-id>
66 + <remote-id type="sourceforge">qmail-spp</remote-id>
67 + </upstream>
68 +</pkgmetadata>
69
70 diff --git a/mail-mta/notqmail/notqmail-1.08.ebuild b/mail-mta/notqmail/notqmail-1.08.ebuild
71 new file mode 100644
72 index 00000000000..6332e8b46af
73 --- /dev/null
74 +++ b/mail-mta/notqmail/notqmail-1.08.ebuild
75 @@ -0,0 +1,186 @@
76 +# Copyright 1999-2020 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=7
80 +
81 +GENQMAIL_PV=20191010
82 +QMAIL_SPP_PV=0.42
83 +
84 +QMAIL_TLS_PV=20200107
85 +QMAIL_TLS_F=notqmail-1.08-tls-${QMAIL_TLS_PV}.patch
86 +
87 +QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch
88 +
89 +QMAIL_LARGE_DNS="qmail-103.patch"
90 +
91 +inherit qmail
92 +
93 +if [[ ${PV} == "9999" ]] ; then
94 + EGIT_REPO_URI="https://github.com/notqmail/notqmail.git"
95 + inherit git-r3
96 +else
97 + KEYWORDS="~amd64 ~hppa ~sparc"
98 + SRC_URI="https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz"
99 +fi
100 +
101 +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent"
102 +HOMEPAGE="
103 + https://notqmail.org
104 + https://cr.yp.to/qmail.html
105 + http://qmail.org
106 +"
107 +SRC_URI="${SRC_URI}
108 + https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F}
109 + https://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS}
110 + !vanilla? (
111 + highvolume? (
112 + https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch -> ${QMAIL_BIGTODO_F}
113 + )
114 + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} )
115 + https://github.com/notqmail/notqmail/commit/b224a3ceb63ff8ebc57648bf304e079d0bf55023.patch -> ${PN}-1.08-auth.patch
116 + ssl? (
117 + https://github.com/notqmail/notqmail/commit/ed58c2eff21612037bbcc633f4b3a8e708f522a0.patch -> ${QMAIL_TLS_F}
118 + )
119 + )
120 +"
121 +
122 +LICENSE="public-domain"
123 +SLOT="0"
124 +IUSE="authcram gencertdaily highvolume libressl -pop3 qmail-spp ssl test vanilla"
125 +REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume )"
126 +RESTRICT="!test? ( test )"
127 +
128 +DEPEND="
129 + net-dns/libidn2
130 + net-mail/queue-repair
131 + sys-apps/gentoo-functions
132 + sys-apps/groff
133 + ssl? (
134 + !libressl? ( >=dev-libs/openssl-1.1:0= )
135 + libressl? ( dev-libs/libressl:= )
136 + )
137 + test? ( dev-libs/check )
138 +"
139 +RDEPEND="${DEPEND}
140 + acct-group/nofiles
141 + acct-group/qmail
142 + acct-user/alias
143 + acct-user/qmaild
144 + acct-user/qmaill
145 + acct-user/qmailp
146 + acct-user/qmailq
147 + acct-user/qmailr
148 + acct-user/qmails
149 + sys-apps/ucspi-tcp
150 + virtual/checkpassword
151 + virtual/daemontools
152 + authcram? ( >=net-mail/cmd5checkpw-0.30 )
153 + ssl? (
154 + pop3? ( sys-apps/ucspi-ssl )
155 + )
156 + !mail-mta/courier
157 + !mail-mta/esmtp
158 + !mail-mta/exim
159 + !mail-mta/msmtp[mta]
160 + !mail-mta/nullmailer
161 + !mail-mta/opensmtpd
162 + !mail-mta/postfix
163 + !mail-mta/qmail-ldap
164 + !mail-mta/netqmail
165 + !mail-mta/sendmail
166 + !mail-mta/ssmtp[mta]
167 +"
168 +
169 +src_unpack() {
170 + genqmail_src_unpack
171 + use qmail-spp && qmail_spp_src_unpack
172 +
173 + [[ ${PV} == "9999" ]] && git-r3_src_unpack
174 + [[ ${PV} != "9999" ]] && default
175 +}
176 +
177 +PATCHES=(
178 + "${DISTDIR}/${QMAIL_LARGE_DNS}"
179 +)
180 +
181 +src_prepare() {
182 + if ! use vanilla; then
183 + if use ssl; then
184 + PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" )
185 + else
186 + PATCHES+=( "${DISTDIR}/${P}-auth.patch" )
187 + fi
188 + if use highvolume; then
189 + PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" )
190 + fi
191 +
192 + if use qmail-spp; then
193 + if use ssl; then
194 + SPP_PATCH="${QMAIL_SPP_S}/qmail-spp-smtpauth-tls-20060105.diff"
195 + else
196 + SPP_PATCH="${QMAIL_SPP_S}/netqmail-spp.diff"
197 + fi
198 + # make the patch work with "-p1"
199 + sed -e 's#^--- \([Mq]\)#--- a/\1#' -e 's#^+++ \([Mq]\)#+++ b/\1#' -i ${SPP_PATCH} || die
200 +
201 + PATCHES+=( "${SPP_PATCH}" )
202 + fi
203 + fi
204 +
205 + default
206 +
207 + qmail_src_postunpack
208 +
209 + if ! use authcram; then
210 + einfo "Disabled CRAM_MD5 support"
211 + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || die
212 + else
213 + einfo "Enabled CRAM_MD5 support"
214 + fi
215 +
216 + ht_fix_file Makefile*
217 +}
218 +
219 +src_compile() {
220 + qmail_src_compile
221 + use qmail-spp && qmail_spp_src_compile
222 +}
223 +
224 +src_install() {
225 + qmail_src_install
226 +}
227 +
228 +src_test() {
229 + emake test
230 +}
231 +
232 +pkg_postinst() {
233 + qmail_queue_setup
234 + qmail_rootmail_fixup
235 + qmail_tcprules_build
236 +
237 + qmail_config_notice
238 + qmail_supervise_config_notice
239 + elog
240 + elog "If you are looking for documentation, check those links:"
241 + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail"
242 + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide"
243 + elog "http://www.lifewithqmail.com/"
244 + elog " -- Life with qmail"
245 + elog
246 +}
247 +
248 +pkg_preinst() {
249 + qmail_tcprules_fixup
250 +}
251 +
252 +pkg_config() {
253 + # avoid some weird locale problems
254 + export LC_ALL=C
255 +
256 + qmail_config_fast
257 + qmail_tcprules_config
258 + qmail_tcprules_build
259 +
260 + use ssl && qmail_ssl_generate
261 +}
262
263 diff --git a/mail-mta/notqmail/notqmail-9999.ebuild b/mail-mta/notqmail/notqmail-9999.ebuild
264 new file mode 100644
265 index 00000000000..6332e8b46af
266 --- /dev/null
267 +++ b/mail-mta/notqmail/notqmail-9999.ebuild
268 @@ -0,0 +1,186 @@
269 +# Copyright 1999-2020 Gentoo Authors
270 +# Distributed under the terms of the GNU General Public License v2
271 +
272 +EAPI=7
273 +
274 +GENQMAIL_PV=20191010
275 +QMAIL_SPP_PV=0.42
276 +
277 +QMAIL_TLS_PV=20200107
278 +QMAIL_TLS_F=notqmail-1.08-tls-${QMAIL_TLS_PV}.patch
279 +
280 +QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch
281 +
282 +QMAIL_LARGE_DNS="qmail-103.patch"
283 +
284 +inherit qmail
285 +
286 +if [[ ${PV} == "9999" ]] ; then
287 + EGIT_REPO_URI="https://github.com/notqmail/notqmail.git"
288 + inherit git-r3
289 +else
290 + KEYWORDS="~amd64 ~hppa ~sparc"
291 + SRC_URI="https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz"
292 +fi
293 +
294 +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent"
295 +HOMEPAGE="
296 + https://notqmail.org
297 + https://cr.yp.to/qmail.html
298 + http://qmail.org
299 +"
300 +SRC_URI="${SRC_URI}
301 + https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F}
302 + https://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS}
303 + !vanilla? (
304 + highvolume? (
305 + https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch -> ${QMAIL_BIGTODO_F}
306 + )
307 + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} )
308 + https://github.com/notqmail/notqmail/commit/b224a3ceb63ff8ebc57648bf304e079d0bf55023.patch -> ${PN}-1.08-auth.patch
309 + ssl? (
310 + https://github.com/notqmail/notqmail/commit/ed58c2eff21612037bbcc633f4b3a8e708f522a0.patch -> ${QMAIL_TLS_F}
311 + )
312 + )
313 +"
314 +
315 +LICENSE="public-domain"
316 +SLOT="0"
317 +IUSE="authcram gencertdaily highvolume libressl -pop3 qmail-spp ssl test vanilla"
318 +REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume )"
319 +RESTRICT="!test? ( test )"
320 +
321 +DEPEND="
322 + net-dns/libidn2
323 + net-mail/queue-repair
324 + sys-apps/gentoo-functions
325 + sys-apps/groff
326 + ssl? (
327 + !libressl? ( >=dev-libs/openssl-1.1:0= )
328 + libressl? ( dev-libs/libressl:= )
329 + )
330 + test? ( dev-libs/check )
331 +"
332 +RDEPEND="${DEPEND}
333 + acct-group/nofiles
334 + acct-group/qmail
335 + acct-user/alias
336 + acct-user/qmaild
337 + acct-user/qmaill
338 + acct-user/qmailp
339 + acct-user/qmailq
340 + acct-user/qmailr
341 + acct-user/qmails
342 + sys-apps/ucspi-tcp
343 + virtual/checkpassword
344 + virtual/daemontools
345 + authcram? ( >=net-mail/cmd5checkpw-0.30 )
346 + ssl? (
347 + pop3? ( sys-apps/ucspi-ssl )
348 + )
349 + !mail-mta/courier
350 + !mail-mta/esmtp
351 + !mail-mta/exim
352 + !mail-mta/msmtp[mta]
353 + !mail-mta/nullmailer
354 + !mail-mta/opensmtpd
355 + !mail-mta/postfix
356 + !mail-mta/qmail-ldap
357 + !mail-mta/netqmail
358 + !mail-mta/sendmail
359 + !mail-mta/ssmtp[mta]
360 +"
361 +
362 +src_unpack() {
363 + genqmail_src_unpack
364 + use qmail-spp && qmail_spp_src_unpack
365 +
366 + [[ ${PV} == "9999" ]] && git-r3_src_unpack
367 + [[ ${PV} != "9999" ]] && default
368 +}
369 +
370 +PATCHES=(
371 + "${DISTDIR}/${QMAIL_LARGE_DNS}"
372 +)
373 +
374 +src_prepare() {
375 + if ! use vanilla; then
376 + if use ssl; then
377 + PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" )
378 + else
379 + PATCHES+=( "${DISTDIR}/${P}-auth.patch" )
380 + fi
381 + if use highvolume; then
382 + PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" )
383 + fi
384 +
385 + if use qmail-spp; then
386 + if use ssl; then
387 + SPP_PATCH="${QMAIL_SPP_S}/qmail-spp-smtpauth-tls-20060105.diff"
388 + else
389 + SPP_PATCH="${QMAIL_SPP_S}/netqmail-spp.diff"
390 + fi
391 + # make the patch work with "-p1"
392 + sed -e 's#^--- \([Mq]\)#--- a/\1#' -e 's#^+++ \([Mq]\)#+++ b/\1#' -i ${SPP_PATCH} || die
393 +
394 + PATCHES+=( "${SPP_PATCH}" )
395 + fi
396 + fi
397 +
398 + default
399 +
400 + qmail_src_postunpack
401 +
402 + if ! use authcram; then
403 + einfo "Disabled CRAM_MD5 support"
404 + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || die
405 + else
406 + einfo "Enabled CRAM_MD5 support"
407 + fi
408 +
409 + ht_fix_file Makefile*
410 +}
411 +
412 +src_compile() {
413 + qmail_src_compile
414 + use qmail-spp && qmail_spp_src_compile
415 +}
416 +
417 +src_install() {
418 + qmail_src_install
419 +}
420 +
421 +src_test() {
422 + emake test
423 +}
424 +
425 +pkg_postinst() {
426 + qmail_queue_setup
427 + qmail_rootmail_fixup
428 + qmail_tcprules_build
429 +
430 + qmail_config_notice
431 + qmail_supervise_config_notice
432 + elog
433 + elog "If you are looking for documentation, check those links:"
434 + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail"
435 + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide"
436 + elog "http://www.lifewithqmail.com/"
437 + elog " -- Life with qmail"
438 + elog
439 +}
440 +
441 +pkg_preinst() {
442 + qmail_tcprules_fixup
443 +}
444 +
445 +pkg_config() {
446 + # avoid some weird locale problems
447 + export LC_ALL=C
448 +
449 + qmail_config_fast
450 + qmail_tcprules_config
451 + qmail_tcprules_build
452 +
453 + use ssl && qmail_ssl_generate
454 +}