summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2017-06-23 09:33:04 +0300
committerEray Aslan <eras@gentoo.org>2017-06-23 09:33:04 +0300
commitb4b04db0ed7ef58a6783b359fc483d91324f9714 (patch)
treee50f4341816fec14addf25d1057a053c6031b6d8 /mail-mta/msmtp
parentnet-mail/tnef: remove vulnerable version (diff)
downloadgentoo-b4b04db0ed7ef58a6783b359fc483d91324f9714.tar.gz
gentoo-b4b04db0ed7ef58a6783b359fc483d91324f9714.tar.bz2
gentoo-b4b04db0ed7ef58a6783b359fc483d91324f9714.zip
mail-mta/msmtp: remove old
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'mail-mta/msmtp')
-rw-r--r--mail-mta/msmtp/Manifest5
-rw-r--r--mail-mta/msmtp/msmtp-1.6.1.ebuild129
-rw-r--r--mail-mta/msmtp/msmtp-1.6.2.ebuild132
-rw-r--r--mail-mta/msmtp/msmtp-1.6.3.ebuild132
-rw-r--r--mail-mta/msmtp/msmtp-1.6.4.ebuild132
-rw-r--r--mail-mta/msmtp/msmtp-1.6.5.ebuild134
6 files changed, 0 insertions, 664 deletions
diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest
index e5e1ba333e18..64dc962519f4 100644
--- a/mail-mta/msmtp/Manifest
+++ b/mail-mta/msmtp/Manifest
@@ -1,6 +1 @@
-DIST msmtp-1.6.1.tar.xz 279324 SHA256 c45d47f2dc77484e3f74c0f66aef0d5d95de6c47ed71d9f926d86d546f8346f3 SHA512 ad36e46e137136c85b470c24180db89bbd9b12a362a8dcb2883fa66a1f9233bffa24b929935e0dd7557f820711eedb6e96c0674244725b559c5237ce4f2425ed WHIRLPOOL a949980f3b277d1a259098aed792d50393f18fdd03e378222d933fb4c5e88628533625c4149cc79105a74384e3d02ce3a5ef6093759634e3573bf93021c1208d
-DIST msmtp-1.6.2.tar.xz 280292 SHA256 2f6ecd7cbfadf548fd55205bd24cb63b84bcbb1185efed917dd7800595a48789 SHA512 74fb87cbf561e59059f7e5587167fb969348077b569d64dbdbfaa39820e6dc02968d77f3bc182fa714a198fa9eeebd80184b44961e2370be5660c8626b483854 WHIRLPOOL 08d54c744e32b2630566d8ef0fb56f960321882cb246e01edc3f56e27419097c5efad50ccc747c96aa6b9fc3ba08bc9ecd9a7c67e33337b9bc6dd7c33ca42111
-DIST msmtp-1.6.3.tar.xz 282408 SHA256 f982be069c0772c3ee83925f552f5dac5fb307d2d1c68202f9926bb13b757355 SHA512 ac594e90d9ef6369fcbe130b0c05095b5729b7199129c44695edf2a4431c175edd5df1d9dadabf3f7734611acbe68d21fc4d3a446ba7c2eb7e9b811f7c07c5f2 WHIRLPOOL e45c4b7f2487e3ca96399331be934e05129eccc60f592dc14fce982003fca1efa237fcac842ab95a6a0ca7c3fc9762ffb8ffdd389eebb43208094ce830d5da30
-DIST msmtp-1.6.4.tar.xz 282840 SHA256 9b49c022a5440d41b6782c97ef2977d0346c3dae05aa8836243a9953e982d1cd SHA512 a4e84b61ab66fcbd1cd8e03b23b5911a688d1e90affff1637b0fa2b607c051b816fba85883961f0bcbf65b0734b026710af22ace0d02efaa937b3106a901e810 WHIRLPOOL a9a302f1d32bcb70de6e1f89ff7c02464e19409b241540b562a25fd36800f403d9555b016f37df22debb3ee68bf23a1a01d11ae35065ac9508f5ac47ee53ff58
-DIST msmtp-1.6.5.tar.xz 283284 SHA256 76a0d60693c7e65d0c7a12f01d300882d280b1e1be0202f54730ae44d44a5006 SHA512 0ce031aec2f8bf882a0331a20cce77d3fb740a481e7a327510ac19094d6c5c8b7d4c8a7bc964acab34b9448cfedc29df2c4cdccd62e14ec93a2b4df11a43ad5c WHIRLPOOL 0e0422104fd11c11a573b7b241e2f141951bff24632a11899377fe23979977524904ab4c76326b338bdd5d24387fa333e2d103c018544c278582dd189e2a631e
DIST msmtp-1.6.6.tar.xz 283744 SHA256 da15db1f62bd0201fce5310adb89c86188be91cd745b7cb3b62b81a501e7fb5e SHA512 30f33648b66a6b230cd38d0eee4c916a631a51bddcc1a15c9f7b324305506cb83b9c95f95def9150d0b783d38000db409981331b3c6a756232f0ce49e9b343ab WHIRLPOOL 2b5d3faad7165c15dfca18bd1703fcf67065897d59ab57f11bcc1ce532ece97110affd269d923b070c275b7f92a68911355219b7a5619897bb01ee19b28b10ea
diff --git a/mail-mta/msmtp/msmtp-1.6.1.ebuild b/mail-mta/msmtp/msmtp-1.6.1.ebuild
deleted file mode 100644
index 7287ceed93d7..000000000000
--- a/mail-mta/msmtp/msmtp-1.6.1.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit multilib
-
-DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
-HOMEPAGE="http://msmtp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/msmtp/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE="doc gnutls idn 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? ( dev-libs/openssl )
- )
-"
-
-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
-}
-
-src_configure() {
- econf \
- $(use_enable nls) \
- $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
- $(use_with sasl libgsasl) \
- $(use_with idn libidn) \
- $(use_with libsecret )
-}
-
-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 /usr/bin/msmtp /usr/sbin/sendmail
- dosym /usr/bin/msmtp /usr/bin/sendmail
- dosym /usr/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
-}
diff --git a/mail-mta/msmtp/msmtp-1.6.2.ebuild b/mail-mta/msmtp/msmtp-1.6.2.ebuild
deleted file mode 100644
index 8aca5dfaa630..000000000000
--- a/mail-mta/msmtp/msmtp-1.6.2.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit multilib
-
-DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
-HOMEPAGE="http://msmtp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/msmtp/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~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
-}
-
-src_configure() {
- econf \
- $(use_enable nls) \
- $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
- $(use_with sasl libgsasl) \
- $(use_with idn libidn) \
- $(use_with libsecret )
-}
-
-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 /usr/bin/msmtp /usr/sbin/sendmail
- dosym /usr/bin/msmtp /usr/bin/sendmail
- dosym /usr/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
-}
diff --git a/mail-mta/msmtp/msmtp-1.6.3.ebuild b/mail-mta/msmtp/msmtp-1.6.3.ebuild
deleted file mode 100644
index dec059246dd3..000000000000
--- a/mail-mta/msmtp/msmtp-1.6.3.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit multilib
-
-DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
-HOMEPAGE="http://msmtp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/msmtp/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~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
-}
-
-src_configure() {
- econf \
- $(use_enable nls) \
- $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
- $(use_with sasl libgsasl) \
- $(use_with idn libidn) \
- $(use_with libsecret )
-}
-
-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 /usr/bin/msmtp /usr/sbin/sendmail
- dosym /usr/bin/msmtp /usr/bin/sendmail
- dosym /usr/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
-}
diff --git a/mail-mta/msmtp/msmtp-1.6.4.ebuild b/mail-mta/msmtp/msmtp-1.6.4.ebuild
deleted file mode 100644
index dec059246dd3..000000000000
--- a/mail-mta/msmtp/msmtp-1.6.4.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit multilib
-
-DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
-HOMEPAGE="http://msmtp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/msmtp/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~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
-}
-
-src_configure() {
- econf \
- $(use_enable nls) \
- $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
- $(use_with sasl libgsasl) \
- $(use_with idn libidn) \
- $(use_with libsecret )
-}
-
-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 /usr/bin/msmtp /usr/sbin/sendmail
- dosym /usr/bin/msmtp /usr/bin/sendmail
- dosym /usr/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
-}
diff --git a/mail-mta/msmtp/msmtp-1.6.5.ebuild b/mail-mta/msmtp/msmtp-1.6.5.ebuild
deleted file mode 100644
index 9b0baedcda5c..000000000000
--- a/mail-mta/msmtp/msmtp-1.6.5.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit multilib
-
-DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
-HOMEPAGE="http://msmtp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/msmtp/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~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() {
- econf \
- $(use_enable nls) \
- $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
- $(use_with sasl libgsasl) \
- $(use_with idn libidn) \
- $(use_with libsecret )
-}
-
-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 /usr/bin/msmtp /usr/sbin/sendmail
- dosym /usr/bin/msmtp /usr/bin/sendmail
- dosym /usr/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
-}