blob: c28b17c114390d7acc62de53617b93b6d1db0a7b (
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.5.5
9 release=1
10 source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz
11 aliases postfix.rc postfix.patch)
12
13 build() {
14 cd $name-$version
15
16 patch -p1 < $SRC/postfix.patch
17
18 _CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
19 _AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"
20
21 make tidy
22 make makefiles DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
23 make DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
24
25 make non-interactive-package install_root=$PKG \
26 mail_owner=mail \
27 setgid_group=postdrop \
28 config_directory=/etc/postfix \
29 manpage_directory=/usr/man \
30 daemon_directory=/usr/lib/postfix \
31 data_directory=/var/lib/postfix \
32 command_directory=/usr/sbin \
33 queue_directory=/var/spool/postfix \
34 sendmail_path=/usr/sbin/sendmail \
35 newaliases_path=/usr/bin/newaliases \
36 mailq_path=/usr/bin/mailq
37
38 #
39 # Set proper permissions
40 #
41 ( cd $PKG/var/spool/postfix
42 chown mail *
43 chgrp postdrop public maildrop )
44
45 ( cd $PKG/usr/sbin
46 chgrp postdrop postqueue postdrop
47 chmod g+s postqueue postdrop )
48
49 ( cd $PKG/var/lib
50 chown mail postfix )
51
52 #
53 # Add .gz extensions to manpages (pkgmk compresses them)
54 # Remove LICENSE (will be removed)
55 #
56 ( cd $PKG/etc/postfix
57 cp postfix-files temp-files
58 cat temp-files | grep -v LICENSE | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
59 rm -f temp-files LICENSE )
60
61 install -D -m 00644 ../aliases $PKG/etc/postfix/aliases
62 install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
63
64 touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
65 touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
66 }
|