summaryrefslogtreecommitdiff
path: root/postfix/Pkgfile
blob: cd9158a2bb746b72c39705f6785324902d25f1b5 (plain)
    1 # Description: Postfix Mail Transport Agent (MTA)
    2 # URL: http://www.postfix.org
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Depends on: cyrus-sasl
    5 
    6 name=postfix
    7 version=3.0.14
    8 release=1
    9 source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz \
   10         aliases postfix.rc postfix.patch)
   11 
   12 build() {
   13     cd $name-$version
   14 
   15     patch -p1 < $SRC/postfix.patch
   16 
   17     # enable building on 4.x kernels
   18     sed -i 's:\(Linux.3\*\)):\1|Linux.4*):1' makedefs
   19     
   20     _CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
   21     _AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"
   22 
   23     make tidy
   24     make makefiles DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
   25     make           DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
   26     
   27     make non-interactive-package install_root=$PKG \
   28     mail_owner=mail \
   29     setgid_group=postdrop \
   30     config_directory=/etc/postfix \
   31     manpage_directory=/usr/share/man \
   32     daemon_directory=/usr/lib/postfix \
   33     data_directory=/var/lib/postfix \
   34     command_directory=/usr/sbin \
   35     queue_directory=/var/spool/postfix \
   36     sendmail_path=/usr/sbin/sendmail \
   37     newaliases_path=/usr/bin/newaliases \
   38     mailq_path=/usr/bin/mailq
   39 
   40     #
   41     # Set proper permissions
   42     #
   43     ( cd $PKG/var/spool/postfix
   44       chown mail *
   45       chgrp postdrop public maildrop )
   46 
   47     ( cd $PKG/usr/sbin
   48       chgrp postdrop postqueue postdrop
   49       chmod g+s postqueue postdrop )
   50 
   51     ( cd $PKG/var/lib
   52       chown mail postfix )
   53 
   54     rm -f $PKG/etc/postfix/*LICENSE
   55 
   56     install -D -m 00644 ../aliases    $PKG/etc/postfix/aliases
   57     install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
   58 
   59     touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
   60     touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
   61 }

Generated by cgit