diff options
author | hubertf <hubertf> | 2001-03-20 13:02:04 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-03-20 13:02:04 +0000 |
commit | 9ae4fbe758ea8b08c34566d741587171e20971cf (patch) | |
tree | 5a4d53252c3f47e4943959259c3e675067df8d8e | |
parent | 4c31ecd9f7ef0c6c489eed285dfd1b37410d414d (diff) | |
download | pkgsrc-9ae4fbe758ea8b08c34566d741587171e20971cf.tar.gz |
resurrect, after nuking the right files in the wrong dir.
-rw-r--r-- | mail/postfix/Makefile | 77 | ||||
-rw-r--r-- | mail/postfix/files/mailer.conf | 8 | ||||
-rw-r--r-- | mail/postfix/files/md5 | 5 | ||||
-rw-r--r-- | mail/postfix/files/patch-sum | 5 | ||||
-rw-r--r-- | mail/postfix/patches/patch-aa | 244 | ||||
-rw-r--r-- | mail/postfix/patches/patch-af | 52 | ||||
-rw-r--r-- | mail/postfix/patches/patch-ba | 23 | ||||
-rw-r--r-- | mail/postfix/pkg/DESCR | 17 | ||||
-rw-r--r-- | mail/postfix/pkg/PLIST | 112 |
9 files changed, 543 insertions, 0 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile new file mode 100644 index 00000000000..38309338172 --- /dev/null +++ b/mail/postfix/Makefile @@ -0,0 +1,77 @@ +# $NetBSD: Makefile,v 1.30 2001/03/20 13:02:05 hubertf Exp $ + +DISTNAME= release-20010228 +PKGNAME= postfix-20010228 +CATEGORIES= mail +MASTER_SITES= ftp://postfix.cloud9.net/official/ + +PATCHFILES= postfix-20010228release-v6-20010318a.diff.gz \ + postfix-20010228release-ercpt.diff +PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \ + ftp://ftp.gw.com/pub/people/kim/patches/ +PATCH_DIST_STRIP+= -p1 + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.postfix.org/ +COMMENT= postfix smtp server and tools + +DIST_SUBDIR= postfix + +POSTFIX_SPOOL= /var/spool/postfix + +.include "../../mk/bsd.prefs.mk" +# automagically determines IPv6 support +BUILD_DEFS+= USE_INET6 + +.if defined(POSTFIX_PCRE) && ${POSTFIX_PCRE} == YES +DEPENDS+= pcre-2.08:../../devel/pcre +CFLAGS+= -DHAS_PCRE -I${LOCALBASE}/include +AUXLIBS= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpcre +MAKE_ENV+= AUXLIBS="${AUXLIBS}" +.endif + +BUILD_DEFS+= POSTFIX_PCRE + +PLIST_SRC= ${PKGDIR}/PLIST + +ALL_TARGET= #empty + +pre-configure: + ${CP} ${WRKSRC}/conf/main.cf ${WRKSRC}/conf/main.cf.dist + ${CP} ${WRKSRC}/src/util/sys_defs.h ${WRKSRC}/src/util/sys_defs.h.dist + ${CP} ${WRKSRC}/INSTALL.sh ${WRKSRC}/INSTALL.sh.dist + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \ + < ${WRKSRC}/conf/main.cf.dist \ + > ${WRKSRC}/conf/main.cf + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \ + < ${WRKSRC}/src/util/sys_defs.h.dist \ + > ${WRKSRC}/src/util/sys_defs.h + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \ + < ${WRKSRC}/INSTALL.sh.dist \ + > ${WRKSRC}/INSTALL.sh + +do-configure: + (cd ${WRKSRC}; ${MAKE} makefiles) + +post-build: + ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \ + <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix + +pre-install: + ${INSTALL_DATA_DIR} /etc/postfix ${PREFIX}/share/postfix \ + ${PREFIX}/share/doc/postfix ${PREFIX}/libexec/postfix + ${CHOWN} root:wheel ${PREFIX}/share/postfix ${PREFIX}/libexec/postfix + ${CHMOD} 755 ${PREFIX}/share/postfix ${PREFIX}/libexec/postfix + -${RM} -f ${WRKSRC}/conf/*.orig + +post-install: + ${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix ${PREFIX}/etc + ${LN} -sf ${PREFIX}/share/postfix/postfix-script /etc/postfix + -${INSTALL_DATA_DIR} ${POSTFIX_SPOOL} + ${CHMOD} 755 ${POSTFIX_SPOOL} + ${TEST} -f /etc/postfix/main.cf || \ + ${INSTALL_DATA} ${PREFIX}/share/postfix/main.cf /etc/postfix + ${TEST} -f /etc/postfix/master.cf || \ + ${INSTALL_DATA} ${PREFIX}/share/postfix/master.cf /etc/postfix + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/postfix/files/mailer.conf b/mail/postfix/files/mailer.conf new file mode 100644 index 00000000000..be55f411480 --- /dev/null +++ b/mail/postfix/files/mailer.conf @@ -0,0 +1,8 @@ +# $NetBSD: mailer.conf,v 1.4 2001/03/20 13:02:04 hubertf Exp $ +# +# Use "postfix" as replacement for "sendmail". +# +sendmail @@PREFIX@@/libexec/postfix/sendmail +send-mail @@PREFIX@@/libexec/postfix/sendmail +mailq @@PREFIX@@/libexec/postfix/sendmail +newaliases @@PREFIX@@/libexec/postfix/sendmail diff --git a/mail/postfix/files/md5 b/mail/postfix/files/md5 new file mode 100644 index 00000000000..920b173a98c --- /dev/null +++ b/mail/postfix/files/md5 @@ -0,0 +1,5 @@ +$NetBSD: md5,v 1.14 2001/03/20 13:02:04 hubertf Exp $ + +SHA1 (postfix/release-20010228.tar.gz) = a3815938b963073053e833cc8adbaed7f6c71297 +SHA1 (postfix/postfix-20010228release-v6-20010318a.diff.gz) = e53fe984c66cc32f83b6adbe4301af1ad162ccfd +SHA1 (postfix/postfix-20010228release-ercpt.diff) = c6abc5d57ca1a36de85dadee878b266d707ad3cd diff --git a/mail/postfix/files/patch-sum b/mail/postfix/files/patch-sum new file mode 100644 index 00000000000..a38ce570a22 --- /dev/null +++ b/mail/postfix/files/patch-sum @@ -0,0 +1,5 @@ +$NetBSD: patch-sum,v 1.13 2001/03/20 13:02:04 hubertf Exp $ + +SHA1 (patch-aa) = 0e54ee4a1538cbe116ff1c85cbcb50b08c09095b +SHA1 (patch-af) = 1f96a9b36cc65b079839542cc4e7a3230318013c +SHA1 (patch-ba) = feebe30fc918de0c8fe11ccfc1096230f1155166 diff --git a/mail/postfix/patches/patch-aa b/mail/postfix/patches/patch-aa new file mode 100644 index 00000000000..b3f5839d5c4 --- /dev/null +++ b/mail/postfix/patches/patch-aa @@ -0,0 +1,244 @@ +$NetBSD: patch-aa,v 1.7 2001/03/20 13:02:05 hubertf Exp $ + +--- INSTALL.sh.orig Thu Jan 25 11:02:53 2001 ++++ INSTALL.sh Sun Feb 4 14:45:40 2001 +@@ -7,39 +7,39 @@ + umask 022 + + test -t 0 && +-cat <<EOF +- +-Warning: this script replaces existing sendmail or Postfix programs. +-Make backups if you want to be able to recover. +- +-In addition to doing a fresh install, this script can change an +-existing installation from using a world-writable maildrop to a +-group-writable one. It cannot be used to change Postfix queue +-file/directory ownership. +- +-Before installing files, this script prompts you for some definitions. +-Most definitions will be remembered, so you have to specify them +-only once. All definitions have a reasonable default value. +- +- install_root - prefix for installed file names (for package building) +- +- tempdir - where to write scratch files +- +- config_directory - directory with Postfix configuration files. +- daemon_directory - directory with Postfix daemon programs. +- command_directory - directory with Postfix administrative commands. +- queue_directory - directory with Postfix queues. +- +- sendmail_path - full pathname of the Postfix sendmail command. +- newaliases_path - full pathname of the Postfix newaliases command. +- mailq_path - full pathname of the Postfix mailq command. +- +- mail_owner - owner of Postfix queue files. +- +- setgid - groupname, e.g., postdrop (default: no). See INSTALL section 12. +- manpages - "no" or path to man tree. Example: /usr/local/man. +- +-EOF ++#cat <<EOF ++# ++#Warning: this script replaces existing sendmail or Postfix programs. ++#Make backups if you want to be able to recover. ++# ++#In addition to doing a fresh install, this script can change an ++#existing installation from using a world-writable maildrop to a ++#group-writable one. It cannot be used to change Postfix queue ++#file/directory ownership. ++# ++#Before installing files, this script prompts you for some definitions. ++#Most definitions will be remembered, so you have to specify them ++#only once. All definitions have a reasonable default value. ++# ++# install_root - prefix for installed file names (for package building) ++# ++# tempdir - where to write scratch files ++# ++# config_directory - directory with Postfix configuration files. ++# daemon_directory - directory with Postfix daemon programs. ++# command_directory - directory with Postfix administrative commands. ++# queue_directory - directory with Postfix queues. ++# ++# sendmail_path - full pathname of the Postfix sendmail command. ++# newaliases_path - full pathname of the Postfix newaliases command. ++# mailq_path - full pathname of the Postfix mailq command. ++# ++# mail_owner - owner of Postfix queue files. ++# ++# setgid - groupname, e.g., postdrop (default: no). See INSTALL section 12. ++# manpages - "no" or path to man tree. Example: /usr/local/man. ++# ++#EOF + + # By now, shells must have functions. Ultrix users must use sh5 or lose. + # The following shell functions replace files/symlinks while minimizing +@@ -109,35 +109,32 @@ + + : ${install_root=/} + : ${tempdir=`pwd`} +-: ${config_directory=/etc/postfix} +-: ${daemon_directory=/usr/libexec/postfix} +-: ${command_directory=/usr/sbin} ++: ${config_directory=__PREFIX/share/postfix} ++: ${daemon_directory=__PREFIX/libexec/postfix} ++: ${command_directory=__PREFIX/sbin} + : ${queue_directory=/var/spool/postfix} +-if [ -f /usr/lib/sendmail ] +- then : ${sendmail_path=/usr/lib/sendmail} +- else : ${sendmail_path=/usr/sbin/sendmail} +-fi +-: ${newaliases_path=/usr/bin/newaliases} +-: ${mailq_path=/usr/bin/mailq} ++: ${sendmail_path=__PREFIX/libexec/postfix/sendmail} ++#: ${newaliases_path=/usr/bin/newaliases} ++#: ${mailq_path=/usr/bin/mailq} + : ${mail_owner=postfix} +-: ${setgid=no} +-: ${manpages=/usr/local/man} ++: ${setgid=maildrop} ++: ${manpages=__PREFIX/man} + + # Find out the location of configuration files. + +-test -t 0 && +-for name in install_root tempdir config_directory +-do +- while : +- do +- eval echo \$n "$name: [\$$name]\ \$c" +- read ans +- case $ans in +- "") break;; +- *) eval $name=\$ans; break;; +- esac +- done +-done ++#test -t 0 && ++#for name in install_root tempdir config_directory ++#do ++# while : ++# do ++# eval echo \$n "$name: [\$$name]\ \$c" ++# read ans ++# case $ans in ++# "") break;; ++# *) eval $name=\$ans; break;; ++# esac ++# done ++#done + + # Sanity checks + +@@ -159,32 +156,32 @@ + + CONFIG_DIRECTORY=$install_root$config_directory + +-test -f $CONFIG_DIRECTORY/main.cf && { +- for name in daemon_directory command_directory queue_directory mail_owner +- do +- eval $name='"`bin/postconf -c $CONFIG_DIRECTORY -h $name`"' || kill $$ +- done +-} ++#test -f $CONFIG_DIRECTORY/main.cf && { ++# for name in daemon_directory command_directory queue_directory mail_owner ++# do ++# eval $name='"`bin/postconf -c $CONFIG_DIRECTORY -h $name`"' || kill $$ ++# done ++#} + +-test -f $CONFIG_DIRECTORY/install.cf && . $CONFIG_DIRECTORY/install.cf ++#test -f $CONFIG_DIRECTORY/install.cf && . $CONFIG_DIRECTORY/install.cf + + # Override default settings. + +-test -t 0 && +-for name in daemon_directory command_directory \ +- queue_directory sendmail_path newaliases_path mailq_path mail_owner\ +- setgid manpages +-do +- while : +- do +- eval echo \$n "$name: [\$$name]\ \$c" +- read ans +- case $ans in +- "") break;; +- *) eval $name=\$ans; break;; +- esac +- done +-done ++#test -t 0 && ++#for name in daemon_directory command_directory \ ++# queue_directory sendmail_path newaliases_path mailq_path mail_owner\ ++# setgid manpages ++#do ++# while : ++# do ++# eval echo \$n "$name: [\$$name]\ \$c" ++# read ans ++# case $ans in ++# "") break;; ++# *) eval $name=\$ans; break;; ++# esac ++# done ++#done + + # Sanity checks + +@@ -232,10 +229,10 @@ + + DAEMON_DIRECTORY=$install_root$daemon_directory + COMMAND_DIRECTORY=$install_root$command_directory +-QUEUE_DIRECTORY=$install_root$queue_directory ++QUEUE_DIRECTORY=$queue_directory + SENDMAIL_PATH=$install_root$sendmail_path +-NEWALIASES_PATH=$install_root$newaliases_path +-MAILQ_PATH=$install_root$mailq_path ++#NEWALIASES_PATH=$install_root$newaliases_path ++#MAILQ_PATH=$install_root$mailq_path + MANPAGES=$install_root$manpages + + # Create any missing directories. +@@ -244,7 +241,7 @@ + test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1 + test -d $COMMAND_DIRECTORY || mkdir -p $COMMAND_DIRECTORY || exit 1 + test -d $QUEUE_DIRECTORY || mkdir -p $QUEUE_DIRECTORY || exit 1 +-for path in $SENDMAIL_PATH $NEWALIASES_PATH $MAILQ_PATH ++for path in $SENDMAIL_PATH + do + dir=`echo $path|sed -e 's/[/][/]*[^/]*$//' -e 's/^$/\//'` + test -d $dir || mkdir -p $dir || exit 1 +@@ -264,8 +261,8 @@ + + test -f bin/sendmail && { + compare_or_replace a+x,go-w bin/sendmail $SENDMAIL_PATH || exit 1 +- compare_or_symlink $SENDMAIL_PATH $NEWALIASES_PATH +- compare_or_symlink $SENDMAIL_PATH $MAILQ_PATH ++# compare_or_symlink $SENDMAIL_PATH $NEWALIASES_PATH ++# compare_or_symlink $SENDMAIL_PATH $MAILQ_PATH + } + + if [ -f $CONFIG_DIRECTORY/main.cf ] +@@ -290,13 +287,13 @@ + "mail_owner = $mail_owner" \ + || exit 1 + +-(echo "# This file was generated by $0" +-for name in sendmail_path newaliases_path mailq_path setgid manpages +-do +- eval echo $name=\$$name +-done) >$tempdir/junk || exit 1 +-compare_or_move a+x,go-w $tempdir/junk $CONFIG_DIRECTORY/install.cf || exit 1 +-rm -f $tempdir/junk ++#(echo "# This file was generated by $0" ++#for name in sendmail_path newaliases_path mailq_path setgid manpages ++#do ++# eval echo $name=\$$name ++#done) >$tempdir/junk || exit 1 ++#compare_or_move a+x,go-w $tempdir/junk $CONFIG_DIRECTORY/install.cf || exit 1 ++#rm -f $tempdir/junk + + # Use set-gid privileges instead of writable maildrop (optional). + diff --git a/mail/postfix/patches/patch-af b/mail/postfix/patches/patch-af new file mode 100644 index 00000000000..042ae0170ae --- /dev/null +++ b/mail/postfix/patches/patch-af @@ -0,0 +1,52 @@ +$NetBSD: patch-af,v 1.7 2001/03/20 13:02:05 hubertf Exp $ + +--- conf/main.cf.orig Fri Dec 15 07:44:19 2000 ++++ conf/main.cf Sat Jan 13 16:39:28 2001 +@@ -1,3 +1,5 @@ ++# $NetBSD: patch-af,v 1.7 2001/03/20 13:02:05 hubertf Exp $ ++# + # Global Postfix configuration file. This file lists only a subset + # of all 100+ parameters. See the sample-xxx.cf files for a full list. + # +@@ -28,14 +30,19 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. The default value is $program_directory. + # +-command_directory = /usr/sbin ++command_directory = __PREFIX/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). The + # default value is $program_directory. This directory must be owned + # by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = __PREFIX/libexec/postfix ++ ++# Shared files and etc directory ++etc_directory = /etc/postfix ++share_directory = __PREFIX/share/postfix ++man_directory = __PREFIX/man + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -52,7 +59,7 @@ + # These rights are used in the absence of a recipient user context. + # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. + # +-#default_privs = nobody ++default_privs = nobody + + # INTERNET HOST AND DOMAIN NAMES + # +@@ -440,8 +447,7 @@ + # the process marches on. If you use an X-based debugger, be sure to + # set up your XAUTHORITY environment variable before starting Postfix. + # +-debugger_command = +- PATH=/usr/bin:/usr/X11R6/bin +- xxgdb $daemon_directory/$process_name $process_id & sleep 5 ++debugger_command = PATH=/usr/bin:/usr/X11R6/bin; \ ++ xxgdb $daemon_directory/$process_name $process_id & sleep 5 + + # Other configurable parameters. diff --git a/mail/postfix/patches/patch-ba b/mail/postfix/patches/patch-ba new file mode 100644 index 00000000000..bad461123d4 --- /dev/null +++ b/mail/postfix/patches/patch-ba @@ -0,0 +1,23 @@ +$NetBSD: patch-ba,v 1.5 2001/03/20 13:02:05 hubertf Exp $ + +fix sprious \ in mail header. + +Message-Id: <20010313174719.35692BC070@spike.porcupine.org> +Subject: PATCH (spurious \ in mail header) +From: wietse@porcupine.org (Wietse Venema) +To: Postfix users <postfix-users@postfix.org> +Date: Tue, 13 Mar 2001 12:47:19 -0500 (EST) + +Index: src/global/tok822_parse.c +diff -u -r1.1 -r1.2 +--- src/global/tok822_parse.c 2001/03/13 17:47:13 1.1 ++++ src/global/tok822_parse.c 2001/03/16 11:57:53 1.2 +@@ -252,7 +252,7 @@ + VSTRING_ADDCH(vp, ')'); + break; + case TOK822_COMMENT_TEXT: +- tok822_copy_quoted(vp, vstring_str(tp->vstr), "()\\\r\n"); ++ tok822_copy_quoted(vp, vstring_str(tp->vstr), "()\\"); + break; + case TOK822_QSTRING: + VSTRING_ADDCH(vp, '"'); diff --git a/mail/postfix/pkg/DESCR b/mail/postfix/pkg/DESCR new file mode 100644 index 00000000000..086236e2061 --- /dev/null +++ b/mail/postfix/pkg/DESCR @@ -0,0 +1,17 @@ +Postfix aims to be an alternative to the widely-used sendmail +program. Sendmail is responsible for 70% of all e-mail delivered +on the Internet. With an estimated 100 million users, that's an +estimated 10 billion (10^10) messages daily. A stunning number. + +Although IBM supported the Postfix development, it abstains from +control over its evolution. The goal is to have Postfix installed +on as many systems as possible. To this end, the software is given +away with no strings attached to it, so that it can evolve with +input from and under control by its users. + +In other words, IBM releases Postfix only once. I will be around +to guide its development for a limited time. + + +The pkgsrc contains brings in experimental IPv6 patch into the build. +Please report any breakage to snap-users@kame.net. diff --git a/mail/postfix/pkg/PLIST b/mail/postfix/pkg/PLIST new file mode 100644 index 00000000000..910b5dc763d --- /dev/null +++ b/mail/postfix/pkg/PLIST @@ -0,0 +1,112 @@ +@comment $NetBSD: PLIST,v 1.12 2001/03/20 13:02:05 hubertf Exp $ +etc/mailer.conf.postfix +libexec/postfix/bounce +libexec/postfix/cleanup +libexec/postfix/error +libexec/postfix/flush +libexec/postfix/lmtp +libexec/postfix/local +libexec/postfix/master +libexec/postfix/pickup +libexec/postfix/pipe +libexec/postfix/qmgr +libexec/postfix/sendmail +libexec/postfix/showq +libexec/postfix/smtp +libexec/postfix/smtpd +libexec/postfix/spawn +libexec/postfix/trivial-rewrite +sbin/postalias +sbin/postcat +sbin/postconf +sbin/postdrop +sbin/postfix +sbin/postkick +sbin/postlock +sbin/postlog +sbin/postmap +sbin/postsuper +share/postfix/LICENSE +share/postfix/access +share/postfix/aliases +share/postfix/canonical +share/postfix/main.cf +share/postfix/main.cf.default +share/postfix/main.cf.dist +share/postfix/master.cf +share/postfix/pcre_table +share/postfix/postfix-script +share/postfix/postfix-script-diff +share/postfix/postfix-script-nosgid +share/postfix/postfix-script-sgid +share/postfix/regexp_table +share/postfix/relocated +share/postfix/sample-aliases.cf +share/postfix/sample-auth.cf +share/postfix/sample-canonical.cf +share/postfix/sample-compatibility.cf +share/postfix/sample-debug.cf +share/postfix/sample-filter.cf +share/postfix/sample-flush.cf +share/postfix/sample-ldap.cf +share/postfix/sample-lmtp.cf +share/postfix/sample-local.cf +share/postfix/sample-misc.cf +share/postfix/sample-pcre.cf +share/postfix/sample-rate.cf +share/postfix/sample-regexp.cf +share/postfix/sample-relocated.cf +share/postfix/sample-resource.cf +share/postfix/sample-rewrite.cf +share/postfix/sample-smtp.cf +share/postfix/sample-smtpd.cf +share/postfix/sample-transport.cf +share/postfix/sample-virtual.cf +share/postfix/transport +share/postfix/virtual +man/man1/mailq.1 +man/man1/newaliases.1 +man/man1/postalias.1 +man/man1/postcat.1 +man/man1/postconf.1 +man/man1/postdrop.1 +man/man1/postfix.1 +man/man1/postkick.1 +man/man1/postlock.1 +man/man1/postlog.1 +man/man1/postmap.1 +man/man1/postsuper.1 +man/man1/sendmail.1 +man/man5/access.5 +man/man5/aliases.5 +man/man5/canonical.5 +man/man5/pcre_table.5 +man/man5/regexp_table.5 +man/man5/relocated.5 +man/man5/transport.5 +man/man5/virtual.5 +man/man8/bounce.8 +man/man8/cleanup.8 +man/man8/defer.8 +man/man8/error.8 +man/man8/flush.8 +man/man8/lmtp.8 +man/man8/local.8 +man/man8/master.8 +man/man8/pickup.8 +man/man8/pipe.8 +man/man8/qmgr.8 +man/man8/showq.8 +man/man8/smtp.8 +man/man8/smtpd.8 +man/man8/spawn.8 +man/man8/trivial-rewrite.8 +@dirrm share/postfix +@dirrm share/doc/postfix +@dirrm libexec/postfix +@exec mkdir -p /etc/postfix +@exec if [ ! -f /etc/postfix/main.cf ]; then cp %D/share/postfix/main.cf /etc/postfix ; fi +@exec if [ ! -f /etc/postfix/master.cf ]; then cp %D/share/postfix/master.cf /etc/postfix ; fi +@exec if [ ! -d /var/spool/postfix ]; then mkdir /var/spool/postfix; chmod 755 /var/spool/postfix ; fi +@exec ln -sf %D/share/postfix/postfix-script /etc/postfix +@unexec rm -f /etc/postfix/postfix-script |