blob: 9e93129abf68f6f48d7b8052930522c94e91eb08 (
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.4.6
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 command_directory=/usr/sbin \
32 queue_directory=/var/spool/postfix \
33 sendmail_path=/usr/sbin/sendmail \
34 newaliases_path=/usr/bin/newaliases \
35 mailq_path=/usr/bin/mailq
36
37 #
38 # Set proper permissions
39 #
40 ( cd $PKG/var/spool/postfix
41 chown mail *
42 chgrp postdrop public maildrop )
43
44 ( cd $PKG/usr/sbin
45 chgrp postdrop postqueue postdrop
46 chmod g+s postqueue postdrop )
47
48 #
49 # Add .gz extensions to manpages (pkgmk compresses them)
50 # Remove LICENSE (will be removed)
51 #
52 ( cd $PKG/etc/postfix
53 cp postfix-files temp-files
54 cat temp-files | grep -v LICENSE | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
55 rm -f temp-files LICENSE )
56
57 install -D -m 00644 ../aliases $PKG/etc/postfix/aliases
58 install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
59
60 touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
61 touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
62 }
|