From b480c377a221c3426508c99c2f14541697a9453a Mon Sep 17 00:00:00 2001 From: hubertf Date: Tue, 20 Mar 2001 13:02:04 +0000 Subject: resurrect, after nuking the right files in the wrong dir. --- mail/postfix/Makefile | 77 +++++++++++++ mail/postfix/files/mailer.conf | 8 ++ mail/postfix/files/md5 | 5 + mail/postfix/files/patch-sum | 5 + mail/postfix/patches/patch-aa | 244 +++++++++++++++++++++++++++++++++++++++++ mail/postfix/patches/patch-af | 52 +++++++++ mail/postfix/patches/patch-ba | 23 ++++ mail/postfix/pkg/DESCR | 17 +++ mail/postfix/pkg/PLIST | 112 +++++++++++++++++++ 9 files changed, 543 insertions(+) create mode 100644 mail/postfix/Makefile create mode 100644 mail/postfix/files/mailer.conf create mode 100644 mail/postfix/files/md5 create mode 100644 mail/postfix/files/patch-sum create mode 100644 mail/postfix/patches/patch-aa create mode 100644 mail/postfix/patches/patch-af create mode 100644 mail/postfix/patches/patch-ba create mode 100644 mail/postfix/pkg/DESCR create mode 100644 mail/postfix/pkg/PLIST (limited to 'mail') 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 <$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 +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 -- cgit v1.2.3