Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

postfix 20000531 pkgsrc, from netbsd-current

  • Loading branch information...
commit 90dd7420e05953142eb0f81ae10a7baf13bcc48f 1 parent d9be55c
itojun authored
74 netbsd/pkgsrc/mail/postfix-current/Makefile
... ... @@ -0,0 +1,74 @@
  1 +# $NetBSD: Makefile,v 1.2 2000/08/14 04:39:59 itojun Exp $
  2 +
  3 +DISTNAME= snapshot-20000531
  4 +PKGNAME= postfix-20000531
  5 +CATEGORIES= mail
  6 +MASTER_SITES= ftp://postfix.cloud9.net/experimental/
  7 +
  8 +PATCHFILES= postfix-20000531snap-v6-20000814b.diff.gz
  9 +PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
  10 +PATCH_DIST_STRIP= -p1
  11 +
  12 +MAINTAINER= packages@netbsd.org
  13 +HOMEPAGE= http://www.postfix.org/
  14 +
  15 +MIRROR_DISTFILE= no
  16 +DIST_SUBDIR= postfix
  17 +
  18 +POSTFIX_SPOOL= /var/spool/postfix
  19 +
  20 +.include "../../mk/bsd.prefs.mk"
  21 +# automagically determines IPv6 support
  22 +BUILD_DEFS+= USE_INET6
  23 +
  24 +.if defined(POSTFIX_PCRE) && ${POSTFIX_PCRE} == YES
  25 +DEPENDS+= pcre-2.08:../../devel/pcre
  26 +CFLAGS+= -DHAS_PCRE -I${LOCALBASE}/include
  27 +AUXLIBS= -lpcre
  28 +MAKE_ENV+= AUXLIBS="${AUXLIBS}"
  29 +.endif
  30 +
  31 +BUILD_DEFS+= POSTFIX_PCRE POSTFIX_VERP MANINSTALL
  32 +
  33 +PLIST_SRC= ${PKGDIR}/PLIST
  34 +
  35 +ALL_TARGET= #empty
  36 +
  37 +pre-configure:
  38 + ${CP} ${WRKSRC}/conf/main.cf ${WRKSRC}/conf/main.cf.dist
  39 + ${CP} ${WRKSRC}/util/sys_defs.h ${WRKSRC}/util/sys_defs.h.dist
  40 + ${CP} ${WRKSRC}/INSTALL.sh ${WRKSRC}/INSTALL.sh.dist
  41 + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \
  42 + < ${WRKSRC}/conf/main.cf.dist \
  43 + > ${WRKSRC}/conf/main.cf
  44 + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \
  45 + < ${WRKSRC}/util/sys_defs.h.dist \
  46 + > ${WRKSRC}/util/sys_defs.h
  47 + ${SED} -e 's:__PREFIX:'${PREFIX}':g' \
  48 + < ${WRKSRC}/INSTALL.sh.dist \
  49 + > ${WRKSRC}/INSTALL.sh
  50 +
  51 +do-configure:
  52 + (cd ${WRKSRC}; ${MAKE} makefiles)
  53 +
  54 +post-build:
  55 + ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
  56 + <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix
  57 +
  58 +pre-install:
  59 + ${MKDIR} /etc/postfix ${PREFIX}/share/postfix \
  60 + ${PREFIX}/share/doc/postfix ${PREFIX}/libexec/postfix
  61 + ${CHOWN} root:wheel ${PREFIX}/share/postfix ${PREFIX}/libexec/postfix
  62 + ${CHMOD} 755 ${PREFIX}/share/postfix ${PREFIX}/libexec/postfix
  63 +
  64 +post-install:
  65 + ${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix ${PREFIX}/etc
  66 + ${LN} -sf ${PREFIX}/share/postfix/postfix-script /etc/postfix
  67 + -${MKDIR} ${POSTFIX_SPOOL}
  68 + $(CHMOD) 755 ${POSTFIX_SPOOL}
  69 + ${TEST} -f /etc/postfix/main.cf || \
  70 + ${INSTALL_DATA} ${PREFIX}/share/postfix/main.cf /etc/postfix
  71 + ${TEST} -f /etc/postfix/master.cf || \
  72 + ${INSTALL_DATA} ${PREFIX}/share/postfix/master.cf /etc/postfix
  73 +
  74 +.include "../../mk/bsd.pkg.mk"
8 netbsd/pkgsrc/mail/postfix-current/files/mailer.conf
... ... @@ -0,0 +1,8 @@
  1 +# $NetBSD: mailer.conf,v 1.1.1.1 2000/08/14 04:33:24 itojun Exp $
  2 +#
  3 +# Use "postfix" as replacement for "sendmail".
  4 +#
  5 +sendmail @@PREFIX@@/libexec/postfix/sendmail
  6 +send-mail @@PREFIX@@/libexec/postfix/sendmail
  7 +mailq @@PREFIX@@/libexec/postfix/sendmail
  8 +newaliases @@PREFIX@@/libexec/postfix/sendmail
4 netbsd/pkgsrc/mail/postfix-current/files/md5
... ... @@ -0,0 +1,4 @@
  1 +$NetBSD: md5,v 1.2 2000/08/14 04:39:59 itojun Exp $
  2 +
  3 +MD5 (postfix/snapshot-20000531.tar.gz) = 5b25b37dc40e9982ec443cae1bda8c10
  4 +MD5 (postfix/postfix-20000531snap-v6-20000814b.diff.gz) = e54eaf478fa509b160a0a5c3f285c643
4 netbsd/pkgsrc/mail/postfix-current/files/patch-sum
... ... @@ -0,0 +1,4 @@
  1 +$NetBSD: patch-sum,v 1.6 2000/08/14 06:56:55 itojun Exp $
  2 +
  3 +MD5 (patch-aa) = 68ffad3419a83994f0813e7b96798435
  4 +MD5 (patch-af) = f441d8a6613df506f8fbe9b87537035e
192 netbsd/pkgsrc/mail/postfix-current/patches/patch-aa
... ... @@ -0,0 +1,192 @@
  1 +$NetBSD: patch-aa,v 1.5 2000/08/14 06:56:56 itojun Exp $
  2 +--- INSTALL.sh.orig Mon Aug 14 15:47:00 2000
  3 ++++ INSTALL.sh Mon Aug 14 15:47:55 2000
  4 +@@ -8,35 +8,35 @@
  5 +
  6 +-cat <<EOF
  7 +-
  8 +-Warning: this script replaces existing sendmail or Postfix programs.
  9 +-Make backups if you want to be able to recover.
  10 +-
  11 +-In addition to doing a fresh install, this script can change an
  12 +-existing installation from using a world-writable maildrop to a
  13 +-group-writable one. It cannot be used to change Postfix queue
  14 +-file/directory ownership.
  15 +-
  16 +-Before installing files, this script prompts you for some definitions.
  17 +-Most definitions will be remembered, so you have to specify them
  18 +-only once. All definitions have a reasonable default value.
  19 +-
  20 +- install_root - prefix for installed file names (for package building)
  21 +-
  22 +- tempdir - where to write scratch files
  23 +-
  24 +- config_directory - directory with Postfix configuration files.
  25 +- daemon_directory - directory with Postfix daemon programs.
  26 +- command_directory - directory with Postfix administrative commands.
  27 +- queue_directory - directory with Postfix queues.
  28 +-
  29 +- sendmail_path - full pathname of the Postfix sendmail command.
  30 +- newaliases_path - full pathname of the Postfix newaliases command.
  31 +- mailq_path - full pathname of the Postfix mailq command.
  32 +-
  33 +- mail_owner - owner of Postfix queue files.
  34 +-
  35 +- setgid - groupname, e.g., postdrop (default: no). See INSTALL section 12.
  36 +- manpages - "no" or path to man tree. Example: /usr/local/man.
  37 +-
  38 +-EOF
  39 ++#cat <<EOF
  40 ++#
  41 ++#Warning: this script replaces existing sendmail or Postfix programs.
  42 ++#Make backups if you want to be able to recover.
  43 ++#
  44 ++#In addition to doing a fresh install, this script can change an
  45 ++#existing installation from using a world-writable maildrop to a
  46 ++#group-writable one. It cannot be used to change Postfix queue
  47 ++#file/directory ownership.
  48 ++#
  49 ++#Before installing files, this script prompts you for some definitions.
  50 ++#Most definitions will be remembered, so you have to specify them
  51 ++#only once. All definitions have a reasonable default value.
  52 ++#
  53 ++# install_root - prefix for installed file names (for package building)
  54 ++#
  55 ++# tempdir - where to write scratch files
  56 ++#
  57 ++# config_directory - directory with Postfix configuration files.
  58 ++# daemon_directory - directory with Postfix daemon programs.
  59 ++# command_directory - directory with Postfix administrative commands.
  60 ++# queue_directory - directory with Postfix queues.
  61 ++#
  62 ++# sendmail_path - full pathname of the Postfix sendmail command.
  63 ++# newaliases_path - full pathname of the Postfix newaliases command.
  64 ++# mailq_path - full pathname of the Postfix mailq command.
  65 ++#
  66 ++# mail_owner - owner of Postfix queue files.
  67 ++#
  68 ++# setgid - groupname, e.g., postdrop (default: no). See INSTALL section 12.
  69 ++# manpages - "no" or path to man tree. Example: /usr/local/man.
  70 ++#
  71 ++#EOF
  72 +
  73 +@@ -106,15 +106,12 @@
  74 + tempdir=`pwd`
  75 +-config_directory=/etc/postfix
  76 +-daemon_directory=/usr/libexec/postfix
  77 +-command_directory=/usr/sbin
  78 ++config_directory=__PREFIX/share/postfix
  79 ++daemon_directory=__PREFIX/libexec/postfix
  80 ++command_directory=__PREFIX/sbin
  81 + queue_directory=/var/spool/postfix
  82 +-if [ -f /usr/lib/sendmail ]
  83 +- then sendmail_path=/usr/lib/sendmail
  84 +- else sendmail_path=/usr/sbin/sendmail
  85 +-fi
  86 +-newaliases_path=/usr/bin/newaliases
  87 +-mailq_path=/usr/bin/mailq
  88 ++sendmail_path=__PREFIX/libexec/postfix/sendmail
  89 ++#newaliases_path=/usr/bin/newaliases
  90 ++#mailq_path=/usr/bin/mailq
  91 + mail_owner=postfix
  92 + setgid=no
  93 +-manpages=/usr/local/man
  94 ++manpages=__PREFIX/man
  95 +
  96 +@@ -122,14 +119,14 @@
  97 +
  98 +-for name in install_root tempdir config_directory
  99 +-do
  100 +- while :
  101 +- do
  102 +- eval echo \$n "$name: [\$$name]\ \$c"
  103 +- read ans
  104 +- case $ans in
  105 +- "") break;;
  106 +- *) eval $name=\$ans; break;;
  107 +- esac
  108 +- done
  109 +-done
  110 ++#for name in install_root tempdir config_directory
  111 ++#do
  112 ++# while :
  113 ++# do
  114 ++# eval echo \$n "$name: [\$$name]\ \$c"
  115 ++# read ans
  116 ++# case $ans in
  117 ++# "") break;;
  118 ++# *) eval $name=\$ans; break;;
  119 ++# esac
  120 ++# done
  121 ++#done
  122 +
  123 +@@ -166,16 +163,16 @@
  124 +
  125 +-for name in daemon_directory command_directory \
  126 +- queue_directory sendmail_path newaliases_path mailq_path mail_owner\
  127 +- setgid manpages
  128 +-do
  129 +- while :
  130 +- do
  131 +- eval echo \$n "$name: [\$$name]\ \$c"
  132 +- read ans
  133 +- case $ans in
  134 +- "") break;;
  135 +- *) eval $name=\$ans; break;;
  136 +- esac
  137 +- done
  138 +-done
  139 ++#for name in daemon_directory command_directory \
  140 ++# queue_directory sendmail_path newaliases_path mailq_path mail_owner\
  141 ++# setgid manpages
  142 ++#do
  143 ++# while :
  144 ++# do
  145 ++# eval echo \$n "$name: [\$$name]\ \$c"
  146 ++# read ans
  147 ++# case $ans in
  148 ++# "") break;;
  149 ++# *) eval $name=\$ans; break;;
  150 ++# esac
  151 ++# done
  152 ++#done
  153 +
  154 +@@ -227,6 +224,6 @@
  155 + COMMAND_DIRECTORY=$install_root$command_directory
  156 +-QUEUE_DIRECTORY=$install_root$queue_directory
  157 ++QUEUE_DIRECTORY=$queue_directory
  158 + SENDMAIL_PATH=$install_root$sendmail_path
  159 +-NEWALIASES_PATH=$install_root$newaliases_path
  160 +-MAILQ_PATH=$install_root$mailq_path
  161 ++#NEWALIASES_PATH=$install_root$newaliases_path
  162 ++#MAILQ_PATH=$install_root$mailq_path
  163 + MANPAGES=$install_root$manpages
  164 +@@ -239,3 +236,3 @@
  165 + test -d $QUEUE_DIRECTORY || mkdir -p $QUEUE_DIRECTORY || exit 1
  166 +-for path in $SENDMAIL_PATH $NEWALIASES_PATH $MAILQ_PATH
  167 ++for path in $SENDMAIL_PATH
  168 + do
  169 +@@ -259,4 +256,4 @@
  170 + compare_or_replace a+x,go-w bin/sendmail $SENDMAIL_PATH || exit 1
  171 +- compare_or_symlink $SENDMAIL_PATH $NEWALIASES_PATH
  172 +- compare_or_symlink $SENDMAIL_PATH $MAILQ_PATH
  173 ++# compare_or_symlink $SENDMAIL_PATH $NEWALIASES_PATH
  174 ++# compare_or_symlink $SENDMAIL_PATH $MAILQ_PATH
  175 + }
  176 +@@ -292,9 +289,9 @@
  177 +
  178 +-(echo "# This file was generated by $0"
  179 +-for name in sendmail_path newaliases_path mailq_path setgid manpages
  180 +-do
  181 +- eval echo $name=\$$name
  182 +-done) >$tempdir/junk || exit 1
  183 +-compare_or_move a+x,go-w $tempdir/junk $CONFIG_DIRECTORY/install.cf || exit 1
  184 +-rm -f $tempdir/junk
  185 ++#(echo "# This file was generated by $0"
  186 ++#for name in sendmail_path newaliases_path mailq_path setgid manpages
  187 ++#do
  188 ++# eval echo $name=\$$name
  189 ++#done) >$tempdir/junk || exit 1
  190 ++#compare_or_move a+x,go-w $tempdir/junk $CONFIG_DIRECTORY/install.cf || exit 1
  191 ++#rm -f $tempdir/junk
  192 +
40 netbsd/pkgsrc/mail/postfix-current/patches/patch-af
... ... @@ -0,0 +1,40 @@
  1 +$NetBSD: patch-af,v 1.4 2000/08/14 05:10:53 itojun Exp $
  2 +--- conf/main.cf.orig Mon Aug 14 13:51:15 2000
  3 ++++ conf/main.cf Mon Aug 14 14:07:32 2000
  4 +@@ -1 +1,3 @@
  5 ++# $NetBSD: patch-af,v 1.4 2000/08/14 05:10:53 itojun Exp $
  6 ++#
  7 + # Global Postfix configuration file. This file lists only a subset
  8 +@@ -19,3 +21,3 @@
  9 + #
  10 +-command_directory = /usr/sbin
  11 ++command_directory = __PREFIX/sbin
  12 +
  13 +@@ -26,3 +28,8 @@
  14 + #
  15 +-daemon_directory = /usr/libexec/postfix
  16 ++daemon_directory = __PREFIX/libexec/postfix
  17 ++
  18 ++# Shared files and etc directory
  19 ++etc_directory = /etc/postfix
  20 ++share_directory = __PREFIX/share/postfix
  21 ++man_directory = __PREFIX/man
  22 +
  23 +@@ -43,3 +50,3 @@
  24 + #
  25 +-#default_privs = nobody
  26 ++default_privs = nobody
  27 +
  28 +@@ -84,2 +91,4 @@
  29 + #inet_interfaces = $myhostname, localhost
  30 ++# listen to IPv4 and IPv6 smtp socket
  31 ++inet_interfaces = 0.0.0.0, ::
  32 +
  33 +@@ -376,5 +385,4 @@
  34 + #
  35 +-debugger_command =
  36 +- PATH=/usr/bin:/usr/X11R6/bin
  37 +- xxgdb $daemon_directory/$process_name $process_id & sleep 5
  38 ++debugger_command = PATH=/usr/bin:/usr/X11R6/bin; \
  39 ++ xxgdb $daemon_directory/$process_name $process_id & sleep 5
  40 +
1  netbsd/pkgsrc/mail/postfix-current/pkg/COMMENT
... ... @@ -0,0 +1 @@
  1 +postfix smtp server and tools
17 netbsd/pkgsrc/mail/postfix-current/pkg/DESCR
... ... @@ -0,0 +1,17 @@
  1 +Postfix aims to be an alternative to the widely-used sendmail
  2 +program. Sendmail is responsible for 70% of all e-mail delivered
  3 +on the Internet. With an estimated 100 million users, that's an
  4 +estimated 10 billion (10^10) messages daily. A stunning number.
  5 +
  6 +Although IBM supported the Postfix development, it abstains from
  7 +control over its evolution. The goal is to have Postfix installed
  8 +on as many systems as possible. To this end, the software is given
  9 +away with no strings attached to it, so that it can evolve with
  10 +input from and under control by its users.
  11 +
  12 +In other words, IBM releases Postfix only once. I will be around
  13 +to guide its development for a limited time.
  14 +
  15 +
  16 +The pkgsrc contains brings in experimental IPv6 patch into the build.
  17 +Please report any breakage to snap-users@kame.net.
106 netbsd/pkgsrc/mail/postfix-current/pkg/PLIST
... ... @@ -0,0 +1,106 @@
  1 +@comment $NetBSD: PLIST,v 1.3 2000/08/14 05:28:26 itojun Exp $
  2 +etc/mailer.conf.postfix
  3 +libexec/postfix/bounce
  4 +libexec/postfix/cleanup
  5 +libexec/postfix/error
  6 +libexec/postfix/lmtp
  7 +libexec/postfix/local
  8 +libexec/postfix/master
  9 +libexec/postfix/nqmgr
  10 +libexec/postfix/pickup
  11 +libexec/postfix/pipe
  12 +libexec/postfix/qmgr
  13 +libexec/postfix/sendmail
  14 +libexec/postfix/showq
  15 +libexec/postfix/smtp
  16 +libexec/postfix/smtpd
  17 +libexec/postfix/trivial-rewrite
  18 +sbin/postalias
  19 +sbin/postcat
  20 +sbin/postconf
  21 +sbin/postdrop
  22 +sbin/postfix
  23 +sbin/postkick
  24 +sbin/postlock
  25 +sbin/postlog
  26 +sbin/postmap
  27 +sbin/postsuper
  28 +share/postfix/LICENSE
  29 +share/postfix/access
  30 +share/postfix/aliases
  31 +share/postfix/canonical
  32 +share/postfix/main.cf
  33 +share/postfix/main.cf.default
  34 +share/postfix/main.cf.dist
  35 +share/postfix/master.cf
  36 +share/postfix/pcre_table
  37 +share/postfix/postfix-script
  38 +share/postfix/postfix-script-diff
  39 +share/postfix/postfix-script-nosgid
  40 +share/postfix/postfix-script-sgid
  41 +share/postfix/regexp_table
  42 +share/postfix/relocated
  43 +share/postfix/sample-aliases.cf
  44 +share/postfix/sample-auth.cf
  45 +share/postfix/sample-canonical.cf
  46 +share/postfix/sample-debug.cf
  47 +share/postfix/sample-filter.cf
  48 +share/postfix/sample-ldap.cf
  49 +share/postfix/sample-local.cf
  50 +share/postfix/sample-misc.cf
  51 +share/postfix/sample-pcre.cf
  52 +share/postfix/sample-rate.cf
  53 +share/postfix/sample-regexp.cf
  54 +share/postfix/sample-relocated.cf
  55 +share/postfix/sample-resource.cf
  56 +share/postfix/sample-rewrite.cf
  57 +share/postfix/sample-smtp.cf
  58 +share/postfix/sample-smtpd.cf
  59 +share/postfix/sample-transport.cf
  60 +share/postfix/sample-virtual.cf
  61 +share/postfix/transport
  62 +share/postfix/virtual
  63 +man/man1/mailq.1
  64 +man/man1/newaliases.1
  65 +man/man1/postalias.1
  66 +man/man1/postcat.1
  67 +man/man1/postconf.1
  68 +man/man1/postdrop.1
  69 +man/man1/postfix.1
  70 +man/man1/postkick.1
  71 +man/man1/postlock.1
  72 +man/man1/postlog.1
  73 +man/man1/postmap.1
  74 +man/man1/postsuper.1
  75 +man/man1/sendmail.1
  76 +man/man5/access.5
  77 +man/man5/aliases.5
  78 +man/man5/canonical.5
  79 +man/man5/pcre_table.5
  80 +man/man5/regexp_table.5
  81 +man/man5/relocated.5
  82 +man/man5/transport.5
  83 +man/man5/virtual.5
  84 +man/man8/bounce.8
  85 +man/man8/cleanup.8
  86 +man/man8/defer.8
  87 +man/man8/error.8
  88 +man/man8/lmtp.8
  89 +man/man8/local.8
  90 +man/man8/master.8
  91 +man/man8/pickup.8
  92 +man/man8/pipe.8
  93 +man/man8/qmgr.8
  94 +man/man8/showq.8
  95 +man/man8/smtp.8
  96 +man/man8/smtpd.8
  97 +man/man8/trivial-rewrite.8
  98 +@dirrm share/postfix
  99 +@dirrm share/doc/postfix
  100 +@dirrm libexec/postfix
  101 +@exec mkdir -p /etc/postfix
  102 +@exec if [ ! -f /etc/postfix/main.cf ]; then cp %D/share/postfix/main.cf /etc/postfix ; fi
  103 +@exec if [ ! -f /etc/postfix/master.cf ]; then cp %D/share/postfix/master.cf /etc/postfix ; fi
  104 +@exec if [ ! -d /var/spool/postfix ]; then mkdir /var/spool/postfix; chmod 755 /var/spool/postfix ; fi
  105 +@exec ln -sf %D/share/postfix/postfix-script /etc/postfix
  106 +@unexec rm -f /etc/postfix/postfix-script

0 comments on commit 90dd742

Please sign in to comment.
Something went wrong with that request. Please try again.