Gentoo Archives: gentoo-commits

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