blob: db20f62c35e9e401b7574862a0284a3d1c268387 (
plain)
1 # Description: Postfix Mail Transport Agent (MTA)
2 # URL: http://www.postfix.org/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: cyrus-sasl
5
6 name=postfix
7 version=3.7.3
8 release=1
9 source=(http://ftp.porcupine.org/mirrors/postfix-release/official/${name}-${version}.tar.gz
10 aliases postfix.rc)
11
12 build() {
13 cd $name-$version
14
15 make tidy
16 make makefiles \
17 DEBUG="" \
18 OPT="${CFLAGS}" \
19 pie=yes \
20 shared=yes \
21 dynamicmaps=yes \
22 CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS -I/usr/include/sasl" \
23 AUXLIBS="-lsasl2 -lssl -lcrypto"
24 make
25
26 make non-interactive-package install_root=${PKG} \
27 config_directory=/etc/postfix \
28 daemon_directory=/usr/lib/postfix \
29 mail_owner=mail \
30 manpage_directory=/usr/share/man \
31 shlib_directory=/usr/lib/postfix
32
33 chown mail ${PKG}/var/spool/postfix/* \
34 ${PKG}/var/lib/postfix
35 chgrp postdrop ${PKG}/var/spool/postfix/{maildrop,public} \
36 ${PKG}/usr/sbin/post{drop,queue}
37 chmod g+s ${PKG}/usr/sbin/post{drop,queue}
38
39 install -D -m 0644 ${SRC}/aliases ${PKG}/etc/postfix/aliases
40 install -D -m 0755 ${SRC}/postfix.rc ${PKG}/etc/rc.d/postfix
41
42 touch ${PKG}/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
43 touch ${PKG}/etc/postfix/{relay_domains,body_checks,mime_header_checks}
44 }
45
46 # vim: set ts=4 et:
|