blob: 7876d613c0436a33da0734348fcc291824b5b4d9 (
plain)
1 # Description: Postfix Mail Transport Agent (MTA)
2 # URL: http://www.postfix.org
3 # Maintainer: Simon Gloßner, viper at hometux dot de
4 # Packager: Victor, victord at users dot berlios dot de
5 # Depends on: cyrus-sasl, openssl, db
6
7 name=postfix
8 version=2.2.9
9 release=1
10 source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz
11 aliases postfix.rc)
12
13 build() {
14 cd $name-$version
15
16 _CCARGS="$CCARGS -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS"
17 _AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"
18
19 make tidy
20 make makefiles DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
21 make DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
22
23 sh ./postfix-install -non-interactive install_root=$PKG \
24 mail_owner=mail \
25 setgid_group=postdrop \
26 config_directory=/etc/postfix \
27 manpage_directory=/usr/man \
28 daemon_directory=/usr/lib/postfix \
29 command_directory=/usr/sbin \
30 queue_directory=/var/spool/postfix \
31 sendmail_path=/usr/sbin/sendmail \
32 newaliases_path=/usr/bin/newaliases \
33 mailq_path=/usr/bin/mailq
34
35 #
36 # Set proper permissions
37 #
38 ( cd $PKG/var/spool/postfix
39 chown mail *
40 chgrp postdrop public maildrop )
41
42 ( cd $PKG/usr/sbin
43 chgrp postdrop postqueue postdrop
44 chmod g+s postqueue postdrop )
45
46 #
47 # Add .gz extensions to manpages (pkgmk compresses them)
48 #
49 ( cd $PKG/etc/postfix
50 cp postfix-files temp-files
51 cat temp-files | grep -v LICENSE | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
52 rm -f temp-files LICENSE )
53
54 install -D -m 00644 ../aliases $PKG/etc/postfix/aliases
55 install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
56
57 touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
58 touch $PKG/etc/postfix/relay-domains
59 touch $PKG/etc/postfix/header-checks
60 touch $PKG/etc/postfix/body-checks
61 touch $PKG/etc/postfix/mime-header-checks
62 }
|