1 |
commit: a44a1e60c944538a87c47df7363c71d5af8d9603 |
2 |
Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de> |
3 |
AuthorDate: Thu Feb 24 16:28:44 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 24 19:09:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44a1e60 |
7 |
|
8 |
mail-mta/notqmail: use verify-sig.eclass |
9 |
|
10 |
Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
mail-mta/notqmail/Manifest | 1 + |
14 |
mail-mta/notqmail/notqmail-1.08-r6.ebuild | 201 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 202 insertions(+) |
16 |
|
17 |
diff --git a/mail-mta/notqmail/Manifest b/mail-mta/notqmail/Manifest |
18 |
index 7944b1c3be37..80377f0a52f7 100644 |
19 |
--- a/mail-mta/notqmail/Manifest |
20 |
+++ b/mail-mta/notqmail/Manifest |
21 |
@@ -5,4 +5,5 @@ DIST notqmail-1.08-spp.patch 14304 BLAKE2B 61cb1cf48e0af93d4928906fa115fe71df888 |
22 |
DIST notqmail-1.08-tls-20200107.patch 50123 BLAKE2B 94bbab86bd089c6ac032bfabc300eb89b367c239ae7a60256c417a2abfa583984e6273eae6df22d44b98dcefce4904f6db9625ff2a57f4b30a8fff8c629d374b SHA512 bdccdf98024f811802504872b8e3f3ac3010c1f218a0ec79bb12e635c35bfa15471c2b7e499c14e6bec9b5d3e48f1e584e26ba2ca01f1ce73a347a338de2a304 |
23 |
DIST notqmail-1.08-tls-spp.patch 64223 BLAKE2B d2337017dacd41d975a9ebd4650cce58425c3c6e1ebfaaaf29a222a532cfd246fec16f52997e85eb921ad376235eb69a8580ba8df493bf760f3d8237311411c0 SHA512 012cdc62c2361737fb984e750a28bd06f357aefd9fa8d909e2e380e65fc5ae3a2cbef3f592eb60455ad858385dbf8e8b50a2f6358a9ffa3f885aa76250a336a0 |
24 |
DIST notqmail-1.08.tar.xz 179500 BLAKE2B 6c774037b257849aea65e7761a6f6c9918079faa490c0ed027d73a8b32de5d5907a54a59162b9b68479229c4b92a23fe28cd2f334123cfe674a94502b90a3635 SHA512 c18d09e28c2e580522eea144e5344e814811108b12f3272b4cf10ad58d9d3d8e666616dcfea2f369e226b68db4fe8cf67cbae994b242d36e9e07c289a0539394 |
25 |
+DIST notqmail-1.08.tar.xz.sig 195 BLAKE2B 0edf3758d24c22e69139a57804b5b39da6c5868c178af511ff5105cd45bf105f5bb903d94093d400c54126e359a259f32d8c8b25c2fb87233efd74fdb05593c1 SHA512 2d5e68d1f3d7330b8b58f54235ec22a94adc0811e23f4863fac806c7a3e0110e6388920c3089c68fa3bb438398d64ea6e37240d002225b1cab20460797487604 |
26 |
DIST qmail-103.patch 2104 BLAKE2B 23721b3331c719f3b6deca8b2603bf824b66068d3901a84dda9edbe33b506d0c2b6e711364e2426d9e393453a54485f0286d4668f99cf6b9acabf10a5dc59b0a SHA512 b81062bb0b0023f474c0b6af40601926e1c04ad395de480d114809e48a8060c06d99bdbdeb6f44d9e24ae1acedabb094b979193d305371aed958f18fc6eee354 |
27 |
|
28 |
diff --git a/mail-mta/notqmail/notqmail-1.08-r6.ebuild b/mail-mta/notqmail/notqmail-1.08-r6.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..2150b53a5175 |
31 |
--- /dev/null |
32 |
+++ b/mail-mta/notqmail/notqmail-1.08-r6.ebuild |
33 |
@@ -0,0 +1,201 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+GENQMAIL_PV=20200817 |
40 |
+QMAIL_SPP_PV=0.42 |
41 |
+ |
42 |
+QMAIL_TLS_PV=20200107 |
43 |
+QMAIL_TLS_F=notqmail-1.08-tls-${QMAIL_TLS_PV}.patch |
44 |
+ |
45 |
+QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch |
46 |
+ |
47 |
+QMAIL_LARGE_DNS="qmail-103.patch" |
48 |
+ |
49 |
+inherit qmail systemd verify-sig |
50 |
+ |
51 |
+if [[ ${PV} == "9999" ]] ; then |
52 |
+ EGIT_REPO_URI="https://github.com/notqmail/notqmail.git" |
53 |
+ inherit git-r3 |
54 |
+else |
55 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
56 |
+ SRC_URI=" |
57 |
+ https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz |
58 |
+ verify-sig? ( |
59 |
+ https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz.sig |
60 |
+ ) |
61 |
+ " |
62 |
+fi |
63 |
+ |
64 |
+DESCRIPTION="Collaborative open-source successor to qmail" |
65 |
+HOMEPAGE=" |
66 |
+ https://notqmail.org |
67 |
+ https://cr.yp.to/qmail.html |
68 |
+ http://qmail.org |
69 |
+" |
70 |
+SRC_URI="${SRC_URI} |
71 |
+ https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F} |
72 |
+ https://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} |
73 |
+ !vanilla? ( |
74 |
+ highvolume? ( |
75 |
+ https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch -> ${QMAIL_BIGTODO_F} |
76 |
+ ) |
77 |
+ qmail-spp? ( |
78 |
+ ssl? ( |
79 |
+ https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch |
80 |
+ https://github.com/notqmail/notqmail/commit/d950cc34491afe90432cafcaeda61d1c1a9508e9.patch -> ${PN}-1.08-tls-spp.patch |
81 |
+ ) |
82 |
+ !ssl? ( |
83 |
+ https://github.com/notqmail/notqmail/commit/b36d52a0dd7315a969f2a9a7455717466e45be23.patch -> ${PN}-1.08-spp.patch |
84 |
+ ) |
85 |
+ ) |
86 |
+ ssl? ( |
87 |
+ https://github.com/notqmail/notqmail/commit/0dc6a3aa9cb3440fe589ca5384ea27d683f05625.patch -> ${QMAIL_TLS_F} |
88 |
+ ) |
89 |
+ !ssl? ( |
90 |
+ https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch |
91 |
+ ) |
92 |
+ ) |
93 |
+" |
94 |
+ |
95 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/notqmail.asc |
96 |
+ |
97 |
+LICENSE="public-domain" |
98 |
+SLOT="0" |
99 |
+IUSE="authcram gencertdaily highvolume pop3 qmail-spp ssl test vanilla verify-sig" |
100 |
+REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume !authcram !gencertdaily ) gencertdaily? ( ssl )" |
101 |
+RESTRICT="!test? ( test )" |
102 |
+ |
103 |
+BDEPEND=" |
104 |
+ verify-sig? ( sec-keys/openpgp-keys-notqmail ) |
105 |
+" |
106 |
+DEPEND=" |
107 |
+ net-dns/libidn2 |
108 |
+ net-mail/queue-repair |
109 |
+ sys-apps/gentoo-functions |
110 |
+ ssl? ( >=dev-libs/openssl-1.1:0= ) |
111 |
+ test? ( dev-libs/check ) |
112 |
+" |
113 |
+RDEPEND="${DEPEND} |
114 |
+ acct-group/nofiles |
115 |
+ acct-group/qmail |
116 |
+ acct-user/alias |
117 |
+ acct-user/qmaild |
118 |
+ acct-user/qmaill |
119 |
+ acct-user/qmailp |
120 |
+ acct-user/qmailq |
121 |
+ acct-user/qmailr |
122 |
+ acct-user/qmails |
123 |
+ sys-apps/ucspi-tcp |
124 |
+ authcram? ( >=net-mail/cmd5checkpw-0.30 ) |
125 |
+ ssl? ( |
126 |
+ pop3? ( sys-apps/ucspi-ssl ) |
127 |
+ ) |
128 |
+ !mail-mta/courier |
129 |
+ !mail-mta/esmtp |
130 |
+ !mail-mta/exim |
131 |
+ !mail-mta/msmtp[mta] |
132 |
+ !mail-mta/nullmailer |
133 |
+ !mail-mta/opensmtpd |
134 |
+ !mail-mta/postfix |
135 |
+ !mail-mta/qmail-ldap |
136 |
+ !mail-mta/netqmail |
137 |
+ !mail-mta/sendmail |
138 |
+ !mail-mta/ssmtp[mta] |
139 |
+" |
140 |
+PDEPEND=" |
141 |
+ virtual/daemontools |
142 |
+" |
143 |
+ |
144 |
+src_unpack() { |
145 |
+ genqmail_src_unpack |
146 |
+ |
147 |
+ [[ ${PV} == "9999" ]] && git-r3_src_unpack |
148 |
+ if [[ ${PV} != "9999" ]]; then |
149 |
+ default |
150 |
+ if use verify-sig; then |
151 |
+ verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig} |
152 |
+ fi |
153 |
+ fi |
154 |
+} |
155 |
+ |
156 |
+PATCHES=( |
157 |
+ "${DISTDIR}/${QMAIL_LARGE_DNS}" |
158 |
+) |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ if ! use vanilla; then |
162 |
+ if use qmail-spp; then |
163 |
+ PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) |
164 |
+ elif use ssl; then |
165 |
+ PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" ) |
166 |
+ else |
167 |
+ PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) |
168 |
+ fi |
169 |
+ use highvolume && PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" ) |
170 |
+ |
171 |
+ if use qmail-spp; then |
172 |
+ if use ssl; then |
173 |
+ PATCHES+=( "${DISTDIR}/${PN}-1.08-tls-spp.patch" ) |
174 |
+ else |
175 |
+ PATCHES+=( "${DISTDIR}/${PN}-1.08-spp.patch" ) |
176 |
+ fi |
177 |
+ fi |
178 |
+ fi |
179 |
+ |
180 |
+ default |
181 |
+ |
182 |
+ qmail_src_postunpack |
183 |
+ |
184 |
+ if ! use authcram; then |
185 |
+ einfo "Disabled CRAM_MD5 support" |
186 |
+ sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || die |
187 |
+ else |
188 |
+ einfo "Enabled CRAM_MD5 support" |
189 |
+ fi |
190 |
+ |
191 |
+ ht_fix_file Makefile* |
192 |
+} |
193 |
+ |
194 |
+src_compile() { |
195 |
+ qmail_src_compile NROFF=true |
196 |
+ emake qmail-send.service |
197 |
+ use qmail-spp && qmail_spp_src_compile |
198 |
+} |
199 |
+ |
200 |
+src_install() { |
201 |
+ qmail_src_install |
202 |
+ systemd_dounit "${S}"/qmail-send.service |
203 |
+} |
204 |
+ |
205 |
+src_test() { |
206 |
+ emake test |
207 |
+} |
208 |
+ |
209 |
+pkg_postinst() { |
210 |
+ qmail_queue_setup |
211 |
+ qmail_rootmail_fixup |
212 |
+ qmail_tcprules_build |
213 |
+ |
214 |
+ qmail_config_notice |
215 |
+ qmail_supervise_config_notice |
216 |
+ elog |
217 |
+ elog "If you are looking for documentation, check those links:" |
218 |
+ elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" |
219 |
+ elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" |
220 |
+ elog "http://www.lifewithqmail.com/" |
221 |
+ elog " -- Life with qmail" |
222 |
+ elog |
223 |
+} |
224 |
+ |
225 |
+pkg_config() { |
226 |
+ # avoid some weird locale problems |
227 |
+ export LC_ALL=C |
228 |
+ |
229 |
+ qmail_config_fast |
230 |
+ qmail_tcprules_config |
231 |
+ qmail_tcprules_build |
232 |
+ |
233 |
+ use ssl && qmail_ssl_generate |
234 |
+} |