diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-28 09:04:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-28 09:04:00 +0100 |
commit | 35e8572a0d6310d3eac4be1600ef2de6cb6881ab (patch) | |
tree | b1e23ce27a671b4e74d3157e5a7968adcc7533f8 /mail-mta/msmtp | |
parent | 0b1f53c54388382ff701d00d3f5eb981ed040f2a (diff) |
gentoo auto-resync : 28:07:2022 - 09:04:00
Diffstat (limited to 'mail-mta/msmtp')
-rw-r--r-- | mail-mta/msmtp/Manifest | 1 | ||||
-rw-r--r-- | mail-mta/msmtp/msmtp-1.8.20-r1.ebuild | 148 |
2 files changed, 149 insertions, 0 deletions
diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest index 9b94b2759dda..06e57721183c 100644 --- a/mail-mta/msmtp/Manifest +++ b/mail-mta/msmtp/Manifest @@ -1,5 +1,6 @@ AUX msmtpd.confd 518 BLAKE2B e537ca90e9c4debd53936b227352b73f5ca1e7114ba8daa3121f1979dfc3495996a820276292ec6da63ce79d8f42bafb45c74daacb6778e5b56656aa9688ecbd SHA512 e6f4f39da73aace9f5a4f8e080ca897f51265b8806836366121d61f5367596955eefca377c5fe9c4094f3a9ecbe04801cf38fcc6017c73a9e4b7a68fc9a81528 AUX msmtpd.init 347 BLAKE2B 9faea920dc23ebcdb62b05595acf4f70dd3d654645ed0f5ba6f76316762986c9951905f675c2e527c5e0b5eee2bcf53a14e018d8d64080b97e82da4e3abaa0b8 SHA512 e3080dc1fb7b72b6332ebcd4f807780dc04d32b8d3e5740b62f618d5d8f39f7c2a119604e26282e1d98c1365fff7920944401c399267461fab7ae2cdfdac44d7 DIST msmtp-1.8.20.tar.xz 385696 BLAKE2B cf75715538a65ac0f6fb3b8407e5b7cec865d552b6ecc5a450f5e35d4e42581cfb9f15bb7edc67dae1846018a834769d4e3be5da60ae0e52390cb61531a29a87 SHA512 cc5ad4ab21d05f24bac75ab25607d1ede50f5ac24ce40d72cf1b61f9cdfc48e9af477f9975d799a93f1990d0c2e24b651e5a3b3aa6b71279b37a4a43fce11f11 +EBUILD msmtp-1.8.20-r1.ebuild 3373 BLAKE2B 2764027e82bf592e22251baf87c682fe45f8a61d28a345e33272638168f3d38170ae08dda5b5c0d859e5fe3421f9d32a953e750954f61ba723bb5a7d0cb294c7 SHA512 97e366299086fd5a18943bb0a9dff02184dd36c943ffc48046e4e226577e81d2ebcd4c7f189f247c133c13c631a4c5a846006642049441288e06791775a2eef7 EBUILD msmtp-1.8.20.ebuild 3295 BLAKE2B af1dd33dc889c181bb7d2bedc672ff256a601c35b5825e737d543bf90f668af587f6bc5aeee482f26b5f20dd5bf198d7cb9448cc7d28617cc2e5c6461db0ee16 SHA512 35bbc8225ee6c393efad2d1096a30f4ef4ba72c98b3f5ce1ccc63b1d35ada68fd99c25b957c64aab68d519bda73f68c71048b314e0b194af161a52b3fb1f439b MISC metadata.xml 465 BLAKE2B 7f717e69ef79495226cf6472403a9ddb3858e67857909bcf85f1cedabfbf72e97241013de8da77b38bb7753cf8787882179f2a5cc22dd6560830432fda7339f9 SHA512 0a3c7b60c57947be068a6eeb204d9c48fe5f939a4b4f830273e751f31bd6bc6ee97a674da7e2d31e12caff0cc2e0ebc99379d56b1ad1681c737bfd86496e05fc diff --git a/mail-mta/msmtp/msmtp-1.8.20-r1.ebuild b/mail-mta/msmtp/msmtp-1.8.20-r1.ebuild new file mode 100644 index 000000000000..2aa41783e3f1 --- /dev/null +++ b/mail-mta/msmtp/msmtp-1.8.20-r1.ebuild @@ -0,0 +1,148 @@ +# Copyright 2004-2022 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="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="daemon doc gnome-keyring +gnutls idn +mta nls sasl ssl vim-syntax" + +# 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=" + gnome-keyring? ( app-crypt/libsecret ) + idn? ( net-dns/libidn2:= ) + nls? ( virtual/libintl ) + sasl? ( virtual/gsasl ) + 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/mini-qmail + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !mail-mta/opensmtpd + !<mail-mta/ssmtp-2.64-r2 + !>=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 gnome-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 + cd doc || die + emake 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 + + if use vim-syntax ; then + insinto /usr/share/vim/vimfiles/syntax + doins scripts/vim/msmtp.vim + fi + + 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 +} |