|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.61.ebuild,v 1.14 2005/10/09 06:39:40 vapier Exp $ | # $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.61.ebuild,v 1.14 2005/10/09 06:39:40 vapier Exp $ |
| |
inherit eutils |
inherit eutils toolchain-funcs |
| |
DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub" | DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub" |
HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/" |
# Point HOMEPAGE to something that looks like one: |
|
HOMEPAGE="http://packages.debian.org/stable/mail/ssmtp" |
SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz" | SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz" |
| |
LICENSE="GPL-2" | LICENSE="GPL-2" |
|
|
| |
S=${WORKDIR}/ssmtp-2.61 | S=${WORKDIR}/ssmtp-2.61 |
| |
|
src_unpack() { |
|
unpack "${A}" |
|
cd "${S}" |
|
# Fix upstream bug http://bugs.debian.org/315248 : |
|
epatch ${FILESDIR}/ssmtp-buf-init.patch |
|
} |
|
|
src_compile() { | src_compile() { |
|
# Bug 112795: |
|
tc-export CC LD |
|
|
econf \ | econf \ |
--sysconfdir=/etc/ssmtp \ | --sysconfdir=/etc/ssmtp \ |
$(use_enable ssl) \ | $(use_enable ssl) \ |
|
|
#removing the sendmail.8 symlink to support multiple installed mtas. | #removing the sendmail.8 symlink to support multiple installed mtas. |
#dosym /usr/share/man/man8/ssmtp.8 /usr/share/man/man8/sendmail.8 | #dosym /usr/share/man/man8/ssmtp.8 /usr/share/man/man8/sendmail.8 |
dodoc COPYING INSTALL README TLS CHANGELOG_OLD | dodoc COPYING INSTALL README TLS CHANGELOG_OLD |
dodoc debian/{README.debian,changelog} |
# This subdir has apparently disappeared in a later release: |
|
#dodoc debian/{README.debian,changelog} |
newdoc ssmtp.lsm DESC | newdoc ssmtp.lsm DESC |
insinto /etc/ssmtp | insinto /etc/ssmtp |
doins ssmtp.conf revaliases | doins ssmtp.conf revaliases |