summaryrefslogtreecommitdiff
path: root/mail-mta/msmtp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-23 07:00:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-23 07:00:28 +0100
commite23cdda4dbb0c83b9e682ab5e916085a35203da5 (patch)
tree5a4ac448a3b288b731c24d947e0ce52df3cab07b /mail-mta/msmtp
parent8187a741807f3e9a9e26304973cf18087dcf2560 (diff)
gentoo resync : 23.06.2018
Diffstat (limited to 'mail-mta/msmtp')
-rw-r--r--mail-mta/msmtp/Manifest2
-rw-r--r--mail-mta/msmtp/msmtp-1.6.7.ebuild137
2 files changed, 139 insertions, 0 deletions
diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
index 0c10e55659e3..10cbc98bf30f 100644
--- a/mail-mta/msmtp/Manifest
+++ b/mail-mta/msmtp/Manifest
@@ -1,3 +1,5 @@
DIST msmtp-1.6.6.tar.xz 283744 BLAKE2B 41745d9f20a33b0e4c6f7eee3ad5897c5a555a8cd1e27eb0bf7d347054d072b9eadfc7a31583e12a4f35f071aa710bb403980cba0e06920f65fdb727c786447b SHA512 30f33648b66a6b230cd38d0eee4c916a631a51bddcc1a15c9f7b324305506cb83b9c95f95def9150d0b783d38000db409981331b3c6a756232f0ce49e9b343ab
+DIST msmtp-1.6.7.tar.xz 293208 BLAKE2B 9d493c45a96a0e5e7278d9af89ff74dff92b8699076f17ae556030df55861b2fa9a06f677d2641744ba2a55989ebdc981ae1902c99884675562dd03586768ec9 SHA512 453d4196168a7ad2413cf2a91af25ed8ec73b04ea12f8cc40f6342a892baeb9edfbeba4a555a3a22d11881b831b4cd11b5f2844f66f2a6e7b891422edd9c68d9
EBUILD msmtp-1.6.6.ebuild 2963 BLAKE2B 888b4350f2128a11ca0f021dd2780bf774bcfed0865cc40fb2b8de7b743c8c235c40e10b241ba71277e8fedcb65d59d9a952226be239fb4736b6de92c456be1e SHA512 f71fc3f8e8c791c7609b72f4d5fc875a6e66719547f963637d8f16ed1f50014ce559e75b6c61de0eb4a80c28013bc897b8a6a75ad1357e894b68c2f6816a93c8
+EBUILD msmtp-1.6.7.ebuild 3011 BLAKE2B 9a7b702253fbec5765d3a94ffdc7c72da51bc755f5fa2deae8ef9a83efd732dd09717bdff8f78ebea7699f81b0e2d8e8ef732a13f5f416c2f713fdcaff2c0e93 SHA512 373436dcdd78fc48474935cce72ecc8af85c4e5dc11933522e4aed6224bf6dd15e059f745d7f7896a16cfdc3e63cb346407e4144d95f3907c2b64ab75e0a3738
MISC metadata.xml 486 BLAKE2B e1ad25bbf9c7d8309ea8a47b67bb6c3b40230bc1764f6ca5ec4e735b4d34d983fcddf509bdfd7a8776162e313db6d8a492d75835d69d32e8db54ec4f5c6ccf5c SHA512 d52248bba8e2702bb75568c239de59d57592d5957ef4724079c5b75ecfff1ad7e193fe85a6d98cd49a6d462178dae3adc43b41a3869169c122c95990b066c820
diff --git a/mail-mta/msmtp/msmtp-1.6.7.ebuild b/mail-mta/msmtp/msmtp-1.6.7.ebuild
new file mode 100644
index 000000000000..73c12e7a084f
--- /dev/null
+++ b/mail-mta/msmtp/msmtp-1.6.7.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib
+
+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 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc gnutls idn libressl libsecret +mta nls sasl ssl vim-syntax"
+
+CDEPEND="
+ idn? ( net-dns/libidn:= )
+ libsecret? ( app-crypt/libsecret )
+ nls? ( virtual/libintl )
+ sasl? ( virtual/gsasl )
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )
+"
+
+RDEPEND="${CDEPEND}
+ net-mail/mailbase
+ 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]
+ )
+"
+
+DEPEND="${CDEPEND}
+ doc? ( virtual/texi2dvi )
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+REQUIRED_USE="gnutls? ( ssl )"
+
+DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*"
+
+src_prepare() {
+ # Use default Gentoo location for mail aliases
+ sed -i 's:/etc/aliases:/etc/mail/aliases:' scripts/find_alias/find_alias_for_msmtp.sh || die
+
+ default
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_with ssl ssl $(usex gnutls gnutls openssl))
+ $(use_with sasl libgsasl)
+ $(use_with idn libidn)
+ $(use_with libsecret )
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ default
+
+ if use doc ; then
+ cd doc || die
+ emake html pdf
+ fi
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ dohtml doc/msmtp.html
+ dodoc doc/msmtp.pdf
+ fi
+
+ if use mta ; then
+ dodir /usr/sbin
+ dosym ../bin/msmtp /usr/sbin/sendmail
+ dosym msmtp /usr/bin/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 ${ROOT}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
+}