Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailutils/, net-mail/mailutils/files/
Date: Fri, 28 Aug 2020 05:43:18
Message-Id: 1598593369.8433b7974ff468f51397394afb1b8a204048868e.eras@gentoo
1 commit: 8433b7974ff468f51397394afb1b8a204048868e
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 05:42:49 2020 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 05:42:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8433b797
7
8 net-mail/mailutils: bump to 3.10
9
10 Closes: https://bugs.gentoo.org/738032
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
13
14 net-mail/mailutils/Manifest | 1 +
15 .../mailutils/files/mailutils-3.10-get_size.patch | 38 ++++++
16 net-mail/mailutils/mailutils-3.10.ebuild | 139 +++++++++++++++++++++
17 3 files changed, 178 insertions(+)
18
19 diff --git a/net-mail/mailutils/Manifest b/net-mail/mailutils/Manifest
20 index 225b3f015bf..f1f4bc73b87 100644
21 --- a/net-mail/mailutils/Manifest
22 +++ b/net-mail/mailutils/Manifest
23 @@ -1,2 +1,3 @@
24 +DIST mailutils-3.10.tar.xz 3102328 BLAKE2B 49ea417f71816db2ca1e6a514e5f662d7ef66dc72ae93141ebb8ee006d78ad89587f4b09a96985fdb17335b5f58f8eb654cef23d64fc6d994948786e4a4b1410 SHA512 3a74c9a4bb197feecb2e2c4acfdfac6104c723722b1b2026183bc4cdb6872a45563034f82a56374fd3f51a79999b0f1d47e1169c971d1222fdc1f7b67e66550f
25 DIST mailutils-3.8.tar.xz 2998596 BLAKE2B 4d09c7b5113129b3d2f3b113808d4460d025d4f0eec00dd1209a95f23abe97683b5d50cfe5229f1e5db48ddd6ca66c73fa6b0c1bfe03b324dbf40b6a26ff76f5 SHA512 4d081ae492beb0f9c1945541d63b52f155f11ca172abaedbe465955ac11097037f440e1aaed8d512cd3aab65f7792b755a7e4b9428a90ad7a833de87b1c4f1f9
26 DIST mailutils-3.9.tar.xz 3075268 BLAKE2B 43ee5bf297951b3c894b467a46d3983dac3e115c02169da0ee2ccbc23f8b71d7439083093f4b0710f19c78f108df99dee3310f5f6adc5b7c1792a0a7be33aab6 SHA512 1eef9bebeeafbf974e54b87705444ee02b663a86e22442a9ec5db16ade38e6e9a3079ee8a8267393e97d6e9e477917617b2e1d57d3287ab19e4df73b66e5a8d4
27
28 diff --git a/net-mail/mailutils/files/mailutils-3.10-get_size.patch b/net-mail/mailutils/files/mailutils-3.10-get_size.patch
29 new file mode 100644
30 index 00000000000..3ec15968916
31 --- /dev/null
32 +++ b/net-mail/mailutils/files/mailutils-3.10-get_size.patch
33 @@ -0,0 +1,38 @@
34 +From 37713b42a501892469234b90454731d8d8b7a3e6 Mon Sep 17 00:00:00 2001
35 +From: Sergey Poznyakoff <gray@×××.org>
36 +Date: Mon, 17 Aug 2020 20:34:21 +0300
37 +Subject: Bugfix (complements fd9a86d37b)
38 +
39 +* mda/lib/mailquota.c (sql_retrieve_quota): Fix a leftover use of
40 +get_size.
41 +---
42 + mda/lib/mailquota.c | 12 +++---------
43 + 1 file changed, 3 insertions(+), 9 deletions(-)
44 +
45 +diff --git a/mda/lib/mailquota.c b/mda/lib/mailquota.c
46 +index 7b7dd52d9..af719a591 100644
47 +--- a/mda/lib/mailquota.c
48 ++++ b/mda/lib/mailquota.c
49 +@@ -270,16 +270,10 @@ sql_retrieve_quota (char *name, mu_off_t *quota)
50 + }
51 + else if (tmp == NULL || tmp[0] == 0 || mu_c_strcasecmp (tmp, "none") == 0)
52 + rc = RETR_UNLIMITED;
53 +- else
54 ++ else if (get_quota (quota, tmp))
55 + {
56 +- char *p;
57 +-
58 +- if (get_size (tmp, quota, &p))
59 +- {
60 +- mu_error (_("bogus mailbox quota for `%s' (near `%s')"),
61 +- name, p);
62 +- *quota = groupquota;
63 +- }
64 ++ *quota = groupquota;
65 ++ rc = RETR_OK;
66 + }
67 + }
68 +
69 +--
70 +cgit v1.2.1
71 +
72
73 diff --git a/net-mail/mailutils/mailutils-3.10.ebuild b/net-mail/mailutils/mailutils-3.10.ebuild
74 new file mode 100644
75 index 00000000000..fe26904e088
76 --- /dev/null
77 +++ b/net-mail/mailutils/mailutils-3.10.ebuild
78 @@ -0,0 +1,139 @@
79 +# Copyright 1999-2020 Gentoo Authors
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=7
83 +PYTHON_COMPAT=( python3_{6,7,8,9} )
84 +
85 +inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs
86 +
87 +DESCRIPTION="A useful collection of mail servers, clients, and filters"
88 +HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html"
89 +SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
90 +
91 +LICENSE="GPL-2 LGPL-2.1"
92 +SLOT="0"
93 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
94 +IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \
95 + ldap mysql nls pam postgres python servers split-usr ssl static-libs +threads tcpd \
96 + tokyocabinet"
97 +
98 +RDEPEND="!mail-client/nmh
99 + !mail-filter/libsieve
100 + !mail-client/mailx
101 + !mail-client/nail
102 + sys-libs/ncurses:=
103 + sys-libs/readline:=
104 + dev-libs/libltdl:0
105 + virtual/mta
106 + berkdb? ( sys-libs/db:= )
107 + bidi? ( dev-libs/fribidi )
108 + emacs? ( >=app-editors/emacs-23.1:* )
109 + gdbm? ( sys-libs/gdbm:= )
110 + guile? ( dev-scheme/guile:12/2.2-1 )
111 + kerberos? ( virtual/krb5 )
112 + kyotocabinet? ( dev-db/kyotocabinet )
113 + ldap? ( net-nds/openldap )
114 + mysql? ( dev-db/mysql-connector-c )
115 + nls? ( sys-devel/gettext )
116 + pam? ( sys-libs/pam )
117 + postgres? ( dev-db/postgresql:= )
118 + python? ( ${PYTHON_DEPS} )
119 + sasl? ( virtual/gsasl )
120 + servers? ( virtual/libiconv dev-libs/libunistring )
121 + ssl? ( net-libs/gnutls:= )
122 + tcpd? ( sys-apps/tcp-wrappers )
123 + tokyocabinet? ( dev-db/tokyocabinet )"
124 +
125 +DEPEND="${RDEPEND}
126 + virtual/pkgconfig"
127 +
128 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
129 + servers? ( tcpd ldap )"
130 +
131 +DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO )
132 +PATCHES=(
133 + "${FILESDIR}"/${PN}-3.5-add-include.patch
134 + "${FILESDIR}"/${PN}-3.10-get_size.patch
135 +)
136 +
137 +pkg_setup() {
138 + use python && python-single-r1_pkg_setup
139 +}
140 +
141 +src_prepare() {
142 + default
143 + if use mysql; then
144 + sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
145 + sql/Makefile.am || die
146 + fi
147 + eautoreconf
148 +}
149 +
150 +src_configure() {
151 + append-flags -fno-strict-aliasing
152 +
153 + # maildir is the Gentoo default
154 + econf MU_DEFAULT_SCHEME=maildir \
155 + CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
156 + $(use_with berkdb berkeley-db) \
157 + $(use_with bidi fribidi) \
158 + $(use_enable ipv6) \
159 + $(use_with gdbm) \
160 + $(use_with sasl gsasl) \
161 + $(use_with guile) \
162 + $(use_with kerberos gssapi) \
163 + $(use_with ldap) \
164 + $(use_with mysql) \
165 + $(use_enable nls) \
166 + $(use_enable pam) \
167 + $(use_with postgres) \
168 + $(use_enable python) \
169 + $(use_with ssl gnutls) \
170 + $(use_enable static-libs static) \
171 + $(use_enable threads pthread) \
172 + $(use_with tokyocabinet) \
173 + $(use_with kyotocabinet) \
174 + $(use_with tcpd tcp-wrappers) \
175 + $(use_enable servers build-servers) \
176 + $(use_with servers unistring ) \
177 + $(use_enable clients build-clients) \
178 + EMACS=$(usex emacs emacs no) \
179 + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
180 + --with-mail-spool=/var/spool/mail \
181 + --with-readline \
182 + --enable-sendmail \
183 + --disable-debug
184 +}
185 +
186 +src_install() {
187 + default
188 +
189 + insinto /etc
190 + # bug 613112
191 + newins "${FILESDIR}/mailutils.rc" mailutils.conf
192 + keepdir /etc/mailutils.d/
193 + insinto /etc/mailutils.d
194 + doins "${FILESDIR}/mail"
195 +
196 + if use python; then
197 + python_optimize
198 + if use static-libs; then
199 + rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
200 + fi
201 + fi
202 +
203 + if use servers; then
204 + newinitd "${FILESDIR}"/imap4d.initd imap4d
205 + newinitd "${FILESDIR}"/pop3d.initd pop3d
206 + newinitd "${FILESDIR}"/comsatd.initd comsatd
207 + fi
208 +
209 + # compatibility link
210 + if use clients && use split-usr; then
211 + dosym ../usr/bin/mail /bin/mail
212 + fi
213 +
214 + if ! use static-libs; then
215 + find "${D}" -name "*.la" -delete || die
216 + fi
217 +}