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, 11 Dec 2018 12:13:30
Message-Id: 1544530399.8adb087d504fbd56388816b410971bc5f7af0c11.polynomial-c@gentoo
1 commit: 8adb087d504fbd56388816b410971bc5f7af0c11
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 12:13:02 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 12:13:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8adb087d
7
8 mail-mta/msmtp: Bump to version 1.8.1
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
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.1.ebuild | 147 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 148 insertions(+)
16
17 diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
18 index 5ed709294f0..174e66b4e3d 100644
19 --- a/mail-mta/msmtp/Manifest
20 +++ b/mail-mta/msmtp/Manifest
21 @@ -1,3 +1,4 @@
22 DIST msmtp-1.6.6.tar.xz 283744 BLAKE2B 41745d9f20a33b0e4c6f7eee3ad5897c5a555a8cd1e27eb0bf7d347054d072b9eadfc7a31583e12a4f35f071aa710bb403980cba0e06920f65fdb727c786447b SHA512 30f33648b66a6b230cd38d0eee4c916a631a51bddcc1a15c9f7b324305506cb83b9c95f95def9150d0b783d38000db409981331b3c6a756232f0ce49e9b343ab
23 DIST msmtp-1.6.8.tar.xz 294872 BLAKE2B 156237dcc10c320ef15b368ebfe823d6f30f1a740061c5846878a8e478c1f3a3129c52af8327995933ecb15cd8cec0c18a3104993b030bcbfa09e3b0b6c2a58b SHA512 58ccdb6f16ab31959aeb1929c11f820219d4be062edca209c5986e4e0932d718f6f39c81727d05cd448779cedc4ab3e7bb557ce9f5dd3e7cc95e0aa5c3b623bf
24 DIST msmtp-1.8.0.tar.xz 302680 BLAKE2B 41537a883dd59e1f2281c0428aa57af985a74aeaa9aad34bdce882c3cca79ad65a796b6ef509c7546079d8f3e647eb493481ddbd5f7781a92c560986cb9958a9 SHA512 986cf8ceca847b857f3884fcef26202429b3099820aa20e4e458768a80421bfb163d8aab9d950da2190ae0e2e95bafb80f4c2647d28dbd470d78c439bfba4f77
25 +DIST msmtp-1.8.1.tar.xz 303112 BLAKE2B 6de6c566a0de0f680f354066d1613b3b15be95c24098bdf7019e3f0289f5bce8478d2de65bf5711863617d41eb23b14b6157e25b92fce60f1cd4d33f4a593810 SHA512 00c5d8b810d48c171fc975115911c4cdf3e18efb91448800bdab320d0f850f4893343b436899722d3b9c82e3781c3e103dc31175c89a5c867511c14df5b9785a
26
27 diff --git a/mail-mta/msmtp/msmtp-1.8.1.ebuild b/mail-mta/msmtp/msmtp-1.8.1.ebuild
28 new file mode 100644
29 index 00000000000..07cedc460ef
30 --- /dev/null
31 +++ b/mail-mta/msmtp/msmtp-1.8.1.ebuild
32 @@ -0,0 +1,147 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit fcaps multilib user
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 + mta? (
66 + !mail-mta/courier
67 + !mail-mta/esmtp
68 + !mail-mta/exim
69 + !mail-mta/mini-qmail
70 + !mail-mta/netqmail
71 + !mail-mta/nullmailer
72 + !mail-mta/postfix
73 + !mail-mta/qmail-ldap
74 + !mail-mta/sendmail
75 + !mail-mta/opensmtpd
76 + !<mail-mta/ssmtp-2.64-r2
77 + !>=mail-mta/ssmtp-2.64-r2[mta]
78 + )
79 +"
80 +
81 +BDEPEND="${DEPEND}
82 + doc? ( virtual/texi2dvi )
83 + nls? ( sys-devel/gettext )
84 + virtual/pkgconfig
85 +"
86 +
87 +DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*"
88 +
89 +src_prepare() {
90 + # Use default Gentoo location for mail aliases
91 + sed -i 's:/etc/aliases:/etc/mail/aliases:' scripts/find_alias/find_alias_for_msmtp.sh || die
92 +
93 + default
94 +}
95 +
96 +src_configure() {
97 + local myeconfargs=(
98 + $(use_enable nls)
99 + $(use_with daemon msmtpd)
100 + $(use_with gnome-keyring libsecret)
101 + $(use_with idn libidn)
102 + $(use_with sasl libgsasl)
103 + $(use_with ssl tls gnutls)
104 + )
105 + econf "${myeconfargs[@]}"
106 +}
107 +
108 +src_compile() {
109 + default
110 +
111 + if use doc ; then
112 + cd doc || die
113 + emake html pdf
114 + fi
115 +}
116 +
117 +src_install() {
118 + default
119 +
120 + if use daemon ; then
121 + fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd
122 + newinitd "${FILESDIR}"/msmtpd.init msmtpd
123 + newconfd "${FILESDIR}"/msmtpd.confd msmtpd
124 + fi
125 +
126 + if use doc ; then
127 + dodoc doc/msmtp.{html,pdf}
128 + fi
129 +
130 + if use mta ; then
131 + dodir /usr/sbin
132 + dosym ../bin/msmtp /usr/sbin/sendmail
133 + dosym msmtp /usr/bin/sendmail
134 + dosym ../bin/msmtp /usr/$(get_libdir)/sendmail
135 + fi
136 +
137 + if use vim-syntax ; then
138 + insinto /usr/share/vim/vimfiles/syntax
139 + doins scripts/vim/msmtp.vim
140 + fi
141 +
142 + insinto /etc
143 + newins doc/msmtprc-system.example msmtprc
144 +
145 + src_install_contrib find_alias find_alias_for_msmtp.sh
146 + src_install_contrib msmtpqueue "*.sh" "README ChangeLog"
147 + src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq
148 + src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf
149 +}
150 +
151 +pkg_preinst() {
152 + if use daemon ; then
153 + enewuser msmtpd
154 + fi
155 +}
156 +
157 +pkg_postinst() {
158 + if [[ -z ${REPLACING_VERSIONS} ]]; then
159 + einfo "Please edit ${EROOT%/}/etc/msmtprc before first use."
160 + einfo "In addition, per user configuration files can be placed"
161 + einfo "as '~/.msmtprc'. See the msmtprc-user.example file under"
162 + einfo "/usr/share/doc/${PF}/ for an example."
163 + fi
164 +}
165 +
166 +src_install_contrib() {
167 + subdir="$1"
168 + bins="$2"
169 + docs="$3"
170 + local dir=/usr/share/${PN}/${subdir}
171 + insinto ${dir}
172 + exeinto ${dir}
173 + for i in ${bins} ; do
174 + doexe scripts/${subdir}/${i}
175 + done
176 + for i in ${docs} ; do
177 + newdoc scripts/${subdir}/${i} ${subdir}.${i}
178 + done
179 +}