1 |
commit: d3c47637db14701ec31b90ad36322133cb2fbf41 |
2 |
Author: Hanno <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 1 10:39:21 2019 +0000 |
4 |
Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 1 10:39:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3c47637 |
7 |
|
8 |
mail-mta/courier: Remove old versions. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/632190 |
11 |
Signed-off-by: Hanno Boeck <hanno <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
13 |
|
14 |
mail-mta/courier/Manifest | 3 - |
15 |
mail-mta/courier/courier-0.75.0-r1.ebuild | 314 ------------------------------ |
16 |
mail-mta/courier/courier-0.75.0.ebuild | 311 ----------------------------- |
17 |
mail-mta/courier/courier-0.76.4.ebuild | 310 ----------------------------- |
18 |
mail-mta/courier/courier-0.78.2.ebuild | 311 ----------------------------- |
19 |
5 files changed, 1249 deletions(-) |
20 |
|
21 |
diff --git a/mail-mta/courier/Manifest b/mail-mta/courier/Manifest |
22 |
index 0b56ddc92ff..b24718bec7b 100644 |
23 |
--- a/mail-mta/courier/Manifest |
24 |
+++ b/mail-mta/courier/Manifest |
25 |
@@ -1,4 +1 @@ |
26 |
-DIST courier-0.75.0.tar.bz2 6970339 BLAKE2B 2c2f9900ab0370eff8b1a62759295e2d0598153075ea9a2f832d59272c5a21d5ab912fc852c7e75d7510d5ddf2d1484e830e6bf57c6952839f8688f174b6f27d SHA512 37e66329f157e18176d4ac8c5e814be78e80ff7dec234886bec8dce2ae5c58ac68bc18e07c739295c25fae8ec778b162bab505d85ea0998db7192d52c47e7bc6 |
27 |
-DIST courier-0.76.4.tar.bz2 7237424 BLAKE2B 7dbfb43cef75ed5187e044130c6cb793848791956a8531fcc54ae7a444e475c16219816c2ad7834e3b5349cf945f59023f0b9e2415c7c64352b5aa71eaf00bbd SHA512 6350ef5e30bd1e4921350bf3a09de0b56513530852c93f9a06e23625e49ae09d7ff26558da1f816a5bb492579afb5c1cbcf7573199bf898a039cd3607e847c30 |
28 |
-DIST courier-0.78.2.tar.bz2 7379529 BLAKE2B 5ba1ef013e513b269746999b2dd75f37fe8a9f1d87a51b61db1a8100c9a5cd022039462c235d35a95cf14ac5c406becf0f5d4f9344462e862045dc7333b7a0b7 SHA512 376de08cbaf9c2c74cd79e5d42680d8d6c31ecf0b0ef014f4152aa857224ba3e6d9e0f91b5097d15dcb5de9a5603a4707bc9b78902a5934c0a0ca68b74212055 |
29 |
DIST courier-1.0.5.tar.bz2 7465054 BLAKE2B 55e9ba2a85889e7210652475149f4d3e687fd63a27b44a5a16c888b2f60bb18c4156e3344792585fed2ee3d81770e79c55ce5791842c255b8701bad5d2f8af4e SHA512 99a8e98633da99abd1f6f4e24328d4655526d51dc9fc03ffcb9c1e0cce0e608dedb2ac9511829af4487ff5af4618500d6fbbee26568f2a05e3c9d3cf3b48b2a5 |
30 |
|
31 |
diff --git a/mail-mta/courier/courier-0.75.0-r1.ebuild b/mail-mta/courier/courier-0.75.0-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 2fe60c5412c..00000000000 |
34 |
--- a/mail-mta/courier/courier-0.75.0-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,314 +0,0 @@ |
37 |
-# Copyright 1999-2019 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=5 |
41 |
-inherit eutils flag-o-matic multilib |
42 |
- |
43 |
-DESCRIPTION="An MTA designed specifically for maildirs" |
44 |
-HOMEPAGE="http://www.courier-mta.org/" |
45 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-# not in keywords due to missing dependencies: |
50 |
-# ~s390 ~ppc64 ~alpha ~ia64 ~sparc ~x86 |
51 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sparc ~x86" |
52 |
-IUSE="postgres ldap libressl mysql pam nls ipv6 spell fax crypt norewrite \ |
53 |
- fam web webmail gnutls" |
54 |
- |
55 |
-DEPEND=" |
56 |
- >=net-libs/courier-authlib-0.66.3 |
57 |
- >=net-libs/courier-unicode-1.3 |
58 |
- gnutls? ( net-libs/gnutls:= ) |
59 |
- !gnutls? ( |
60 |
- !libressl? ( dev-libs/openssl:0= ) |
61 |
- libressl? ( dev-libs/libressl:0= ) |
62 |
- ) |
63 |
- >=sys-libs/gdbm-1.8.0 |
64 |
- dev-libs/libpcre |
65 |
- app-misc/mime-types |
66 |
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
67 |
- pam? ( virtual/pam ) |
68 |
- mysql? ( virtual/mysql ) |
69 |
- ldap? ( >=net-nds/openldap-1.2.11 ) |
70 |
- postgres? ( dev-db/postgresql:= ) |
71 |
- spell? ( app-text/aspell ) |
72 |
- fam? ( virtual/fam ) |
73 |
- !mail-filter/maildrop |
74 |
- !mail-mta/esmtp |
75 |
- !mail-mta/exim |
76 |
- !mail-mta/mini-qmail |
77 |
- !mail-mta/msmtp |
78 |
- !mail-mta/netqmail |
79 |
- !mail-mta/nullmailer |
80 |
- !mail-mta/postfix |
81 |
- !mail-mta/qmail-ldap |
82 |
- !mail-mta/sendmail |
83 |
- !mail-mta/ssmtp |
84 |
- !mail-mta/opensmtpd |
85 |
- !net-mail/dot-forward |
86 |
- !sys-apps/ucspi-tcp |
87 |
- " |
88 |
- |
89 |
-RDEPEND="${DEPEND} |
90 |
- dev-lang/perl |
91 |
- sys-process/procps" |
92 |
- |
93 |
-# get rid of old style virtual/imapd - bug 350792 |
94 |
-# all blockers really needed? |
95 |
-RDEPEND="${RDEPEND} |
96 |
- !net-mail/bincimap |
97 |
- !net-mail/courier-imap |
98 |
- !net-mail/cyrus-imapd |
99 |
- !net-mail/uw-imap" |
100 |
- |
101 |
-PDEPEND="pam? ( net-mail/mailbase ) |
102 |
- crypt? ( >=app-crypt/gnupg-1.0.4 )" |
103 |
- |
104 |
-src_prepare() { |
105 |
-# unpack ${A} |
106 |
-# cd "${S}" |
107 |
- use norewrite && epatch "${FILESDIR}/norewrite.patch" |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- filter-flags '-fomit-frame-pointer' |
112 |
- |
113 |
- local myconf |
114 |
- myconf="" |
115 |
- |
116 |
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" |
117 |
- |
118 |
- econf ${myconf} \ |
119 |
- $(use_with fam) \ |
120 |
- $(use_with ipv6) \ |
121 |
- $(use_with spell ispell) \ |
122 |
- $(use_with ldap ldapaliasd) \ |
123 |
- $(use_enable ldap maildroldap) \ |
124 |
- $(use_with gnutls) \ |
125 |
- --enable-mimetypes=/etc/mime.types \ |
126 |
- --prefix=/usr \ |
127 |
- --disable-root-check \ |
128 |
- --mandir=/usr/share/man \ |
129 |
- --sysconfdir=/etc/courier \ |
130 |
- --libexecdir=/usr/$(get_libdir)/courier \ |
131 |
- --datadir=/usr/share/courier \ |
132 |
- --sharedstatedir=/var/lib/courier/com \ |
133 |
- --localstatedir=/var/lib/courier \ |
134 |
- --with-piddir=/var/run/courier \ |
135 |
- --with-authdaemonvar=/var/lib/courier/authdaemon \ |
136 |
- --with-mailuser=mail \ |
137 |
- --with-mailgroup=mail \ |
138 |
- --with-paranoid-smtpext \ |
139 |
- --with-db=gdbm \ |
140 |
- --disable-autorenamesent \ |
141 |
- --cache-file="${S}/configuring.cache" \ |
142 |
- --host="${CHOST}" debug=true || die "./configure" |
143 |
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile |
144 |
-} |
145 |
- |
146 |
-src_compile() { |
147 |
- default |
148 |
-} |
149 |
- |
150 |
-etc_courier() { |
151 |
- # Import existing /etc/courier/file if it exists. |
152 |
- # Add option only if it was not already set or even commented out |
153 |
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" |
154 |
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ |
155 |
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}" |
156 |
- grep -q "${word}" "${D}/etc/courier/${file}" || \ |
157 |
- echo "${2}" >> "${D}/etc/courier/${file}" |
158 |
-} |
159 |
- |
160 |
-etc_courier_chg() { |
161 |
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" |
162 |
- [ -z "${section}" ] && section="${2}" |
163 |
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" |
164 |
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
165 |
-} |
166 |
- |
167 |
-src_install() { |
168 |
- local f |
169 |
- diropts -o mail -g mail |
170 |
- keepdir /var/lib/courier/tmp |
171 |
- keepdir /var/lib/courier/msgs |
172 |
- make install DESTDIR="${D}" || die "install" |
173 |
- make install-configure || die "install-configure" |
174 |
- |
175 |
- # init script takes care of this |
176 |
- rm -rf "${D}/var/run" |
177 |
- |
178 |
- # Get rid of files we dont want |
179 |
- if ! use webmail ; then |
180 |
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \ |
181 |
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \ |
182 |
- "${D}/usr/share/courier/sqwebmail/" \ |
183 |
- "${D}/usr/sbin/webmaild" \ |
184 |
- "${D}/usr/sbin/webgpg" \ |
185 |
- "${D}/etc/courier/webmail.authpam" \ |
186 |
- "${D}/var/lib/courier/webmail-logincache" \ |
187 |
- "${D}"/etc/courier/sqwebmaild* |
188 |
- fi |
189 |
- |
190 |
- if ! use web ; then |
191 |
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \ |
192 |
- "${D}/etc/courier/webadmin" |
193 |
- fi |
194 |
- |
195 |
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do |
196 |
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
197 |
- done |
198 |
- |
199 |
- newinitd "${FILESDIR}/courier-init-r4" "courier" |
200 |
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" |
201 |
- |
202 |
- cd "${D}/etc/courier" |
203 |
- if use webmail ; then |
204 |
- insinto /etc/courier |
205 |
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc |
206 |
- fi |
207 |
- |
208 |
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done |
209 |
- if use ldap ; then |
210 |
- [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
211 |
- else |
212 |
- rm -f ldapaliasrc |
213 |
- fi |
214 |
- |
215 |
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
216 |
- > "${D}/etc/courier/sizelimit" |
217 |
- etc_courier maildroprc "" |
218 |
- etc_courier esmtproutes "" |
219 |
- etc_courier backuprelay "" |
220 |
- etc_courier locallowercase "" |
221 |
- etc_courier bofh "opt BOFHBADMIME=accept" |
222 |
- etc_courier bofh "opt BOFHSPFTRUSTME=1" |
223 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
224 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
225 |
- etc_courier bofh "opt BOFHSPFFROM=all" |
226 |
- etc_courier bofh "opt BOFHSPFMAILFROM=all" |
227 |
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
228 |
- etc_courier esmtpd "BOFHBADMIME=accept" |
229 |
- etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
230 |
- etc_courier esmtpd-msa "BOFHBADMIME=accept" |
231 |
- |
232 |
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
233 |
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
234 |
- |
235 |
- # Fix for a sandbox violation on subsequential merges |
236 |
- # - ticho@g.o, 2005-07-10 |
237 |
- dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
238 |
- dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
239 |
- dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
240 |
- dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
241 |
- |
242 |
- cd "${S}" |
243 |
- cp imap/README README.imap |
244 |
- use nls && cp unicode/README README.unicode |
245 |
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
246 |
- dodoc libs/tcpd/README.couriertls |
247 |
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html" |
248 |
- |
249 |
- if use webmail ; then |
250 |
- insinto /usr/$(get_libdir)/courier/courier |
251 |
- insopts -m 755 -o mail -g mail |
252 |
- doins "${S}/courier/webmaild" |
253 |
- fi |
254 |
- |
255 |
- if use web ; then |
256 |
- insinto /etc/courier/webadmin |
257 |
- insopts -m 400 -o mail -g mail |
258 |
- doins "${FILESDIR}/password.dist" |
259 |
- fi |
260 |
- |
261 |
- # avoid name collisions in /usr/sbin, make webadmin match |
262 |
- cd "${D}/usr/sbin" |
263 |
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done |
264 |
- if use web ; then |
265 |
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
266 |
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
267 |
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ |
268 |
- || ewarn "failed to fix webadmin" |
269 |
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
270 |
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
271 |
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ |
272 |
- || ewarn "failed to fix webadmin" |
273 |
- fi |
274 |
- |
275 |
- # users should be able to send mail. Could be restricted with suictl. |
276 |
- chmod u+s "${D}/usr/bin/sendmail" |
277 |
- |
278 |
- dosym /usr/bin/sendmail /usr/sbin/sendmail |
279 |
-} |
280 |
- |
281 |
-src_test() { |
282 |
- if [ `whoami` != 'root' ]; then |
283 |
- emake -j1 check || die "Make check failed." |
284 |
- else |
285 |
- einfo "make check skipped, can't run as root." |
286 |
- einfo "You can enable it with FEATURES=\"userpriv\"" |
287 |
- fi |
288 |
-} |
289 |
- |
290 |
-pkg_postinst() { |
291 |
- use fam && elog "fam daemon is needed for courier-imapd" \ |
292 |
- || ewarn "courier was built without fam support" |
293 |
-} |
294 |
- |
295 |
-pkg_config() { |
296 |
- mailhost="$(hostname)" |
297 |
- export mailhost |
298 |
- |
299 |
- domainname="$(domainname)" |
300 |
- if [ "x$domainname" = "x(none)" ] ; then |
301 |
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" |
302 |
- fi |
303 |
- export domainname |
304 |
- |
305 |
- if [ "${ROOT}" = "/" ] ; then |
306 |
- file="${ROOT}/etc/courier/locals" |
307 |
- if [ ! -f "${file}" ] ; then |
308 |
- echo "localhost" > "${file}"; |
309 |
- echo "${domainname}" >> "${file}"; |
310 |
- fi |
311 |
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" |
312 |
- if [ ! -f "${file}" ] ; then |
313 |
- echo "${domainname}" > "${file}" |
314 |
- /usr/sbin/makeacceptmailfor |
315 |
- fi |
316 |
- |
317 |
- file="${ROOT}/etc/courier/smtpaccess/${domainname}" |
318 |
- if [ ! -f "${file}" ] |
319 |
- then |
320 |
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
321 |
- do |
322 |
- i=1 |
323 |
- net="" |
324 |
- TIFS="${IFS}" |
325 |
- IFS="." |
326 |
- for o in "${netmask}" |
327 |
- do |
328 |
- if [ "${o}" == "255" ] |
329 |
- then |
330 |
- [ "_${net}" == "_" ] || net="${net}." |
331 |
- t="$(echo "${network}" | cut -d " " -f ${i})" |
332 |
- net="${net}${t}" |
333 |
- fi |
334 |
- i="$((${i} + 1))" |
335 |
- done |
336 |
- IFS="${TIFS}" |
337 |
- echo "doing configuration - relay control for the network ${net} !" |
338 |
- echo "${net} allow,RELAYCLIENT" >> ${file} |
339 |
- done |
340 |
- /usr/sbin/makesmtpaccess |
341 |
- fi |
342 |
- fi |
343 |
- |
344 |
- echo "creating cert for esmtpd-ssl:" |
345 |
- /usr/sbin/mkesmtpdcert |
346 |
- echo "creating cert for imapd-ssl:" |
347 |
- /usr/sbin/mkpop3dcert |
348 |
- echo "creating cert for pop3d-ssl:" |
349 |
- /usr/sbin/mkimapdcert |
350 |
-} |
351 |
|
352 |
diff --git a/mail-mta/courier/courier-0.75.0.ebuild b/mail-mta/courier/courier-0.75.0.ebuild |
353 |
deleted file mode 100644 |
354 |
index 6d13f06826b..00000000000 |
355 |
--- a/mail-mta/courier/courier-0.75.0.ebuild |
356 |
+++ /dev/null |
357 |
@@ -1,311 +0,0 @@ |
358 |
-# Copyright 1999-2019 Gentoo Authors |
359 |
-# Distributed under the terms of the GNU General Public License v2 |
360 |
- |
361 |
-EAPI=5 |
362 |
-inherit eutils flag-o-matic multilib |
363 |
- |
364 |
-DESCRIPTION="An MTA designed specifically for maildirs" |
365 |
-HOMEPAGE="http://www.courier-mta.org/" |
366 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
367 |
- |
368 |
-LICENSE="GPL-2" |
369 |
-SLOT="0" |
370 |
-# not in keywords due to missing dependencies: |
371 |
-# ~s390 ~ppc64 ~alpha ~ia64 ~sparc ~x86 |
372 |
-KEYWORDS="alpha amd64 ~arm hppa ia64 ppc s390 sparc x86" |
373 |
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \ |
374 |
- fam web webmail gnutls" |
375 |
- |
376 |
-DEPEND=" |
377 |
- >=net-libs/courier-authlib-0.66.3 |
378 |
- >=net-libs/courier-unicode-1.3 |
379 |
- !gnutls? ( dev-libs/openssl:0= ) |
380 |
- gnutls? ( net-libs/gnutls:= ) |
381 |
- >=sys-libs/gdbm-1.8.0 |
382 |
- dev-libs/libpcre |
383 |
- app-misc/mime-types |
384 |
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
385 |
- pam? ( virtual/pam ) |
386 |
- mysql? ( virtual/mysql ) |
387 |
- ldap? ( >=net-nds/openldap-1.2.11 ) |
388 |
- postgres? ( dev-db/postgresql:= ) |
389 |
- spell? ( app-text/aspell ) |
390 |
- fam? ( virtual/fam ) |
391 |
- !mail-filter/maildrop |
392 |
- !mail-mta/esmtp |
393 |
- !mail-mta/exim |
394 |
- !mail-mta/mini-qmail |
395 |
- !mail-mta/msmtp |
396 |
- !mail-mta/netqmail |
397 |
- !mail-mta/nullmailer |
398 |
- !mail-mta/postfix |
399 |
- !mail-mta/qmail-ldap |
400 |
- !mail-mta/sendmail |
401 |
- !mail-mta/ssmtp |
402 |
- !mail-mta/opensmtpd |
403 |
- !net-mail/dot-forward |
404 |
- !sys-apps/ucspi-tcp |
405 |
- " |
406 |
- |
407 |
-RDEPEND="${DEPEND} |
408 |
- dev-lang/perl |
409 |
- sys-process/procps" |
410 |
- |
411 |
-# get rid of old style virtual/imapd - bug 350792 |
412 |
-# all blockers really needed? |
413 |
-RDEPEND="${RDEPEND} |
414 |
- !net-mail/bincimap |
415 |
- !net-mail/courier-imap |
416 |
- !net-mail/cyrus-imapd |
417 |
- !net-mail/uw-imap" |
418 |
- |
419 |
-PDEPEND="pam? ( net-mail/mailbase ) |
420 |
- crypt? ( >=app-crypt/gnupg-1.0.4 )" |
421 |
- |
422 |
-src_prepare() { |
423 |
-# unpack ${A} |
424 |
-# cd "${S}" |
425 |
- use norewrite && epatch "${FILESDIR}/norewrite.patch" |
426 |
-} |
427 |
- |
428 |
-src_configure() { |
429 |
- filter-flags '-fomit-frame-pointer' |
430 |
- |
431 |
- local myconf |
432 |
- myconf="" |
433 |
- |
434 |
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" |
435 |
- |
436 |
- econf ${myconf} \ |
437 |
- $(use_with fam) \ |
438 |
- $(use_with ipv6) \ |
439 |
- $(use_with spell ispell) \ |
440 |
- $(use_with ldap ldapaliasd) \ |
441 |
- $(use_enable ldap maildroldap) \ |
442 |
- $(use_with gnutls) \ |
443 |
- --enable-mimetypes=/etc/mime.types \ |
444 |
- --prefix=/usr \ |
445 |
- --disable-root-check \ |
446 |
- --mandir=/usr/share/man \ |
447 |
- --sysconfdir=/etc/courier \ |
448 |
- --libexecdir=/usr/$(get_libdir)/courier \ |
449 |
- --datadir=/usr/share/courier \ |
450 |
- --sharedstatedir=/var/lib/courier/com \ |
451 |
- --localstatedir=/var/lib/courier \ |
452 |
- --with-piddir=/var/run/courier \ |
453 |
- --with-authdaemonvar=/var/lib/courier/authdaemon \ |
454 |
- --with-mailuser=mail \ |
455 |
- --with-mailgroup=mail \ |
456 |
- --with-paranoid-smtpext \ |
457 |
- --with-db=gdbm \ |
458 |
- --disable-autorenamesent \ |
459 |
- --cache-file="${S}/configuring.cache" \ |
460 |
- --host="${CHOST}" debug=true || die "./configure" |
461 |
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile |
462 |
-} |
463 |
- |
464 |
-src_compile() { |
465 |
- default |
466 |
-} |
467 |
- |
468 |
-etc_courier() { |
469 |
- # Import existing /etc/courier/file if it exists. |
470 |
- # Add option only if it was not already set or even commented out |
471 |
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" |
472 |
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ |
473 |
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}" |
474 |
- grep -q "${word}" "${D}/etc/courier/${file}" || \ |
475 |
- echo "${2}" >> "${D}/etc/courier/${file}" |
476 |
-} |
477 |
- |
478 |
-etc_courier_chg() { |
479 |
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" |
480 |
- [ -z "${section}" ] && section="${2}" |
481 |
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" |
482 |
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
483 |
-} |
484 |
- |
485 |
-src_install() { |
486 |
- local f |
487 |
- diropts -o mail -g mail |
488 |
- keepdir /var/lib/courier/tmp |
489 |
- keepdir /var/lib/courier/msgs |
490 |
- make install DESTDIR="${D}" || die "install" |
491 |
- make install-configure || die "install-configure" |
492 |
- |
493 |
- # init script takes care of this |
494 |
- rm -rf "${D}/var/run" |
495 |
- |
496 |
- # Get rid of files we dont want |
497 |
- if ! use webmail ; then |
498 |
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \ |
499 |
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \ |
500 |
- "${D}/usr/share/courier/sqwebmail/" \ |
501 |
- "${D}/usr/sbin/webmaild" \ |
502 |
- "${D}/usr/sbin/webgpg" \ |
503 |
- "${D}/etc/courier/webmail.authpam" \ |
504 |
- "${D}/var/lib/courier/webmail-logincache" \ |
505 |
- "${D}"/etc/courier/sqwebmaild* |
506 |
- fi |
507 |
- |
508 |
- if ! use web ; then |
509 |
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \ |
510 |
- "${D}/etc/courier/webadmin" |
511 |
- fi |
512 |
- |
513 |
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do |
514 |
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
515 |
- done |
516 |
- |
517 |
- newinitd "${FILESDIR}/courier-init-r4" "courier" |
518 |
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" |
519 |
- |
520 |
- cd "${D}/etc/courier" |
521 |
- if use webmail ; then |
522 |
- insinto /etc/courier |
523 |
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc |
524 |
- fi |
525 |
- |
526 |
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done |
527 |
- if use ldap ; then |
528 |
- [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
529 |
- else |
530 |
- rm -f ldapaliasrc |
531 |
- fi |
532 |
- |
533 |
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
534 |
- > "${D}/etc/courier/sizelimit" |
535 |
- etc_courier maildroprc "" |
536 |
- etc_courier esmtproutes "" |
537 |
- etc_courier backuprelay "" |
538 |
- etc_courier locallowercase "" |
539 |
- etc_courier bofh "opt BOFHBADMIME=accept" |
540 |
- etc_courier bofh "opt BOFHSPFTRUSTME=1" |
541 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
542 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
543 |
- etc_courier bofh "opt BOFHSPFFROM=all" |
544 |
- etc_courier bofh "opt BOFHSPFMAILFROM=all" |
545 |
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
546 |
- etc_courier esmtpd "BOFHBADMIME=accept" |
547 |
- etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
548 |
- etc_courier esmtpd-msa "BOFHBADMIME=accept" |
549 |
- |
550 |
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
551 |
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
552 |
- |
553 |
- # Fix for a sandbox violation on subsequential merges |
554 |
- # - ticho@g.o, 2005-07-10 |
555 |
- dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
556 |
- dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
557 |
- dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
558 |
- dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
559 |
- |
560 |
- cd "${S}" |
561 |
- cp imap/README README.imap |
562 |
- use nls && cp unicode/README README.unicode |
563 |
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
564 |
- dodoc libs/tcpd/README.couriertls |
565 |
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html" |
566 |
- |
567 |
- if use webmail ; then |
568 |
- insinto /usr/$(get_libdir)/courier/courier |
569 |
- insopts -m 755 -o mail -g mail |
570 |
- doins "${S}/courier/webmaild" |
571 |
- fi |
572 |
- |
573 |
- if use web ; then |
574 |
- insinto /etc/courier/webadmin |
575 |
- insopts -m 400 -o mail -g mail |
576 |
- doins "${FILESDIR}/password.dist" |
577 |
- fi |
578 |
- |
579 |
- # avoid name collisions in /usr/sbin, make webadmin match |
580 |
- cd "${D}/usr/sbin" |
581 |
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done |
582 |
- if use web ; then |
583 |
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
584 |
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
585 |
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ |
586 |
- || ewarn "failed to fix webadmin" |
587 |
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
588 |
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
589 |
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ |
590 |
- || ewarn "failed to fix webadmin" |
591 |
- fi |
592 |
- |
593 |
- # users should be able to send mail. Could be restricted with suictl. |
594 |
- chmod u+s "${D}/usr/bin/sendmail" |
595 |
- |
596 |
- dosym /usr/bin/sendmail /usr/sbin/sendmail |
597 |
-} |
598 |
- |
599 |
-src_test() { |
600 |
- if [ `whoami` != 'root' ]; then |
601 |
- emake -j1 check || die "Make check failed." |
602 |
- else |
603 |
- einfo "make check skipped, can't run as root." |
604 |
- einfo "You can enable it with FEATURES=\"userpriv\"" |
605 |
- fi |
606 |
-} |
607 |
- |
608 |
-pkg_postinst() { |
609 |
- use fam && elog "fam daemon is needed for courier-imapd" \ |
610 |
- || ewarn "courier was built without fam support" |
611 |
-} |
612 |
- |
613 |
-pkg_config() { |
614 |
- mailhost="$(hostname)" |
615 |
- export mailhost |
616 |
- |
617 |
- domainname="$(domainname)" |
618 |
- if [ "x$domainname" = "x(none)" ] ; then |
619 |
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" |
620 |
- fi |
621 |
- export domainname |
622 |
- |
623 |
- if [ "${ROOT}" = "/" ] ; then |
624 |
- file="${ROOT}/etc/courier/locals" |
625 |
- if [ ! -f "${file}" ] ; then |
626 |
- echo "localhost" > "${file}"; |
627 |
- echo "${domainname}" >> "${file}"; |
628 |
- fi |
629 |
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" |
630 |
- if [ ! -f "${file}" ] ; then |
631 |
- echo "${domainname}" > "${file}" |
632 |
- /usr/sbin/makeacceptmailfor |
633 |
- fi |
634 |
- |
635 |
- file="${ROOT}/etc/courier/smtpaccess/${domainname}" |
636 |
- if [ ! -f "${file}" ] |
637 |
- then |
638 |
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
639 |
- do |
640 |
- i=1 |
641 |
- net="" |
642 |
- TIFS="${IFS}" |
643 |
- IFS="." |
644 |
- for o in "${netmask}" |
645 |
- do |
646 |
- if [ "${o}" == "255" ] |
647 |
- then |
648 |
- [ "_${net}" == "_" ] || net="${net}." |
649 |
- t="$(echo "${network}" | cut -d " " -f ${i})" |
650 |
- net="${net}${t}" |
651 |
- fi |
652 |
- i="$((${i} + 1))" |
653 |
- done |
654 |
- IFS="${TIFS}" |
655 |
- echo "doing configuration - relay control for the network ${net} !" |
656 |
- echo "${net} allow,RELAYCLIENT" >> ${file} |
657 |
- done |
658 |
- /usr/sbin/makesmtpaccess |
659 |
- fi |
660 |
- fi |
661 |
- |
662 |
- echo "creating cert for esmtpd-ssl:" |
663 |
- /usr/sbin/mkesmtpdcert |
664 |
- echo "creating cert for imapd-ssl:" |
665 |
- /usr/sbin/mkpop3dcert |
666 |
- echo "creating cert for pop3d-ssl:" |
667 |
- /usr/sbin/mkimapdcert |
668 |
-} |
669 |
|
670 |
diff --git a/mail-mta/courier/courier-0.76.4.ebuild b/mail-mta/courier/courier-0.76.4.ebuild |
671 |
deleted file mode 100644 |
672 |
index afb85de4a68..00000000000 |
673 |
--- a/mail-mta/courier/courier-0.76.4.ebuild |
674 |
+++ /dev/null |
675 |
@@ -1,310 +0,0 @@ |
676 |
-# Copyright 1999-2019 Gentoo Authors |
677 |
-# Distributed under the terms of the GNU General Public License v2 |
678 |
- |
679 |
-EAPI=5 |
680 |
-inherit eutils flag-o-matic multilib |
681 |
- |
682 |
-DESCRIPTION="An MTA designed specifically for maildirs" |
683 |
-HOMEPAGE="http://www.courier-mta.org/" |
684 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
685 |
- |
686 |
-LICENSE="GPL-2" |
687 |
-SLOT="0" |
688 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
689 |
-IUSE="postgres ldap libressl mysql pam nls ipv6 spell fax crypt norewrite \ |
690 |
- fam web webmail gnutls" |
691 |
- |
692 |
-DEPEND=" |
693 |
- >=net-libs/courier-authlib-0.66.3 |
694 |
- >=net-libs/courier-unicode-1.4 |
695 |
- gnutls? ( net-libs/gnutls:= ) |
696 |
- !gnutls? ( |
697 |
- !libressl? ( dev-libs/openssl:0= ) |
698 |
- libressl? ( dev-libs/libressl:0= ) |
699 |
- ) |
700 |
- >=sys-libs/gdbm-1.8.0 |
701 |
- dev-libs/libpcre |
702 |
- app-misc/mime-types |
703 |
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
704 |
- pam? ( virtual/pam ) |
705 |
- mysql? ( virtual/mysql ) |
706 |
- ldap? ( >=net-nds/openldap-1.2.11 ) |
707 |
- postgres? ( dev-db/postgresql:= ) |
708 |
- spell? ( app-text/aspell ) |
709 |
- fam? ( virtual/fam ) |
710 |
- !mail-filter/maildrop |
711 |
- !mail-mta/esmtp |
712 |
- !mail-mta/exim |
713 |
- !mail-mta/mini-qmail |
714 |
- !mail-mta/msmtp |
715 |
- !mail-mta/netqmail |
716 |
- !mail-mta/nullmailer |
717 |
- !mail-mta/postfix |
718 |
- !mail-mta/qmail-ldap |
719 |
- !mail-mta/sendmail |
720 |
- !mail-mta/ssmtp |
721 |
- !mail-mta/opensmtpd |
722 |
- !net-mail/dot-forward |
723 |
- !sys-apps/ucspi-tcp |
724 |
- " |
725 |
- |
726 |
-RDEPEND="${DEPEND} |
727 |
- dev-lang/perl |
728 |
- sys-process/procps" |
729 |
- |
730 |
-# get rid of old style virtual/imapd - bug 350792 |
731 |
-# all blockers really needed? |
732 |
-RDEPEND="${RDEPEND} |
733 |
- !net-mail/bincimap |
734 |
- !net-mail/courier-imap |
735 |
- !net-mail/cyrus-imapd |
736 |
- !net-mail/uw-imap" |
737 |
- |
738 |
-PDEPEND="pam? ( net-mail/mailbase ) |
739 |
- crypt? ( >=app-crypt/gnupg-1.0.4 )" |
740 |
- |
741 |
-src_prepare() { |
742 |
- use norewrite && epatch "${FILESDIR}/norewrite.patch" |
743 |
-} |
744 |
- |
745 |
-src_configure() { |
746 |
- filter-flags '-fomit-frame-pointer' |
747 |
- |
748 |
- local myconf |
749 |
- myconf="" |
750 |
- |
751 |
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" |
752 |
- |
753 |
- econf ${myconf} \ |
754 |
- $(use_with fam) \ |
755 |
- $(use_with ipv6) \ |
756 |
- $(use_with spell ispell) \ |
757 |
- $(use_with ldap ldapaliasd) \ |
758 |
- $(use_enable ldap maildroldap) \ |
759 |
- $(use_with gnutls) \ |
760 |
- --enable-mimetypes=/etc/mime.types \ |
761 |
- --prefix=/usr \ |
762 |
- --disable-root-check \ |
763 |
- --mandir=/usr/share/man \ |
764 |
- --sysconfdir=/etc/courier \ |
765 |
- --libexecdir=/usr/$(get_libdir)/courier \ |
766 |
- --datadir=/usr/share/courier \ |
767 |
- --sharedstatedir=/var/lib/courier/com \ |
768 |
- --localstatedir=/var/lib/courier \ |
769 |
- --with-piddir=/var/run/courier \ |
770 |
- --with-authdaemonvar=/var/lib/courier/authdaemon \ |
771 |
- --with-mailuser=mail \ |
772 |
- --with-mailgroup=mail \ |
773 |
- --with-paranoid-smtpext \ |
774 |
- --with-db=gdbm \ |
775 |
- --disable-autorenamesent \ |
776 |
- --cache-file="${S}/configuring.cache" \ |
777 |
- --host="${CHOST}" debug=true || die "./configure" |
778 |
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile |
779 |
-} |
780 |
- |
781 |
-src_compile() { |
782 |
- default |
783 |
-} |
784 |
- |
785 |
-etc_courier() { |
786 |
- # Import existing /etc/courier/file if it exists. |
787 |
- # Add option only if it was not already set or even commented out |
788 |
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" |
789 |
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ |
790 |
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}" |
791 |
- grep -q "${word}" "${D}/etc/courier/${file}" || \ |
792 |
- echo "${2}" >> "${D}/etc/courier/${file}" |
793 |
-} |
794 |
- |
795 |
-etc_courier_chg() { |
796 |
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" |
797 |
- [ -z "${section}" ] && section="${2}" |
798 |
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" |
799 |
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
800 |
-} |
801 |
- |
802 |
-src_install() { |
803 |
- local f |
804 |
- diropts -o mail -g mail |
805 |
- keepdir /var/lib/courier/tmp |
806 |
- keepdir /var/lib/courier/msgs |
807 |
- make install DESTDIR="${D}" || die "install" |
808 |
- make install-configure || die "install-configure" |
809 |
- |
810 |
- # init script takes care of this |
811 |
- rm -rf "${D}/var/run" |
812 |
- |
813 |
- # Get rid of files we dont want |
814 |
- if ! use webmail ; then |
815 |
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \ |
816 |
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \ |
817 |
- "${D}/usr/share/courier/sqwebmail/" \ |
818 |
- "${D}/usr/sbin/webmaild" \ |
819 |
- "${D}/usr/sbin/webgpg" \ |
820 |
- "${D}/etc/courier/webmail.authpam" \ |
821 |
- "${D}/var/lib/courier/webmail-logincache" \ |
822 |
- "${D}"/etc/courier/sqwebmaild* |
823 |
- fi |
824 |
- |
825 |
- if ! use web ; then |
826 |
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \ |
827 |
- "${D}/etc/courier/webadmin" |
828 |
- fi |
829 |
- |
830 |
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do |
831 |
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
832 |
- done |
833 |
- |
834 |
- newinitd "${FILESDIR}/courier-init-r4" "courier" |
835 |
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" |
836 |
- |
837 |
- cd "${D}/etc/courier" |
838 |
- if use webmail ; then |
839 |
- insinto /etc/courier |
840 |
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc |
841 |
- fi |
842 |
- |
843 |
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done |
844 |
- if use ldap ; then |
845 |
- [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
846 |
- else |
847 |
- rm -f ldapaliasrc |
848 |
- fi |
849 |
- |
850 |
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
851 |
- > "${D}/etc/courier/sizelimit" |
852 |
- etc_courier maildroprc "" |
853 |
- etc_courier esmtproutes "" |
854 |
- etc_courier backuprelay "" |
855 |
- etc_courier locallowercase "" |
856 |
- etc_courier bofh "opt BOFHBADMIME=accept" |
857 |
- etc_courier bofh "opt BOFHSPFTRUSTME=1" |
858 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
859 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
860 |
- etc_courier bofh "opt BOFHSPFFROM=all" |
861 |
- etc_courier bofh "opt BOFHSPFMAILFROM=all" |
862 |
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
863 |
- etc_courier esmtpd "BOFHBADMIME=accept" |
864 |
- etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
865 |
- etc_courier esmtpd-msa "BOFHBADMIME=accept" |
866 |
- |
867 |
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
868 |
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
869 |
- |
870 |
- # Fix for a sandbox violation on subsequential merges |
871 |
- # - ticho@g.o, 2005-07-10 |
872 |
- dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
873 |
- dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
874 |
- dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
875 |
- dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
876 |
- |
877 |
- cd "${S}" |
878 |
- cp imap/README README.imap |
879 |
- use nls && cp unicode/README README.unicode |
880 |
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
881 |
- dodoc libs/tcpd/README.couriertls |
882 |
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html" |
883 |
- |
884 |
- if use webmail ; then |
885 |
- insinto /usr/$(get_libdir)/courier/courier |
886 |
- insopts -m 755 -o mail -g mail |
887 |
- doins "${S}/courier/webmaild" |
888 |
- fi |
889 |
- |
890 |
- if use web ; then |
891 |
- insinto /etc/courier/webadmin |
892 |
- insopts -m 400 -o mail -g mail |
893 |
- doins "${FILESDIR}/password.dist" |
894 |
- fi |
895 |
- |
896 |
- # avoid name collisions in /usr/sbin, make webadmin match |
897 |
- cd "${D}/usr/sbin" |
898 |
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done |
899 |
- if use web ; then |
900 |
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
901 |
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
902 |
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ |
903 |
- || ewarn "failed to fix webadmin" |
904 |
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
905 |
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
906 |
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ |
907 |
- || ewarn "failed to fix webadmin" |
908 |
- fi |
909 |
- |
910 |
- # users should be able to send mail. Could be restricted with suictl. |
911 |
- chmod u+s "${D}/usr/bin/sendmail" |
912 |
- |
913 |
- dosym /usr/bin/sendmail /usr/sbin/sendmail |
914 |
-} |
915 |
- |
916 |
-src_test() { |
917 |
- if [ `whoami` != 'root' ]; then |
918 |
- emake -j1 check || die "Make check failed." |
919 |
- else |
920 |
- einfo "make check skipped, can't run as root." |
921 |
- einfo "You can enable it with FEATURES=\"userpriv\"" |
922 |
- fi |
923 |
-} |
924 |
- |
925 |
-pkg_postinst() { |
926 |
- use fam && elog "fam daemon is needed for courier-imapd" \ |
927 |
- || ewarn "courier was built without fam support" |
928 |
-} |
929 |
- |
930 |
-pkg_config() { |
931 |
- mailhost="$(hostname)" |
932 |
- export mailhost |
933 |
- |
934 |
- domainname="$(domainname)" |
935 |
- if [ "x$domainname" = "x(none)" ] ; then |
936 |
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" |
937 |
- fi |
938 |
- export domainname |
939 |
- |
940 |
- if [ "${ROOT}" = "/" ] ; then |
941 |
- file="${ROOT}/etc/courier/locals" |
942 |
- if [ ! -f "${file}" ] ; then |
943 |
- echo "localhost" > "${file}"; |
944 |
- echo "${domainname}" >> "${file}"; |
945 |
- fi |
946 |
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" |
947 |
- if [ ! -f "${file}" ] ; then |
948 |
- echo "${domainname}" > "${file}" |
949 |
- /usr/sbin/makeacceptmailfor |
950 |
- fi |
951 |
- |
952 |
- file="${ROOT}/etc/courier/smtpaccess/${domainname}" |
953 |
- if [ ! -f "${file}" ] |
954 |
- then |
955 |
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
956 |
- do |
957 |
- i=1 |
958 |
- net="" |
959 |
- TIFS="${IFS}" |
960 |
- IFS="." |
961 |
- for o in "${netmask}" |
962 |
- do |
963 |
- if [ "${o}" == "255" ] |
964 |
- then |
965 |
- [ "_${net}" == "_" ] || net="${net}." |
966 |
- t="$(echo "${network}" | cut -d " " -f ${i})" |
967 |
- net="${net}${t}" |
968 |
- fi |
969 |
- i="$((${i} + 1))" |
970 |
- done |
971 |
- IFS="${TIFS}" |
972 |
- echo "doing configuration - relay control for the network ${net} !" |
973 |
- echo "${net} allow,RELAYCLIENT" >> ${file} |
974 |
- done |
975 |
- /usr/sbin/makesmtpaccess |
976 |
- fi |
977 |
- fi |
978 |
- |
979 |
- echo "creating cert for esmtpd-ssl:" |
980 |
- /usr/sbin/mkesmtpdcert |
981 |
- echo "creating cert for imapd-ssl:" |
982 |
- /usr/sbin/mkpop3dcert |
983 |
- echo "creating cert for pop3d-ssl:" |
984 |
- /usr/sbin/mkimapdcert |
985 |
-} |
986 |
|
987 |
diff --git a/mail-mta/courier/courier-0.78.2.ebuild b/mail-mta/courier/courier-0.78.2.ebuild |
988 |
deleted file mode 100644 |
989 |
index e289ecf157e..00000000000 |
990 |
--- a/mail-mta/courier/courier-0.78.2.ebuild |
991 |
+++ /dev/null |
992 |
@@ -1,311 +0,0 @@ |
993 |
-# Copyright 1999-2019 Gentoo Authors |
994 |
-# Distributed under the terms of the GNU General Public License v2 |
995 |
- |
996 |
-EAPI=6 |
997 |
-inherit eutils flag-o-matic multilib |
998 |
- |
999 |
-DESCRIPTION="An MTA designed specifically for maildirs" |
1000 |
-HOMEPAGE="http://www.courier-mta.org/" |
1001 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
1002 |
- |
1003 |
-LICENSE="GPL-2" |
1004 |
-SLOT="0" |
1005 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
1006 |
-IUSE="postgres ldap libressl mysql pam nls ipv6 spell fax crypt norewrite \ |
1007 |
- fam web webmail gnutls" |
1008 |
- |
1009 |
-DEPEND=" |
1010 |
- >=net-libs/courier-authlib-0.68.0 |
1011 |
- >=net-libs/courier-unicode-2.0 |
1012 |
- gnutls? ( net-libs/gnutls:= ) |
1013 |
- !gnutls? ( |
1014 |
- !libressl? ( dev-libs/openssl:0= ) |
1015 |
- libressl? ( dev-libs/libressl:0= ) |
1016 |
- ) |
1017 |
- >=sys-libs/gdbm-1.8.0 |
1018 |
- dev-libs/libpcre |
1019 |
- app-misc/mime-types |
1020 |
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
1021 |
- pam? ( virtual/pam ) |
1022 |
- mysql? ( virtual/mysql ) |
1023 |
- ldap? ( >=net-nds/openldap-1.2.11 ) |
1024 |
- postgres? ( dev-db/postgresql:= ) |
1025 |
- spell? ( app-text/aspell ) |
1026 |
- fam? ( virtual/fam ) |
1027 |
- !mail-filter/maildrop |
1028 |
- !mail-mta/esmtp |
1029 |
- !mail-mta/exim |
1030 |
- !mail-mta/mini-qmail |
1031 |
- !mail-mta/msmtp |
1032 |
- !mail-mta/netqmail |
1033 |
- !mail-mta/nullmailer |
1034 |
- !mail-mta/postfix |
1035 |
- !mail-mta/qmail-ldap |
1036 |
- !mail-mta/sendmail |
1037 |
- !mail-mta/ssmtp |
1038 |
- !mail-mta/opensmtpd |
1039 |
- !net-mail/dot-forward |
1040 |
- !sys-apps/ucspi-tcp |
1041 |
- " |
1042 |
- |
1043 |
-RDEPEND="${DEPEND} |
1044 |
- dev-lang/perl |
1045 |
- sys-process/procps" |
1046 |
- |
1047 |
-# get rid of old style virtual/imapd - bug 350792 |
1048 |
-# all blockers really needed? |
1049 |
-RDEPEND="${RDEPEND} |
1050 |
- !net-mail/bincimap |
1051 |
- !net-mail/courier-imap |
1052 |
- !net-mail/cyrus-imapd |
1053 |
- !net-mail/uw-imap" |
1054 |
- |
1055 |
-PDEPEND="pam? ( net-mail/mailbase ) |
1056 |
- crypt? ( >=app-crypt/gnupg-1.0.4 )" |
1057 |
- |
1058 |
-src_prepare() { |
1059 |
- use norewrite && epatch "${FILESDIR}/norewrite.patch" |
1060 |
- default |
1061 |
-} |
1062 |
- |
1063 |
-src_configure() { |
1064 |
- filter-flags '-fomit-frame-pointer' |
1065 |
- |
1066 |
- local myconf |
1067 |
- myconf="" |
1068 |
- |
1069 |
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" |
1070 |
- |
1071 |
- econf ${myconf} \ |
1072 |
- $(use_with fam) \ |
1073 |
- $(use_with ipv6) \ |
1074 |
- $(use_with spell ispell) \ |
1075 |
- $(use_with ldap ldapaliasd) \ |
1076 |
- $(use_enable ldap maildroldap) \ |
1077 |
- $(use_with gnutls) \ |
1078 |
- --enable-mimetypes=/etc/mime.types \ |
1079 |
- --prefix=/usr \ |
1080 |
- --disable-root-check \ |
1081 |
- --mandir=/usr/share/man \ |
1082 |
- --sysconfdir=/etc/courier \ |
1083 |
- --libexecdir=/usr/$(get_libdir)/courier \ |
1084 |
- --datadir=/usr/share/courier \ |
1085 |
- --sharedstatedir=/var/lib/courier/com \ |
1086 |
- --localstatedir=/var/lib/courier \ |
1087 |
- --with-piddir=/var/run/courier \ |
1088 |
- --with-authdaemonvar=/var/lib/courier/authdaemon \ |
1089 |
- --with-mailuser=mail \ |
1090 |
- --with-mailgroup=mail \ |
1091 |
- --with-paranoid-smtpext \ |
1092 |
- --with-db=gdbm \ |
1093 |
- --disable-autorenamesent \ |
1094 |
- --cache-file="${S}/configuring.cache" \ |
1095 |
- --host="${CHOST}" debug=true || die "./configure" |
1096 |
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile |
1097 |
-} |
1098 |
- |
1099 |
-src_compile() { |
1100 |
- default |
1101 |
-} |
1102 |
- |
1103 |
-etc_courier() { |
1104 |
- # Import existing /etc/courier/file if it exists. |
1105 |
- # Add option only if it was not already set or even commented out |
1106 |
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" |
1107 |
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ |
1108 |
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}" |
1109 |
- grep -q "${word}" "${D}/etc/courier/${file}" || \ |
1110 |
- echo "${2}" >> "${D}/etc/courier/${file}" |
1111 |
-} |
1112 |
- |
1113 |
-etc_courier_chg() { |
1114 |
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" |
1115 |
- [ -z "${section}" ] && section="${2}" |
1116 |
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" |
1117 |
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
1118 |
-} |
1119 |
- |
1120 |
-src_install() { |
1121 |
- local f |
1122 |
- diropts -o mail -g mail |
1123 |
- keepdir /var/lib/courier/tmp |
1124 |
- keepdir /var/lib/courier/msgs |
1125 |
- make install DESTDIR="${D}" || die "install" |
1126 |
- make install-configure || die "install-configure" |
1127 |
- |
1128 |
- # init script takes care of this |
1129 |
- rm -rf "${D}/var/run" |
1130 |
- |
1131 |
- # Get rid of files we dont want |
1132 |
- if ! use webmail ; then |
1133 |
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \ |
1134 |
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \ |
1135 |
- "${D}/usr/share/courier/sqwebmail/" \ |
1136 |
- "${D}/usr/sbin/webmaild" \ |
1137 |
- "${D}/usr/sbin/webgpg" \ |
1138 |
- "${D}/etc/courier/webmail.authpam" \ |
1139 |
- "${D}/var/lib/courier/webmail-logincache" \ |
1140 |
- "${D}"/etc/courier/sqwebmaild* |
1141 |
- fi |
1142 |
- |
1143 |
- if ! use web ; then |
1144 |
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \ |
1145 |
- "${D}/etc/courier/webadmin" |
1146 |
- fi |
1147 |
- |
1148 |
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do |
1149 |
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
1150 |
- done |
1151 |
- |
1152 |
- newinitd "${FILESDIR}/courier-init-r4" "courier" |
1153 |
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" |
1154 |
- |
1155 |
- cd "${D}/etc/courier" |
1156 |
- if use webmail ; then |
1157 |
- insinto /etc/courier |
1158 |
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc |
1159 |
- fi |
1160 |
- |
1161 |
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done |
1162 |
- if use ldap ; then |
1163 |
- [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
1164 |
- else |
1165 |
- rm -f ldapaliasrc |
1166 |
- fi |
1167 |
- |
1168 |
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
1169 |
- > "${D}/etc/courier/sizelimit" |
1170 |
- etc_courier maildroprc "" |
1171 |
- etc_courier esmtproutes "" |
1172 |
- etc_courier backuprelay "" |
1173 |
- etc_courier locallowercase "" |
1174 |
- etc_courier bofh "opt BOFHBADMIME=accept" |
1175 |
- etc_courier bofh "opt BOFHSPFTRUSTME=1" |
1176 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
1177 |
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
1178 |
- etc_courier bofh "opt BOFHSPFFROM=all" |
1179 |
- etc_courier bofh "opt BOFHSPFMAILFROM=all" |
1180 |
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
1181 |
- etc_courier esmtpd "BOFHBADMIME=accept" |
1182 |
- etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
1183 |
- etc_courier esmtpd-msa "BOFHBADMIME=accept" |
1184 |
- |
1185 |
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
1186 |
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
1187 |
- |
1188 |
- # Fix for a sandbox violation on subsequential merges |
1189 |
- # - ticho@g.o, 2005-07-10 |
1190 |
- dosym ../share/courier/pop3d /usr/sbin/courier-pop3d |
1191 |
- dosym ../share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
1192 |
- dosym ../share/courier/imapd /usr/sbin/courier-imapd |
1193 |
- dosym ../share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
1194 |
- |
1195 |
- cd "${S}" |
1196 |
- cp imap/README README.imap |
1197 |
- use nls && cp unicode/README README.unicode |
1198 |
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
1199 |
- dodoc libs/tcpd/README.couriertls |
1200 |
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html" |
1201 |
- |
1202 |
- if use webmail ; then |
1203 |
- insinto /usr/$(get_libdir)/courier/courier |
1204 |
- insopts -m 755 -o mail -g mail |
1205 |
- doins "${S}/courier/webmaild" |
1206 |
- fi |
1207 |
- |
1208 |
- if use web ; then |
1209 |
- insinto /etc/courier/webadmin |
1210 |
- insopts -m 400 -o mail -g mail |
1211 |
- doins "${FILESDIR}/password.dist" |
1212 |
- fi |
1213 |
- |
1214 |
- # avoid name collisions in /usr/sbin, make webadmin match |
1215 |
- cd "${D}/usr/sbin" |
1216 |
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done |
1217 |
- if use web ; then |
1218 |
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
1219 |
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
1220 |
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ |
1221 |
- || ewarn "failed to fix webadmin" |
1222 |
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
1223 |
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
1224 |
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ |
1225 |
- || ewarn "failed to fix webadmin" |
1226 |
- fi |
1227 |
- |
1228 |
- # users should be able to send mail. Could be restricted with suictl. |
1229 |
- chmod u+s "${D}/usr/bin/sendmail" |
1230 |
- |
1231 |
- dosym ../bin/sendmail /usr/sbin/sendmail |
1232 |
-} |
1233 |
- |
1234 |
-src_test() { |
1235 |
- if [ `whoami` != 'root' ]; then |
1236 |
- emake -j1 check || die "Make check failed." |
1237 |
- else |
1238 |
- einfo "make check skipped, can't run as root." |
1239 |
- einfo "You can enable it with FEATURES=\"userpriv\"" |
1240 |
- fi |
1241 |
-} |
1242 |
- |
1243 |
-pkg_postinst() { |
1244 |
- use fam && elog "fam daemon is needed for courier-imapd" \ |
1245 |
- || ewarn "courier was built without fam support" |
1246 |
-} |
1247 |
- |
1248 |
-pkg_config() { |
1249 |
- mailhost="$(hostname)" |
1250 |
- export mailhost |
1251 |
- |
1252 |
- domainname="$(domainname)" |
1253 |
- if [ "x$domainname" = "x(none)" ] ; then |
1254 |
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" |
1255 |
- fi |
1256 |
- export domainname |
1257 |
- |
1258 |
- if [ "${ROOT}" = "/" ] ; then |
1259 |
- file="${ROOT}/etc/courier/locals" |
1260 |
- if [ ! -f "${file}" ] ; then |
1261 |
- echo "localhost" > "${file}"; |
1262 |
- echo "${domainname}" >> "${file}"; |
1263 |
- fi |
1264 |
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" |
1265 |
- if [ ! -f "${file}" ] ; then |
1266 |
- echo "${domainname}" > "${file}" |
1267 |
- /usr/sbin/makeacceptmailfor |
1268 |
- fi |
1269 |
- |
1270 |
- file="${ROOT}/etc/courier/smtpaccess/${domainname}" |
1271 |
- if [ ! -f "${file}" ] |
1272 |
- then |
1273 |
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
1274 |
- do |
1275 |
- i=1 |
1276 |
- net="" |
1277 |
- TIFS="${IFS}" |
1278 |
- IFS="." |
1279 |
- for o in "${netmask}" |
1280 |
- do |
1281 |
- if [ "${o}" == "255" ] |
1282 |
- then |
1283 |
- [ "_${net}" == "_" ] || net="${net}." |
1284 |
- t="$(echo "${network}" | cut -d " " -f ${i})" |
1285 |
- net="${net}${t}" |
1286 |
- fi |
1287 |
- i="$((${i} + 1))" |
1288 |
- done |
1289 |
- IFS="${TIFS}" |
1290 |
- echo "doing configuration - relay control for the network ${net} !" |
1291 |
- echo "${net} allow,RELAYCLIENT" >> ${file} |
1292 |
- done |
1293 |
- /usr/sbin/makesmtpaccess |
1294 |
- fi |
1295 |
- fi |
1296 |
- |
1297 |
- echo "creating cert for esmtpd-ssl:" |
1298 |
- /usr/sbin/mkesmtpdcert |
1299 |
- echo "creating cert for imapd-ssl:" |
1300 |
- /usr/sbin/mkpop3dcert |
1301 |
- echo "creating cert for pop3d-ssl:" |
1302 |
- /usr/sbin/mkimapdcert |
1303 |
-} |