opt/masqmail/Pkgfile

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2010-06-01 11:47:28 +02:00
# Description: Mail Transfer Agent for workstations and local networks
# URL: http://marmaro.de/prog/masqmail/
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
# Depends on: glib
name=masqmail
2010-07-09 20:05:10 +02:00
version=0.2.25
2006-02-23 16:26:10 +01:00
release=1
2010-06-21 13:42:00 +02:00
source=(http://marmaro.de/prog/masqmail/files/$name-$version.tar.gz
2010-06-01 11:47:28 +02:00
masqmail masqmail.conf masqmail.alias inet.route)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2010-06-01 11:47:28 +02:00
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2010-06-01 11:47:28 +02:00
--mandir=/usr/man \
2006-02-23 16:26:10 +01:00
--enable-auth \
--enable-maildir \
--with-user=mail \
2010-06-01 11:47:28 +02:00
--with-group=mail
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
ln -s masqmail $PKG/usr/sbin/sendmail
ln -s ../sbin/masqmail $PKG/usr/bin/mailq
install -m 644 $SRC/masqmail.{conf,alias} $PKG/etc/masqmail
2010-06-01 11:47:28 +02:00
install -m 600 $SRC/inet.route $PKG/etc/masqmail
echo -n "inet" > $PKG/var/run/masqmail/masqmail-route
install -m 600 examples/example.* $PKG/etc/masqmail
2006-02-23 16:26:10 +01:00
install -m 644 examples/masqmail.conf $PKG/etc/masqmail/example.conf
install -D -m 755 $SRC/masqmail $PKG/etc/rc.d/masqmail
2010-06-01 11:47:28 +02:00
rm $PKG/usr/share/masqmail/tpl/*.tpl.*
rm -r $PKG/usr/share/doc
2006-02-23 16:26:10 +01:00
2010-06-01 11:47:28 +02:00
touch $PKG/var/log/masqmail/{masqmail,debug}.log
chown mail:mail $PKG/var/log/masqmail/*
2006-02-23 16:26:10 +01:00
}