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