6cedb7490e
Note that this is an upgrade for the major release of postifx. Follow the instructions for upgrading as stated in http://de.postfix.org/ftpmirror/official/postfix-2.8.17.RELEASE_NOTES Especially note the release notes stating: If you upgrade from Postfix 2.7, or from Postfix 2.8 before July 25, 2010, you must execute "postfix reload" (or "postfix stop" followed by "postfix start"). This is needed because the queue manager to delivery agent protocol has changed. Failure to do this results in repeated logging of warnings with: warning: unexpected attribute rewrite_context ...
67 lines
2.1 KiB
Plaintext
67 lines
2.1 KiB
Plaintext
# Description: Postfix Mail Transport Agent (MTA)
|
|
# URL: http://www.postfix.org
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Packager: Victor, victord at users dot berlios dot de
|
|
# Depends on: cyrus-sasl
|
|
|
|
name=postfix
|
|
version=2.8.17
|
|
release=1
|
|
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz \
|
|
aliases postfix.rc postfix.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p1 < $SRC/postfix.patch
|
|
|
|
_CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
|
|
_AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"
|
|
|
|
make tidy
|
|
make makefiles DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
|
|
make DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
|
|
|
|
make non-interactive-package install_root=$PKG \
|
|
mail_owner=mail \
|
|
setgid_group=postdrop \
|
|
config_directory=/etc/postfix \
|
|
manpage_directory=/usr/man \
|
|
daemon_directory=/usr/lib/postfix \
|
|
data_directory=/var/lib/postfix \
|
|
command_directory=/usr/sbin \
|
|
queue_directory=/var/spool/postfix \
|
|
sendmail_path=/usr/sbin/sendmail \
|
|
newaliases_path=/usr/bin/newaliases \
|
|
mailq_path=/usr/bin/mailq
|
|
|
|
#
|
|
# Set proper permissions
|
|
#
|
|
( cd $PKG/var/spool/postfix
|
|
chown mail *
|
|
chgrp postdrop public maildrop )
|
|
|
|
( cd $PKG/usr/sbin
|
|
chgrp postdrop postqueue postdrop
|
|
chmod g+s postqueue postdrop )
|
|
|
|
( cd $PKG/var/lib
|
|
chown mail postfix )
|
|
|
|
#
|
|
# Add .gz extensions to manpages (pkgmk compresses them)
|
|
# *LICENSE files will be removed
|
|
#
|
|
( cd $PKG/usr/lib/postfix
|
|
cp postfix-files temp-files
|
|
grep -v LICENSE temp-files | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
|
|
rm -f temp-files $PKG/etc/postfix/*LICENSE )
|
|
|
|
install -D -m 00644 ../aliases $PKG/etc/postfix/aliases
|
|
install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
|
|
|
|
touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
|
|
touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
|
|
}
|