opt/postfix/Pkgfile

63 lines
1.9 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01: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
2011-02-18 21:24:29 +01:00
# Depends on: cyrus-sasl
2006-02-23 16:26:10 +01:00
name=postfix
2020-04-29 23:56:43 +02:00
version=3.4.11
2013-02-12 15:38:15 +01:00
release=1
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz \
aliases postfix.rc postfix.patch)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
patch -p1 < $SRC/postfix.patch
2015-06-28 22:17:19 +02:00
2019-03-19 03:18:38 +01:00
# enable building on recent kernels
sed -i 's:\(Linux\.\[34\):\15:1' makedefs
sed -i 's:\(|| defined(LINUX4)\):\1 || defined(LINUX5):g' src/util/sys_defs.h
2006-08-03 14:26:04 +02:00
_CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
2006-02-23 16:26:10 +01: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"
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 \
2017-08-20 23:19:44 +02:00
manpage_directory=/usr/share/man \
2010-04-18 22:51:53 +02:00
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 16:26:10 +01: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 )
2017-08-20 21:42:17 +02:00
rm -f $PKG/etc/postfix/*LICENSE
2006-02-23 16:26:10 +01: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 18:19:21 +02:00
touch $PKG/etc/postfix/{relay_domains,body_checks,mime_header_checks}
2006-02-23 16:26:10 +01:00
}