1 |
commit: deb50625d5648a8bd5938c903514dfec6947c302 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 28 18:36:48 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 28 18:37:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb50625 |
7 |
|
8 |
mail-filter/maildrop: 3.0.2 bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/807169 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
mail-filter/maildrop/Manifest | 1 + |
15 |
mail-filter/maildrop/maildrop-3.0.2.ebuild | 140 +++++++++++++++++++++++++++++ |
16 |
2 files changed, 141 insertions(+) |
17 |
|
18 |
diff --git a/mail-filter/maildrop/Manifest b/mail-filter/maildrop/Manifest |
19 |
index f3202dbaeb9c..0e052bfac449 100644 |
20 |
--- a/mail-filter/maildrop/Manifest |
21 |
+++ b/mail-filter/maildrop/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST maildrop-3.0.0.tar.bz2 2091018 BLAKE2B 3c8e3ae5c2c2f636b0223e2bafadcb88bf34be63c792a177febac5c41ccd50cab04755f14a26731c38a35531abea1faa70d4af5587a6e68a21735f050f2d46d8 SHA512 1f1e1682ec7c2d0c1f2e71059f186d9a9d3118194b1e558d3a6e5826721fb14a661f4d75df42ce2626430ac072b50e723b563ae00c1ebdeb4da96abfeb534eff |
24 |
+DIST maildrop-3.0.2.tar.bz2 2129406 BLAKE2B 10572c9c0fcb7a31f10fdfb005562afd425d157fe515f31d7fc6721247b0a5d5d381b51da39f0161de0c8722af89da225273728928510fd9d79c18c18b5759e5 SHA512 a2e6ad9c6982e468b4f778fe6956312aa1da54c93269311922f247a89ede49349a6cbce869b08ced22354d18259ebc043e4f4adf1e0b364d8e110797b24efbc8 |
25 |
|
26 |
diff --git a/mail-filter/maildrop/maildrop-3.0.2.ebuild b/mail-filter/maildrop/maildrop-3.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..df9a16bf50ed |
29 |
--- /dev/null |
30 |
+++ b/mail-filter/maildrop/maildrop-3.0.2.ebuild |
31 |
@@ -0,0 +1,140 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+inherit flag-o-matic autotools |
37 |
+ |
38 |
+DESCRIPTION="Mail delivery agent/filter" |
39 |
+[[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
40 |
+[[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
41 |
+[[ -z ${SRC_URI} ]] && SRC_URI="https://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2" |
42 |
+HOMEPAGE="https://www.courier-mta.org/maildrop/" |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
47 |
+IUSE="berkdb debug dovecot fam gdbm ldap mysql postgres static-libs authlib +tools trashquota" |
48 |
+ |
49 |
+CDEPEND="!mail-mta/courier |
50 |
+ net-mail/mailbase |
51 |
+ dev-libs/libpcre |
52 |
+ net-dns/libidn:0= |
53 |
+ >=net-libs/courier-unicode-2.0:= |
54 |
+ gdbm? ( >=sys-libs/gdbm-1.8.0:= ) |
55 |
+ mysql? ( net-libs/courier-authlib ) |
56 |
+ postgres? ( net-libs/courier-authlib ) |
57 |
+ ldap? ( net-libs/courier-authlib ) |
58 |
+ authlib? ( net-libs/courier-authlib ) |
59 |
+ fam? ( virtual/fam ) |
60 |
+ !gdbm? ( |
61 |
+ berkdb? ( >=sys-libs/db-3:= ) |
62 |
+ ) |
63 |
+ tools? ( |
64 |
+ !mail-mta/netqmail |
65 |
+ !net-mail/courier-imap |
66 |
+ !mail-mta/mini-qmail |
67 |
+ !mail-mta/qmail-ldap |
68 |
+ )" |
69 |
+DEPEND="${CDEPEND}" |
70 |
+RDEPEND="${CDEPEND} |
71 |
+ dev-lang/perl |
72 |
+ dovecot? ( net-mail/dovecot )" |
73 |
+BDEPEND="virtual/pkgconfig" |
74 |
+ |
75 |
+REQUIRED_USE=" |
76 |
+ mysql? ( authlib ) |
77 |
+ postgres? ( authlib ) |
78 |
+ ldap? ( authlib )" |
79 |
+ |
80 |
+S=${WORKDIR}/${P%%_pre} |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ # Prefer gdbm over berkdb |
84 |
+ if use gdbm ; then |
85 |
+ use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." |
86 |
+ fi |
87 |
+ |
88 |
+ if ! use fam ; then |
89 |
+ eapply -p0 "${FILESDIR}"/${PN}-disable-fam.patch |
90 |
+ fi |
91 |
+ |
92 |
+ # no need to error out if no default - it will be given to econf anyway |
93 |
+ sed -i -e \ |
94 |
+ 's~AC_MSG_ERROR(Cannot determine default mailbox)~SPOOLDIR="./.maildir"~' \ |
95 |
+ "${S}"/libs/maildrop/configure.ac || die "sed failed" |
96 |
+ |
97 |
+ eapply "${FILESDIR}"/${PN}-3.0.0-testsuite.patch |
98 |
+ eapply_user |
99 |
+ eautoreconf |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local myeconfargs=( |
104 |
+ $(use_enable fam) |
105 |
+ --with-devel |
106 |
+ --disable-tempdir |
107 |
+ --enable-syslog=1 |
108 |
+ --enable-use-flock=1 |
109 |
+ --enable-use-dotlock=1 |
110 |
+ --enable-restrict-trusted=1 |
111 |
+ --enable-maildrop-uid=root |
112 |
+ --enable-maildrop-gid=mail |
113 |
+ --enable-sendmail=/usr/sbin/sendmail |
114 |
+ --cache-file="${S}"/configuring.cache |
115 |
+ $(use_enable static-libs static) |
116 |
+ $(use_enable dovecot dovecotauth) |
117 |
+ $(use_with trashquota) |
118 |
+ ) |
119 |
+ |
120 |
+ local mytrustedusers="apache dspam root mail fetchmail" |
121 |
+ mytrustedusers+=" daemon postmaster qmaild mmdf vmail alias" |
122 |
+ myeconfargs+=( --enable-trusted-users="${mytrustedusers}" ) |
123 |
+ |
124 |
+ # These flags make maildrop cry |
125 |
+ replace-flags -Os -O2 |
126 |
+ filter-flags -fomit-frame-pointer |
127 |
+ |
128 |
+ if use gdbm ; then |
129 |
+ myeconfargs+=( --with-db=gdbm ) |
130 |
+ elif use berkdb ; then |
131 |
+ myeconfargs+=( --with-db=db ) |
132 |
+ else |
133 |
+ myeconfargs+=( --without-db ) |
134 |
+ fi |
135 |
+ |
136 |
+ if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then |
137 |
+ myeconfargs+=( --disable-authlib ) |
138 |
+ fi |
139 |
+ |
140 |
+ # default mailbox is $HOME/.maildir for Gentoo |
141 |
+ maildrop_cv_SYS_INSTALL_MBOXDIR="./.maildir" econf "${myeconfargs[@]}" |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ default |
146 |
+ |
147 |
+ if use authlib ; then |
148 |
+ fperms 4755 /usr/bin/maildrop |
149 |
+ fi |
150 |
+ |
151 |
+ dodoc AUTHORS ChangeLog INSTALL NEWS README \ |
152 |
+ README.postfix README.dovecotauth UPGRADE \ |
153 |
+ maildroptips.txt |
154 |
+ docinto maildir |
155 |
+ dodoc libs/maildir/AUTHORS libs/maildir/INSTALL \ |
156 |
+ libs/maildir/README*.txt libs/maildir/*.html |
157 |
+ |
158 |
+ # bugs 61116, 374009, and 639124 |
159 |
+ if ! use tools ; then |
160 |
+ for tool in "maildirmake" "deliverquota"; do |
161 |
+ rm "${D}/usr/bin/${tool}" || die |
162 |
+ rm "${D}/usr/share/man/man"[0-9]"/${tool}."[0-9] || die |
163 |
+ done |
164 |
+ rm "${D}/usr/share/man/man5/maildir.5" || die |
165 |
+ fi |
166 |
+ |
167 |
+ insinto /etc |
168 |
+ doins "${FILESDIR}"/maildroprc |
169 |
+ |
170 |
+ use static-libs || find "${D}"/usr/lib* -name '*.la' -delete |
171 |
+} |