blob: de6cd5cacd01eb3dd882f3ddb29395604fa1c568 (
plain)
1 # Description: Mail Transfer Agent for dialup networks
2 # URL: http://www.sonic.net/~okurth/masqmail/
3 # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: glib
5
6 name=masqmail
7 version=0.2.21
8 release=1
9 source=(http://ftp.debian.org/debian/pool/main/m/masqmail/${name}_$version.orig.tar.gz \
10 masqmail masqmail.conf masqmail.alias inet.route)
11
12 build () {
13 cd $name-$version
14 ./configure --prefix=/usr \
15 --enable-auth \
16 --enable-maildir \
17 --with-user=mail \
18 --with-group=mail
19 make
20 make DESTDIR=$PKG install
21
22 ln -s masqmail $PKG/usr/sbin/sendmail
23 ln -s ../sbin/masqmail $PKG/usr/bin/mailq
24
25 install -m 644 $SRC/masqmail.{conf,alias} $PKG/etc/masqmail
26 install -m 644 $SRC/inet.route $PKG/etc/masqmail
27 echo -n "inet" > $PKG/etc/masqmail/connect_route
28 install -m 644 examples/example.* $PKG/etc/masqmail
29 install -m 644 examples/masqmail.conf $PKG/etc/masqmail/example.conf
30 install -D -m 755 $SRC/masqmail $PKG/etc/rc.d/masqmail
31
32 sed -i -e "s/#host#/$(hostname)/g" \
33 -e "s/#domain#/$(hostname -d)/g" \
34 $PKG/etc/masqmail/masqmail.conf
35
36 rm $PKG/usr/share/masqmail/tpl/*.tpl.*
37 touch $PKG/var/log/masqmail/{masqmail,debug}.log
38 chown mail:mail $PKG/var/log/masqmail/*
39 chown root:root $PKG/var/run
40 }
|