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: Tue, 14 Sep 2021 09:20:41
Message-Id: 1631611225.7c5f67ca175c44c04f6fe24138bed41a27ad9582.polynomial-c@gentoo
1 commit: 7c5f67ca175c44c04f6fe24138bed41a27ad9582
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 14 09:16:13 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 09:20:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c5f67ca
7
8 mail-mta/msmtp: Bump to version 1.8.16
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.16.ebuild | 145 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 146 insertions(+)
15
16 diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
17 index c6a776ec6ff..41e23d8ca24 100644
18 --- a/mail-mta/msmtp/Manifest
19 +++ b/mail-mta/msmtp/Manifest
20 @@ -1,3 +1,4 @@
21 DIST msmtp-1.8.12.tar.xz 364712 BLAKE2B 94707d18d9be71e8e51413cdcc55887fc15bd7d0f059d54cfcf4e07b5589febbb9ed4025206e3b82d1b12edad45086d3ad8a47fb3d37488a49e46984d7b7bc32 SHA512 8620e5e9a88a49769cfdbf2aa83842b230b3fd1584641d17129cb404e3c9696edd5a28237ef46a115ca82d2a846c0f653eaa837ba6f8512f8b57493d64451df8
22 DIST msmtp-1.8.14.tar.xz 363988 BLAKE2B 46953512002365f8e80e1bdf80f8513845bae62bcfcbe8334642b7a51f2d7da7719e3c1812d43e2a887162d45a1b29893744f452f6ac7dc205fd72a578eec39f SHA512 fa274849082553b14aef922c43b84fa6226a26638747ed3ef6baae9d97ff753b24f5eca055426c2e0355df81b2458f524d940faf2a7db771d80fb027e9f45e8b
23 DIST msmtp-1.8.15.tar.xz 370736 BLAKE2B 08673535603a7e768b11dea9d1b6a6e00ef9e6948c891572d39b0a8ba1eb1413d1ab71ff877cba1427ee58c25c87b817b4f20f3aad207a8f0a785306fcecbd8e SHA512 66c722f65590785f005631f0edb46f427cc4d9028c71ffbb1fb4eaa8d8fdacaadbcf24f81edc41e464e156b2beb65ecd1166b3d4aad4630ccd9fcaaa2e72e2a6
24 +DIST msmtp-1.8.16.tar.xz 375372 BLAKE2B 4567c323bf2f53fa878ed315dc4a2c524918de22305d2034be476373409bc61a9c841f0b9c6075e06e47eceb816ea24e9d6cb71c2bd94d9ba6738ae36ccb09b7 SHA512 5e7e39927007fe8e1763b13a83f44f6456e8e9efade8e1c3148f34d5c2b5aff51b1e4519337628776e6bce91066de9f145c7c2957927cadb0962a25452a47247
25
26 diff --git a/mail-mta/msmtp/msmtp-1.8.16.ebuild b/mail-mta/msmtp/msmtp-1.8.16.ebuild
27 new file mode 100644
28 index 00000000000..77956182178
29 --- /dev/null
30 +++ b/mail-mta/msmtp/msmtp-1.8.16.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 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"
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 +}