From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D7DD15807A for ; Mon, 7 Oct 2024 08:31:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CCC4E29AD; Mon, 7 Oct 2024 08:31:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4224EE29AD for ; Mon, 7 Oct 2024 08:31:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 44C9034311D for ; Mon, 7 Oct 2024 08:31:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A87EDB36 for ; Mon, 7 Oct 2024 08:31:00 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1728289837.62f462fc2079f543dadf5957b225f6a74c0d94b7.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/msmtp/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-mta/msmtp/Manifest mail-mta/msmtp/msmtp-1.8.27.ebuild X-VCS-Directories: mail-mta/msmtp/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 62f462fc2079f543dadf5957b225f6a74c0d94b7 X-VCS-Branch: master Date: Mon, 7 Oct 2024 08:31:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: adb7ed55-7cde-4671-ad86-e5b243536bd4 X-Archives-Hash: 93b9b7e587f868b7cb99f1b1285ca4fa commit: 62f462fc2079f543dadf5957b225f6a74c0d94b7 Author: Yixun Lan gentoo org> AuthorDate: Mon Oct 7 05:03:31 2024 +0000 Commit: Yixun Lan gentoo org> CommitDate: Mon Oct 7 08:30:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62f462fc mail-mta/msmtp: add 1.8.27 Signed-off-by: Yixun Lan gentoo.org> mail-mta/msmtp/Manifest | 1 + mail-mta/msmtp/msmtp-1.8.27.ebuild | 144 +++++++++++++++++++++++++++++++++++++ 2 files changed, 145 insertions(+) diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest index 48b5ac6179fa..c34fd5aa8384 100644 --- a/mail-mta/msmtp/Manifest +++ b/mail-mta/msmtp/Manifest @@ -1 +1,2 @@ DIST msmtp-1.8.26.tar.xz 419644 BLAKE2B 55373fef589bc0cee8ad6091b4988b622e302ef1720c423b306bbfaa4b44fe59a8c6d7aeb9f32e672873a3f5b0f8f777c1c6c7729e84b3324e5f6812ee9b69a7 SHA512 36fa4a571079b0e1141e645f2a565f3c7699e1899f6ece66e3539bed595473488bdf147ed6ff1bff103c6240e484b2c357122292d5eae65ac4c0f74215eb556c +DIST msmtp-1.8.27.tar.xz 440000 BLAKE2B 4264d516cbd5126d4ed57c033221b322c1a9bc7af506b96083d988e8d278227c24718773227fc840acbe6e21329c8b2aee3b0f6744546a34aca094238f5a23fc SHA512 1d4cdc1f8942a194f202f89c44d1c1ae035b4f3cdda856427d29021d1b8e923bcee1067973e0dd73495540294b109b0deab52177d03f76d7a74c85ccfb56597d diff --git a/mail-mta/msmtp/msmtp-1.8.27.ebuild b/mail-mta/msmtp/msmtp-1.8.27.ebuild new file mode 100644 index 000000000000..eed02b4a4dcf --- /dev/null +++ b/mail-mta/msmtp/msmtp-1.8.27.ebuild @@ -0,0 +1,144 @@ +# Copyright 2004-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps + +DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt" +HOMEPAGE="https://marlam.de/msmtp/" +SRC_URI="https://marlam.de/msmtp/releases/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="daemon doc keyring +gnutls idn +mta nls sasl ssl" + +# fcaps.eclass unconditionally defines "filecaps" USE flag which we need for +# USE="daemon" in order to set the caps we need. +REQUIRED_USE="daemon? ( filecaps )" + +# Upstream discourages usage of openssl. See also +# https://marlam.de/msmtp/news/openssl-discouraged/ +DEPEND=" + idn? ( net-dns/libidn2:= ) + nls? ( virtual/libintl ) + keyring? ( app-crypt/libsecret ) + sasl? ( net-misc/gsasl[client] ) + ssl? ( + gnutls? ( net-libs/gnutls[idn?] ) + !gnutls? ( dev-libs/libretls:= ) + ) +" + +RDEPEND="${DEPEND} + net-mail/mailbase + daemon? ( + acct-group/msmtpd + acct-user/msmtpd + ) + mta? ( + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/sendmail + !mail-mta/opensmtpd + !>=mail-mta/ssmtp-2.64-r2[mta] + ) +" + +BDEPEND=" + doc? ( virtual/texi2dvi ) + nls? ( sys-devel/gettext ) + virtual/pkgconfig +" + +DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*" + +src_prepare() { + # Use default Gentoo location for mail aliases + sed 's:/etc/aliases:/etc/mail/aliases:' \ + -i scripts/find_alias/find_alias_for_msmtp.sh || die + + default +} + +src_configure() { + local myeconfargs=( + --disable-gai-idn + $(use_enable nls) + $(use_with daemon msmtpd) + $(use_with keyring libsecret) + $(use_with idn libidn) + $(use_with sasl libgsasl) + $(use_with ssl tls $(usex gnutls gnutls libtls)) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use doc; then + emake -C doc html pdf + fi +} + +src_install() { + default + + if use daemon ; then + fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd + newinitd "${FILESDIR}"/msmtpd.init msmtpd + newconfd "${FILESDIR}"/msmtpd.confd msmtpd + fi + + if use doc ; then + dodoc doc/msmtp.{html,pdf} + fi + + if use mta ; then + dosym ../bin/msmtp /usr/sbin/sendmail + dosym ../bin/msmtp /usr/$(get_libdir)/sendmail + fi + + for i in syntax ftdetect ftplugin; do + insinto /usr/share/vim/vimfiles/$i + doins scripts/vim/$i/msmtp.vim + done + + insinto /etc + newins doc/msmtprc-system.example msmtprc + + src_install_contrib find_alias find_alias_for_msmtp.sh + src_install_contrib msmtpqueue "*.sh" "README ChangeLog" + src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq + src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + einfo "Please edit ${EROOT}/etc/msmtprc before first use." + einfo "In addition, per user configuration files can be placed" + einfo "as '~/.msmtprc'. See the msmtprc-user.example file under" + einfo "/usr/share/doc/${PF}/ for an example." + fi +} + +src_install_contrib() { + subdir="$1" + bins="$2" + docs="$3" + local dir=/usr/share/${PN}/${subdir} + insinto ${dir} + exeinto ${dir} + for i in ${bins} ; do + doexe scripts/${subdir}/${i} + done + for i in ${docs} ; do + newdoc scripts/${subdir}/${i} ${subdir}.${i} + done +}