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: Sun, 13 Jan 2019 01:10:47
Message-Id: 1547341832.d7944d8c21c39b6ab30bb376fd161adb09d800bb.polynomial-c@gentoo
1 commit: d7944d8c21c39b6ab30bb376fd161adb09d800bb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 13 01:10:11 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 13 01:10:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7944d8c
7
8 mail-mta/msmtp: Bump to version 1.8.2
9
10 Package-Manager: Portage-2.3.55, 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.2.ebuild | 148 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 149 insertions(+)
16
17 diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
18 index 1e1abac098f..ab1f596b3d2 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.1.tar.xz 303112 BLAKE2B 6de6c566a0de0f680f354066d1613b3b15be95c24098bdf7019e3f0289f5bce8478d2de65bf5711863617d41eb23b14b6157e25b92fce60f1cd4d33f4a593810 SHA512 00c5d8b810d48c171fc975115911c4cdf3e18efb91448800bdab320d0f850f4893343b436899722d3b9c82e3781c3e103dc31175c89a5c867511c14df5b9785a
25 +DIST msmtp-1.8.2.tar.xz 335760 BLAKE2B 64952a3614845d72a1e2107ea4c8a2d3599d5aa602928b31c85544a7b2aabef9a22a1371fc68cf4d040317e615448a4f09e473bc0b598359e9d58323ac55302c SHA512 1f37be6f6bb01ddb3ba202673d7ba6457e6e9d8cfb718fdb5e9c19162b85e08c1487f160011775e626df0e37c414dcfbb20380d14084fbe80c46287eec15f5e6
26
27 diff --git a/mail-mta/msmtp/msmtp-1.8.2.ebuild b/mail-mta/msmtp/msmtp-1.8.2.ebuild
28 new file mode 100644
29 index 00000000000..94bbeb282bd
30 --- /dev/null
31 +++ b/mail-mta/msmtp/msmtp-1.8.2.ebuild
32 @@ -0,0 +1,148 @@
33 +# Copyright 1999-2019 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 + --disable-gai-idn
99 + $(use_enable nls)
100 + $(use_with daemon msmtpd)
101 + $(use_with gnome-keyring libsecret)
102 + $(use_with idn libidn)
103 + $(use_with sasl libgsasl)
104 + $(use_with ssl tls gnutls)
105 + )
106 + econf "${myeconfargs[@]}"
107 +}
108 +
109 +src_compile() {
110 + default
111 +
112 + if use doc ; then
113 + cd doc || die
114 + emake html pdf
115 + fi
116 +}
117 +
118 +src_install() {
119 + default
120 +
121 + if use daemon ; then
122 + fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd
123 + newinitd "${FILESDIR}"/msmtpd.init msmtpd
124 + newconfd "${FILESDIR}"/msmtpd.confd msmtpd
125 + fi
126 +
127 + if use doc ; then
128 + dodoc doc/msmtp.{html,pdf}
129 + fi
130 +
131 + if use mta ; then
132 + dodir /usr/sbin
133 + dosym ../bin/msmtp /usr/sbin/sendmail
134 + dosym msmtp /usr/bin/sendmail
135 + dosym ../bin/msmtp /usr/$(get_libdir)/sendmail
136 + fi
137 +
138 + if use vim-syntax ; then
139 + insinto /usr/share/vim/vimfiles/syntax
140 + doins scripts/vim/msmtp.vim
141 + fi
142 +
143 + insinto /etc
144 + newins doc/msmtprc-system.example msmtprc
145 +
146 + src_install_contrib find_alias find_alias_for_msmtp.sh
147 + src_install_contrib msmtpqueue "*.sh" "README ChangeLog"
148 + src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq
149 + src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf
150 +}
151 +
152 +pkg_preinst() {
153 + if use daemon ; then
154 + enewuser msmtpd
155 + fi
156 +}
157 +
158 +pkg_postinst() {
159 + if [[ -z ${REPLACING_VERSIONS} ]]; then
160 + einfo "Please edit ${EROOT%/}/etc/msmtprc before first use."
161 + einfo "In addition, per user configuration files can be placed"
162 + einfo "as '~/.msmtprc'. See the msmtprc-user.example file under"
163 + einfo "/usr/share/doc/${PF}/ for an example."
164 + fi
165 +}
166 +
167 +src_install_contrib() {
168 + subdir="$1"
169 + bins="$2"
170 + docs="$3"
171 + local dir=/usr/share/${PN}/${subdir}
172 + insinto ${dir}
173 + exeinto ${dir}
174 + for i in ${bins} ; do
175 + doexe scripts/${subdir}/${i}
176 + done
177 + for i in ${docs} ; do
178 + newdoc scripts/${subdir}/${i} ${subdir}.${i}
179 + done
180 +}