Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/msmtp/
Date: Thu, 04 Jun 2020 17:45:39
Message-Id: 1591292679.64858ed4098b904fe896318201118e83223ab05f.polynomial-c@gentoo
1 commit: 64858ed4098b904fe896318201118e83223ab05f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 4 17:44:39 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 4 17:44:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64858ed4
7
8 mail-mta/msmtp: Bump to version 1.8.11
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 mail-mta/msmtp/Manifest | 1 +
14 mail-mta/msmtp/msmtp-1.8.11.ebuild | 145 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 146 insertions(+)
16
17 diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
18 index c040e5e52ad..18d9a50db5d 100644
19 --- a/mail-mta/msmtp/Manifest
20 +++ b/mail-mta/msmtp/Manifest
21 @@ -1,3 +1,4 @@
22 DIST msmtp-1.8.10.tar.xz 355364 BLAKE2B b70143e28da8b64035448cbb61e133a5a1d35bc472316a3e164f2f168d67ef71455c583610afdfe522d33b77dea1a7ff55f9d6c200c6b1d9b3e2fcadb4fa10c1 SHA512 0d2280772ded3ed33036f7a9047c054f413e34f8264a82df26b85dc48000fa318d5400201ce0b888f3d821c629e25e17e5cf6b69b3e452b14e6883904b4ad83b
23 +DIST msmtp-1.8.11.tar.xz 356492 BLAKE2B 0ee4b9ee859b21c35776c037fa93a3b104a86103a5543b0a0c035d3c3a285d7e6cf7eb38e56b172c4dcd6cc536274b6d6661297b2e160b1e9eed659fadfb5e17 SHA512 77595ca3d06781aa908677edae08bef92840e69dde5db8eedb555327b671d87cde441181fa17342f5b9492e76f0520a49bfa86dafce9d93844137ae7f96eac16
24 DIST msmtp-1.8.7.tar.xz 340908 BLAKE2B 5241acf54d5a6af6ccf2c3bfd33954a5235af2d2cb467e4134401538e60e1847489a7a599359e2d13202ea9637c32a67ec5180372b139e06f6d47f060cba6c8f SHA512 5a079cb90b48853ad812125e8b341f5bcd5f5ba4725d62c37210050896527b63f993aa6393f1d4107636153bf0ed84b0288e88a7e78a119c66b2d58f1e69a67d
25 DIST msmtp-1.8.8.tar.xz 349740 BLAKE2B 005056e2bfeb97ccf2c86670a172157b6ba43e44bf1738fa9d75e6ca8bb7d952f118155b17a80db61ee4f10bdd009a72c2a7adf26b01296409b8998ac698f1ef SHA512 e519e04b0065e410007f6e47df435b7c5bde99ca7a1a2e9ff7528848c68f9809691cdf2c5b793d4e3e17a650a25ee31be66b0be47410f83972f281cf76926771
26
27 diff --git a/mail-mta/msmtp/msmtp-1.8.11.ebuild b/mail-mta/msmtp/msmtp-1.8.11.ebuild
28 new file mode 100644
29 index 00000000000..9c112ec7abd
30 --- /dev/null
31 +++ b/mail-mta/msmtp/msmtp-1.8.11.ebuild
32 @@ -0,0 +1,145 @@
33 +# Copyright 2004-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit fcaps multilib
39 +
40 +DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
41 +HOMEPAGE="https://marlam.de/msmtp/"
42 +SRC_URI="https://marlam.de/msmtp/releases/${P}.tar.xz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
47 +IUSE="daemon doc gnome-keyring idn +mta nls sasl ssl vim-syntax"
48 +
49 +# fcaps.eclass unconditionally defines "filecaps" USE flag which we need for
50 +# USE="daemon" in order to set the caps we need.
51 +REQUIRED_USE="daemon? ( filecaps )"
52 +
53 +# Upstream discourages usage of openssl. See also
54 +# https://marlam.de/msmtp/news/openssl-discouraged/
55 +DEPEND="
56 + gnome-keyring? ( app-crypt/libsecret )
57 + nls? ( virtual/libintl )
58 + sasl? ( virtual/gsasl )
59 + ssl? ( net-libs/gnutls[idn?] )
60 + !ssl? ( idn? ( net-dns/libidn2:= ) )
61 +"
62 +
63 +RDEPEND="${DEPEND}
64 + net-mail/mailbase
65 + daemon? (
66 + acct-group/msmtpd
67 + acct-user/msmtpd
68 + )
69 + mta? (
70 + !mail-mta/courier
71 + !mail-mta/esmtp
72 + !mail-mta/exim
73 + !mail-mta/mini-qmail
74 + !mail-mta/netqmail
75 + !mail-mta/nullmailer
76 + !mail-mta/postfix
77 + !mail-mta/qmail-ldap
78 + !mail-mta/sendmail
79 + !mail-mta/opensmtpd
80 + !<mail-mta/ssmtp-2.64-r2
81 + !>=mail-mta/ssmtp-2.64-r2[mta]
82 + )
83 +"
84 +
85 +BDEPEND="
86 + doc? ( virtual/texi2dvi )
87 + nls? ( sys-devel/gettext )
88 + virtual/pkgconfig
89 +"
90 +
91 +DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*"
92 +
93 +src_prepare() {
94 + # Use default Gentoo location for mail aliases
95 + sed 's:/etc/aliases:/etc/mail/aliases:' \
96 + -i scripts/find_alias/find_alias_for_msmtp.sh || die
97 +
98 + default
99 +}
100 +
101 +src_configure() {
102 + local myeconfargs=(
103 + --disable-gai-idn
104 + $(use_enable nls)
105 + $(use_with daemon msmtpd)
106 + $(use_with gnome-keyring libsecret)
107 + $(use_with idn libidn)
108 + $(use_with sasl libgsasl)
109 + $(use_with ssl tls gnutls)
110 + )
111 + econf "${myeconfargs[@]}"
112 +}
113 +
114 +src_compile() {
115 + default
116 +
117 + if use doc ; then
118 + cd doc || die
119 + emake html pdf
120 + fi
121 +}
122 +
123 +src_install() {
124 + default
125 +
126 + if use daemon ; then
127 + fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd
128 + newinitd "${FILESDIR}"/msmtpd.init msmtpd
129 + newconfd "${FILESDIR}"/msmtpd.confd msmtpd
130 + fi
131 +
132 + if use doc ; then
133 + dodoc doc/msmtp.{html,pdf}
134 + fi
135 +
136 + if use mta ; then
137 + dosym ../bin/msmtp /usr/sbin/sendmail
138 + dosym ../bin/msmtp /usr/$(get_libdir)/sendmail
139 + fi
140 +
141 + if use vim-syntax ; then
142 + insinto /usr/share/vim/vimfiles/syntax
143 + doins scripts/vim/msmtp.vim
144 + fi
145 +
146 + insinto /etc
147 + newins doc/msmtprc-system.example msmtprc
148 +
149 + src_install_contrib find_alias find_alias_for_msmtp.sh
150 + src_install_contrib msmtpqueue "*.sh" "README ChangeLog"
151 + src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq
152 + src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf
153 +}
154 +
155 +pkg_postinst() {
156 + if [[ -z ${REPLACING_VERSIONS} ]]; then
157 + einfo "Please edit ${EROOT}/etc/msmtprc before first use."
158 + einfo "In addition, per user configuration files can be placed"
159 + einfo "as '~/.msmtprc'. See the msmtprc-user.example file under"
160 + einfo "/usr/share/doc/${PF}/ for an example."
161 + fi
162 +}
163 +
164 +src_install_contrib() {
165 + subdir="$1"
166 + bins="$2"
167 + docs="$3"
168 + local dir=/usr/share/${PN}/${subdir}
169 + insinto ${dir}
170 + exeinto ${dir}
171 + for i in ${bins} ; do
172 + doexe scripts/${subdir}/${i}
173 + done
174 + for i in ${docs} ; do
175 + newdoc scripts/${subdir}/${i} ${subdir}.${i}
176 + done
177 +}