2021-03-08 04:17:02 +01:00
|
|
|
# Description: Postfix Mail Transport Agent (MTA)
|
|
|
|
# URL: http://www.postfix.org/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: cyrus-sasl
|
|
|
|
|
|
|
|
name=postfix
|
2022-04-10 01:40:17 +02:00
|
|
|
version=3.7.0
|
2021-03-08 04:17:02 +01:00
|
|
|
release=1
|
2022-04-10 01:40:17 +02:00
|
|
|
source=(http://ftp.porcupine.org/mirrors/postfix-release/official/${name}-${version}.tar.gz
|
|
|
|
aliases postfix.rc)
|
2021-03-08 04:17:02 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
make tidy
|
|
|
|
make makefiles \
|
|
|
|
DEBUG="" \
|
|
|
|
OPT="${CFLAGS}" \
|
2022-04-10 01:40:17 +02:00
|
|
|
pie=yes \
|
|
|
|
shared=yes \
|
|
|
|
dynamicmaps=yes \
|
|
|
|
CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS -I/usr/include/sasl" \
|
|
|
|
AUXLIBS="-lsasl2 -lssl -lcrypto"
|
2021-03-08 04:17:02 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
make non-interactive-package install_root=${PKG} \
|
|
|
|
config_directory=/etc/postfix \
|
|
|
|
daemon_directory=/usr/lib/postfix \
|
2022-04-10 01:40:17 +02:00
|
|
|
mail_owner=mail \
|
|
|
|
manpage_directory=/usr/share/man \
|
|
|
|
shlib_directory=/usr/lib/postfix
|
2021-03-08 04:17:02 +01:00
|
|
|
|
2022-04-10 01:40:17 +02:00
|
|
|
chown mail ${PKG}/var/spool/postfix/* \
|
|
|
|
${PKG}/var/lib/postfix
|
|
|
|
chgrp postdrop ${PKG}/var/spool/postfix/{maildrop,public} \
|
|
|
|
${PKG}/usr/sbin/post{drop,queue}
|
|
|
|
chmod g+s ${PKG}/usr/sbin/post{drop,queue}
|
2021-03-08 04:17:02 +01:00
|
|
|
|
2022-04-10 01:40:17 +02:00
|
|
|
install -D -m 0644 ${SRC}/aliases ${PKG}/etc/postfix/aliases
|
|
|
|
install -D -m 0755 ${SRC}/postfix.rc ${PKG}/etc/rc.d/postfix
|
2021-03-08 04:17:02 +01:00
|
|
|
|
2022-04-10 01:40:17 +02:00
|
|
|
touch ${PKG}/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
|
|
|
|
touch ${PKG}/etc/postfix/{relay_domains,body_checks,mime_header_checks}
|
2021-03-08 04:17:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: set ts=4 et:
|