1
0
forked from ports/opt
opt/ssmtp/Pkgfile
2005-11-17 16:42:42 +00:00

31 lines
1009 B
Plaintext

# Description: Extremely simple MTA to get mail off the system to a mail hub
# URL: http://packages.debian.org/unstable/mail/ssmtp.html
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: openssl
name=ssmtp
version=2.61
release=1
source=(http://ftp.debian.org/debian/pool/main/s/$name/${name}_${version}.orig.tar.gz)
build () {
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-inet6 \
--enable-ssl \
--enable-md5auth
make
sed -i "s|_HOSTNAME_|`hostname -f`|" ssmtp.conf
sed -i "s|/etc/ssmtp.conf|/etc/ssmtp/ssmtp.conf|" ssmtp.conf
sed -i "s|/usr/lib/|/usr/sbin/|" ssmtp.8
install -D -m 644 ssmtp.conf $PKG/etc/ssmtp/ssmtp.conf
install -D -m 644 revaliases $PKG/etc/ssmtp/revaliases
install -D -m 755 ssmtp $PKG/usr/sbin/ssmtp
install -D -m 644 ssmtp.8 $PKG/usr/man/man8/ssmtp.8
# ln -s ssmtp $PKG/usr/sbin/sendmail
}