2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Postfix Mail Transport Agent (MTA)
|
|
|
|
|
# URL: http://www.postfix.org
|
|
|
|
|
# Maintainer: Simon Glo<6C>ner, viper at hometux dot de
|
|
|
|
|
# Packager: Victor, victord at users dot berlios dot de
|
|
|
|
|
# Depends on: cyrus-sasl, openssl, db
|
|
|
|
|
|
|
|
|
|
name=postfix
|
2007-03-30 14:54:31 +02:00
|
|
|
|
version=2.4.0
|
2006-08-27 00:37:34 +00:00
|
|
|
|
release=1
|
2006-03-31 19:22:52 +00:00
|
|
|
|
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz
|
2006-02-23 15:26:10 +00:00
|
|
|
|
aliases postfix.rc)
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
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 \
|
2006-02-23 15:26:10 +00:00
|
|
|
|
mail_owner=mail \
|
|
|
|
|
setgid_group=postdrop \
|
|
|
|
|
config_directory=/etc/postfix \
|
|
|
|
|
manpage_directory=/usr/man \
|
|
|
|
|
daemon_directory=/usr/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 )
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Add .gz extensions to manpages (pkgmk compresses them)
|
2006-05-22 13:07:29 +00:00
|
|
|
|
# Remove LICENSE (will be removed)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
#
|
|
|
|
|
( cd $PKG/etc/postfix
|
|
|
|
|
cp postfix-files temp-files
|
|
|
|
|
cat temp-files | grep -v LICENSE | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
|
|
|
|
|
rm -f temp-files 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
|
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
|
|
|
|
}
|