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 Nov 2021 19:18:09
Message-Id: 1636053466.b83a660176865a56628f9347f6bced9a66a9d2a9.polynomial-c@gentoo
1 commit: b83a660176865a56628f9347f6bced9a66a9d2a9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 4 19:16:05 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 19:17:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b83a6601
7
8 mail-mta/msmtp: Bump to version 1.8.19
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 mail-mta/msmtp/Manifest | 1 +
13 mail-mta/msmtp/msmtp-1.8.19.ebuild | 145 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 146 insertions(+)
15
16 diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
17 index ae8c0411c35..d188b1efdf6 100644
18 --- a/mail-mta/msmtp/Manifest
19 +++ b/mail-mta/msmtp/Manifest
20 @@ -1,3 +1,4 @@
21 DIST msmtp-1.8.16.tar.xz 375372 BLAKE2B 4567c323bf2f53fa878ed315dc4a2c524918de22305d2034be476373409bc61a9c841f0b9c6075e06e47eceb816ea24e9d6cb71c2bd94d9ba6738ae36ccb09b7 SHA512 5e7e39927007fe8e1763b13a83f44f6456e8e9efade8e1c3148f34d5c2b5aff51b1e4519337628776e6bce91066de9f145c7c2957927cadb0962a25452a47247
22 DIST msmtp-1.8.17.tar.xz 379876 BLAKE2B 61394172603948a3fc2110e1c0f54e53eb45b6990bc0557693445a0ffd36ea64dacde5d8defa205b219f8b8b8d778b513ee222d94e6ddce26d91dfbdfce4b12e SHA512 a6f8f30af47e432ffaef5b47b105f6b4ea0a6ca3069689137c66112b6425eca8775ad4f7606c3ca0dfc132c14c6f9969767329615a82d1f5a11f07dfdf151ced
23 DIST msmtp-1.8.18.tar.xz 380776 BLAKE2B 33d1c4da55537248fcd317d1813eff43951e70dea86cfeabd387cbd1443be062a48fc0362452a7b744a3e6371ccfc88881493d244e48c3793ae13c1d2c8b772f SHA512 904da49a4ab92011f05403f32c8a23065ce2ba1afaaa3eea3a2607c98caf5f7e2f786e49695c37cb51f7c1551236eb555d404b49576b9026cf163d229b7f94d8
24 +DIST msmtp-1.8.19.tar.xz 383100 BLAKE2B 4a24fc63f8d1057bceaede09050bd2fa81ae9cfe20f5663dd1766b261634af580a190fdbbff36a0373e804fe2d6b357268d349bf78a4c8c47ec87b63e03f7798 SHA512 0be193fc0a415824e311f88b57521898caaed49737370b6ae688c7f75e3ff5bc3dc9d87d9d08289b46a1b9650b2a48fb3cd40fb156f894b3fe805136d124f1bd
25
26 diff --git a/mail-mta/msmtp/msmtp-1.8.19.ebuild b/mail-mta/msmtp/msmtp-1.8.19.ebuild
27 new file mode 100644
28 index 00000000000..9e91391eb5d
29 --- /dev/null
30 +++ b/mail-mta/msmtp/msmtp-1.8.19.ebuild
31 @@ -0,0 +1,145 @@
32 +# Copyright 2004-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit fcaps
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 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-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 + idn? ( net-dns/libidn2:= )
57 + nls? ( virtual/libintl )
58 + sasl? ( virtual/gsasl )
59 + ssl? ( net-libs/gnutls[idn?] )
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 +}