1
0
forked from ports/opt
opt/masqmail/Pkgfile

41 lines
1.4 KiB
Plaintext
Raw Normal View History

2005-11-16 18:05:23 +00:00
# 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
2005-12-16 08:53:37 +00:00
# Depends on: glib
2005-11-16 18:05:23 +00:00
name=masqmail
2005-12-16 08:53:37 +00:00
version=0.2.21
release=1
source=(http://ftp.debian.org/debian/pool/main/m/masqmail/${name}_$version.orig.tar.gz \
masqmail masqmail.conf masqmail.alias inet.route)
2005-11-16 18:05:23 +00:00
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
2005-12-16 08:53:37 +00:00
install -m 644 $SRC/masqmail.{conf,alias} $PKG/etc/masqmail
install -m 644 $SRC/inet.route $PKG/etc/masqmail
echo -n "inet" > $PKG/etc/masqmail/connect_route
install -m 644 examples/example.* $PKG/etc/masqmail
install -m 644 examples/masqmail.conf $PKG/etc/masqmail/example.conf
install -D -m 755 $SRC/masqmail $PKG/etc/rc.d/masqmail
2005-11-16 18:05:23 +00:00
2005-12-16 08:53:37 +00:00
sed -i -e "s/#host#/$(hostname)/g" \
-e "s/#domain#/$(hostname -d)/g" \
2005-11-16 18:05:23 +00:00
$PKG/etc/masqmail/masqmail.conf
rm $PKG/usr/share/masqmail/tpl/*.tpl.*
2005-12-16 08:53:37 +00:00
touch $PKG/var/log/masqmail/{masqmail,debug}.log
chown mail:mail $PKG/var/log/masqmail/*
chown root:root $PKG/var/run
2005-11-16 18:05:23 +00:00
}