2006-02-23 15:26:10 +00:00
|
|
|
# Description: Postfix Mail Transport Agent (MTA)
|
|
|
|
# URL: http://www.postfix.org
|
2010-04-18 22:51:53 +02:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Packager: Victor, victord at users dot berlios dot de
|
2011-02-18 21:24:29 +01:00
|
|
|
# Depends on: cyrus-sasl
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=postfix
|
2017-01-25 01:58:14 +01:00
|
|
|
version=2.11.9
|
2013-02-12 15:38:15 +01:00
|
|
|
release=1
|
2012-04-29 23:37:24 +02:00
|
|
|
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz \
|
2007-08-11 14:58:49 +02:00
|
|
|
aliases postfix.rc postfix.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2007-08-11 14:58:49 +02:00
|
|
|
patch -p1 < $SRC/postfix.patch
|
2015-06-28 22:17:19 +02:00
|
|
|
|
|
|
|
# enable building on 4.x kernels
|
|
|
|
sed -i 's:\(Linux.3\*\)):\1|Linux.4*):1' makedefs
|
2012-04-29 23:37:24 +02:00
|
|
|
|
2006-08-03 12:26:04 +00:00
|
|
|
_CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
|
2006-02-23 15:26:10 +00:00
|
|
|
_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"
|
2006-11-28 16:04:02 +01:00
|
|
|
|
|
|
|
make non-interactive-package install_root=$PKG \
|
2010-04-18 22:51:53 +02:00
|
|
|
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
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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 )
|
|
|
|
|
2008-02-06 14:43:05 +01:00
|
|
|
( cd $PKG/var/lib
|
|
|
|
chown mail postfix )
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
#
|
|
|
|
# Add .gz extensions to manpages (pkgmk compresses them)
|
2012-04-29 23:28:01 +02:00
|
|
|
# *LICENSE files will be removed
|
2006-02-23 15:26:10 +00:00
|
|
|
#
|
2012-04-29 23:28:01 +02:00
|
|
|
( cd $PKG/usr/lib/postfix
|
2006-02-23 15:26:10 +00:00
|
|
|
cp postfix-files temp-files
|
2010-04-18 23:06:15 +02:00
|
|
|
grep -v LICENSE temp-files | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
|
2012-04-29 23:28:01 +02:00
|
|
|
rm -f temp-files $PKG/etc/postfix/*LICENSE )
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
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
|
2006-04-08 16:19:21 +00:00
|
|
|
touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|