1
0
forked from ports/opt
opt/masqmail/Pkgfile
2005-11-16 18:05:23 +00:00

42 lines
1.4 KiB
Plaintext

# Description: Mail Transfer Agent for dialup networks
# URL: http://innominate.org/kurth/masqmail/
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: glib1
name=masqmail
version=0.2.20
release=3
source=(http://innominate.org/kurth/$name/download/$name-$version.tar.gz \
masqmail masqmail.conf masqmail.alias inet.route connect_route)
build () {
cd $name-$version
./configure --prefix=/usr \
--enable-auth \
--enable-maildir \
--with-user=mail \
--with-group=mail
make
make DESTDIR=$PKG install
ln -s masqmail $PKG/usr/sbin/sendmail
ln -s ../sbin/masqmail $PKG/usr/bin/mailq
ln -s ../sbin/masqmail $PKG/usr/bin/mailrm
ln -s masqmail.8 $PKG/usr/man/man8/sendmail.8
ln -s masqmail.8 $PKG/usr/man/man8/mailq.8
ln -s masqmail.8 $PKG/usr/man/man8/mailrm.8
cp ../masqmail.{conf,alias} $PKG/etc/masqmail
cp ../{inet.route,connect_route} $PKG/etc/masqmail
cp examples/example.* $PKG/etc/masqmail
cp examples/masqmail.conf $PKG/etc/masqmail/example.conf
install -D -m 755 ../masqmail $PKG/etc/rc.d/masqmail
touch $PKG/var/log/masqmail/{masqmail,debug}.log
sed -i -e "s/#host#/`hostname`/g" \
-e "s/#domain#/`hostname -d`/g" \
$PKG/etc/masqmail/masqmail.conf
rm $PKG/usr/share/masqmail/tpl/*.tpl.*
}