opt/postfix/Pkgfile

70 lines
2.2 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
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
name=postfix
2016-08-03 14:04:30 +02:00
version=2.11.8
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
# enable building on 4.x kernels
sed -i 's:\(Linux.3\*\)):\1|Linux.4*):1' makedefs
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 \
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 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 )
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
#
2012-04-29 23:28:01 +02:00
( cd $PKG/usr/lib/postfix
2006-02-23 16:26:10 +01:00
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
2012-04-29 23:28:01 +02:00
rm -f temp-files $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
}