From owner-freebsd-ports Sun Jun 6 17:10:17 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9DB3F15756 for ; Sun, 6 Jun 1999 17:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA64816; Sun, 6 Jun 1999 17:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from couatl.palefire.org (couatl.cs.uchicago.edu [128.135.11.38]) by hub.freebsd.org (Postfix) with ESMTP id 17F4D14C10 for ; Sun, 6 Jun 1999 17:05:19 -0700 (PDT) (envelope-from sfarrell@palefire.org) Received: by couatl.palefire.org (Postfix, from userid 30209) id 172C7BA13; Sun, 6 Jun 1999 19:05:19 -0500 (CDT) Message-Id: <19990607000519.172C7BA13@couatl.palefire.org> Date: Sun, 6 Jun 1999 19:05:19 -0500 (CDT) From: sfarrell@palefire.org Reply-To: sfarrell@palefire.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/12064: updated port for postfix Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12064 >Category: ports >Synopsis: updated port for postfix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 6 17:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: User & >Release: FreeBSD 3.2-STABLE i386 >Organization: >Environment: >Description: Updated port for postfix to 19990601 beta. Less likely to clobber configuration (including postfix-script), since it puts samples in /usr/local/etc/postfix/samples, and doesn't remove anything in /usr/local/etc/postfix on deinstall. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # postfix # postfix/files # postfix/files/md5 # postfix/pkg # postfix/pkg/COMMENT # postfix/pkg/DESCR # postfix/pkg/INSTALL # postfix/pkg/PLIST # postfix/patches # postfix/patches/patch-ca # postfix/patches/patch-ab # postfix/patches/patch-ba # postfix/patches/patch-bb # postfix/patches/patch-bc # postfix/patches/patch-bd # postfix/patches/patch-be # postfix/patches/patch-bf # postfix/patches/patch-bg # postfix/patches/patch-bh # postfix/patches/patch-bi # postfix/patches/patch-aa # postfix/scripts # postfix/scripts/configure # postfix/Makefile # echo c - postfix mkdir -p postfix > /dev/null 2>&1 echo c - postfix/files mkdir -p postfix/files > /dev/null 2>&1 echo x - postfix/files/md5 sed 's/^X//' >postfix/files/md5 << 'END-of-postfix/files/md5' XMD5 (postfix-19990601.tar.gz) = adf54dfceb7950587b3e1a0966e84026 END-of-postfix/files/md5 echo c - postfix/pkg mkdir -p postfix/pkg > /dev/null 2>&1 echo x - postfix/pkg/COMMENT sed 's/^X//' >postfix/pkg/COMMENT << 'END-of-postfix/pkg/COMMENT' XPostfix aims to be an alternative to sendmail END-of-postfix/pkg/COMMENT echo x - postfix/pkg/DESCR sed 's/^X//' >postfix/pkg/DESCR << 'END-of-postfix/pkg/DESCR' XPostfix aims to be an alternative to the widely-used sendmail Xprogram. Sendmail is responsible for 70% of all e-mail delivered Xon the Internet. With an estimated 100 million users, that's an Xestimated 10 billion (10^10) messages daily. A stunning number. X XWWW: http://www.postfix.org/ END-of-postfix/pkg/DESCR echo x - postfix/pkg/INSTALL sed 's/^X//' >postfix/pkg/INSTALL << 'END-of-postfix/pkg/INSTALL' X#!/bin/sh X Xuser=postfix Xgroup=postfix Xgroup2=maildrop X Xask() { X local question default answer X X question=$1 X default=$2 X if [ -z "${PACKAGE_BUILDING}" ]; then X read -p "${question} [${default}]? " answer X fi X if [ x${answer} = x ]; then X answer=${default} X fi X echo ${answer} X} X Xyesno() { X local dflt question answer X X question=$1 X dflt=$2 X while :; do X answer=$(ask "${question}" "${dflt}") X case "${answer}" in X [Yy]*) return 0;; X [Nn]*) return 1;; X esac X echo "Please answer yes or no." X done X} X Xif pw groupshow "${group}" 2>/dev/null; then X echo "You already have a group \"${group}\", so I will use it." Xelse X echo "You need a group \"${group}\"." X if yesno "Would you like me to create it" y; then X pw groupadd ${group} -h - || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi Xfi X Xif pw groupshow "${group2}" 2>/dev/null; then X echo "You already have a group \"${group2}\", so I will use it." Xelse X echo "You need a group \"${group2}\"." X if yesno "Would you like me to create it" y; then X pw groupadd ${group2} -h - || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi Xfi X Xif pw user show "${user}" 2>/dev/null; then X echo "You already have a user \"${user}\", so I will use it." Xelse X echo "You need a user \"${user}\"." X if yesno "Would you like me to create it" y; then X pw useradd ${user} -g ${group} -h - -d /nonexistent \ X -s /nonexistent -c "Postfix Mail System" || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi Xfi X Xchown root:maildrop ${PREFIX}/sbin/postdrop Xchmod 2755 ${PREFIX}/sbin/postdrop END-of-postfix/pkg/INSTALL echo x - postfix/pkg/PLIST sed 's/^X//' >postfix/pkg/PLIST << 'END-of-postfix/pkg/PLIST' Xetc/postfix/sample/sample-access Xetc/postfix/sample/sample-main.cf Xetc/postfix/sample/sample-master.cf Xetc/postfix/sample/sample-aliases.cf Xetc/postfix/sample/sample-canonical.cf Xetc/postfix/sample/sample-debug.cf Xetc/postfix/sample/sample-ldap.cf Xetc/postfix/sample/sample-local.cf Xetc/postfix/sample/sample-misc.cf Xetc/postfix/sample/sample-pcre.cf Xetc/postfix/sample/sample-rate.cf Xetc/postfix/sample/sample-relocated.cf Xetc/postfix/sample/sample-resource.cf Xetc/postfix/sample/sample-rewrite.cf Xetc/postfix/sample/sample-smtp.cf Xetc/postfix/sample/sample-smtpd.cf Xetc/postfix/sample/sample-transport.cf Xetc/postfix/sample/sample-virtual.cf Xetc/postfix/sample/sample-postfix-script Xsbin/sendmail Xsbin/postalias Xsbin/postcat Xsbin/postconf Xsbin/postfix Xsbin/postkick Xsbin/postlock Xsbin/postlog Xsbin/postmap Xsbin/postsuper Xsbin/postdrop Xsbin/smtp-sink Xsbin/smtp-source Xlibexec/postfix/bounce Xlibexec/postfix/cleanup Xlibexec/postfix/error Xlibexec/postfix/fsstone Xlibexec/postfix/local Xlibexec/postfix/master Xlibexec/postfix/pickup Xlibexec/postfix/pipe Xlibexec/postfix/qmgr Xlibexec/postfix/showq Xlibexec/postfix/smtp Xlibexec/postfix/smtpd Xlibexec/postfix/trivial-rewrite X@exec mkdir -p -m 0755 /var/spool/postfix X@exec chown root:wheel /var/spool/postfix X@dirrm etc/postfix/sample/ END-of-postfix/pkg/PLIST echo c - postfix/patches mkdir -p postfix/patches > /dev/null 2>&1 echo x - postfix/patches/patch-ca sed 's/^X//' >postfix/patches/patch-ca << 'END-of-postfix/patches/patch-ca' X--- Makefile.in.orig Sun Jun 6 18:43:55 1999 X+++ Makefile.in Sun Jun 6 18:42:42 1999 X@@ -4,7 +4,7 @@ X DIRS = util global dns master postfix smtpstone fsstone sendmail error \ X pickup cleanup smtpd local trivial-rewrite qmgr smtp bounce pipe \ X showq postalias postcat postconf postdrop postkick postlock postlog \ X- postmap postsuper # man html X+ postmap postsuper man html X X default: update X END-of-postfix/patches/patch-ca echo x - postfix/patches/patch-ab sed 's/^X//' >postfix/patches/patch-ab << 'END-of-postfix/patches/patch-ab' X*** conf/main.cf.orig Mon Mar 29 22:10:14 1999 X--- conf/main.cf Mon Mar 29 22:13:09 1999 X*************** X*** 18,36 **** X # Postfix support programs and daemons. This setting can be overruled X # with the command_directory and daemon_directory parameters. X # X! program_directory = /some/where/postfix/bin X X # The command_directory parameter specifies the location of all X # postXXX commands. The default value is $program_directory. X # X! #command_directory = /usr/sbin X X # The daemon_directory parameter specifies the location of all Postfix X # daemon programs (i.e. programs listed in the master.cf file). The X # default value is $program_directory. This directory must be owned X # by root. X # X! #daemon_directory = /usr/libexec/postfix X X # QUEUE AND PROCESS OWNERSHIP X # X--- 18,36 ---- X # Postfix support programs and daemons. This setting can be overruled X # with the command_directory and daemon_directory parameters. X # X! program_directory = !!PREFIX!!/libexec/postfix X X # The command_directory parameter specifies the location of all X # postXXX commands. The default value is $program_directory. X # X! command_directory = !!PREFIX!!/sbin X X # The daemon_directory parameter specifies the location of all Postfix X # daemon programs (i.e. programs listed in the master.cf file). The X # default value is $program_directory. This directory must be owned X # by root. X # X! daemon_directory = !!PREFIX!!/libexec/postfix X X # QUEUE AND PROCESS OWNERSHIP X # X*************** X*** 40,53 **** X # OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In particular, X # don't specify nobody or daemon. PLEASE USE A DEDICATED USER. X # X! #mail_owner = postfix X X # The default_privs parameter specifies the default rights used by X # the local delivery agent for delivery to external file or command. X # These rights are used in the absence of a recipient user context. X # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. X # X! #default_privs = nobody X X # INTERNET HOST AND DOMAIN NAMES X # X--- 40,53 ---- X # OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In particular, X # don't specify nobody or daemon. PLEASE USE A DEDICATED USER. X # X! mail_owner = postfix X X # The default_privs parameter specifies the default rights used by X # the local delivery agent for delivery to external file or command. X # These rights are used in the absence of a recipient user context. X # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. X # X! default_privs = nobody X X # INTERNET HOST AND DOMAIN NAMES X # END-of-postfix/patches/patch-ab echo x - postfix/patches/patch-ba sed 's/^X//' >postfix/patches/patch-ba << 'END-of-postfix/patches/patch-ba' X*** man/man1/postdrop.1.orig Mon Mar 29 22:35:14 1999 X--- man/man1/postdrop.1 Mon Mar 29 22:35:25 1999 X*************** X*** 51,57 **** X .na X .nf X /var/spool/postfix, mail queue X! /etc/postfix, configuration files X .SH CONFIGURATION PARAMETERS X .na X .nf X--- 51,57 ---- X .na X .nf X /var/spool/postfix, mail queue X! !!PREFIX!!/etc/postfix, configuration files X .SH CONFIGURATION PARAMETERS X .na X .nf END-of-postfix/patches/patch-ba echo x - postfix/patches/patch-bb sed 's/^X//' >postfix/patches/patch-bb << 'END-of-postfix/patches/patch-bb' X*** man/man1/sendmail.1.orig Mon Mar 29 22:35:30 1999 X--- man/man1/sendmail.1 Mon Mar 29 22:35:44 1999 X*************** X*** 60,66 **** X \fBjust-send-eight\fR. X .IP "\fB-C \fIconfig_file\fR (ignored :-)" X The path name of the \fBsendmail.cf\fR file. Postfix configuration X! files are kept in \fB/etc/postfix\fR. X .IP "\fB-F \fIfull_name\fR X Set the sender full name. This is used only with messages that X have no \fBFrom:\fR message header. X--- 60,66 ---- X \fBjust-send-eight\fR. X .IP "\fB-C \fIconfig_file\fR (ignored :-)" X The path name of the \fBsendmail.cf\fR file. Postfix configuration X! files are kept in \fB!!PREFIX!!/etc/postfix\fR. X .IP "\fB-F \fIfull_name\fR X Set the sender full name. This is used only with messages that X have no \fBFrom:\fR message header. X*************** X*** 164,170 **** X .na X .nf X /var/spool/postfix, mail queue X! /etc/postfix, configuration files X .SH CONFIGURATION PARAMETERS X .na X .nf X--- 164,170 ---- X .na X .nf X /var/spool/postfix, mail queue X! !!PREFIX!!/etc/postfix, configuration files X .SH CONFIGURATION PARAMETERS X .na X .nf END-of-postfix/patches/patch-bb echo x - postfix/patches/patch-bc sed 's/^X//' >postfix/patches/patch-bc << 'END-of-postfix/patches/patch-bc' X*** man/man5/access.5.orig Mon Mar 29 22:35:58 1999 X--- man/man5/access.5 Mon Mar 29 22:36:13 1999 X*************** X*** 8,14 **** X .SH SYNOPSIS X .na X .nf X! \fBpostmap /etc/postfix/access\fR X .SH DESCRIPTION X .ad X .fi X--- 8,14 ---- X .SH SYNOPSIS X .na X .nf X! \fBpostmap !!PREFIX!!/etc/postfix/access\fR X .SH DESCRIPTION X .ad X .fi END-of-postfix/patches/patch-bc echo x - postfix/patches/patch-bd sed 's/^X//' >postfix/patches/patch-bd << 'END-of-postfix/patches/patch-bd' X*** man/man5/canonical.5.orig Mon Mar 29 22:36:25 1999 X--- man/man5/canonical.5 Mon Mar 29 22:36:32 1999 X*************** X*** 8,14 **** X .SH SYNOPSIS X .na X .nf X! \fBpostmap /etc/postfix/canonical\fR X .SH DESCRIPTION X .ad X .fi X--- 8,14 ---- X .SH SYNOPSIS X .na X .nf X! \fBpostmap !!PREFIX!!/etc/postfix/canonical\fR X .SH DESCRIPTION X .ad X .fi END-of-postfix/patches/patch-bd echo x - postfix/patches/patch-be sed 's/^X//' >postfix/patches/patch-be << 'END-of-postfix/patches/patch-be' X*** man/man5/relocated.5.orig Mon Mar 29 22:36:36 1999 X--- man/man5/relocated.5 Mon Mar 29 22:36:47 1999 X*************** X*** 8,14 **** X .SH SYNOPSIS X .na X .nf X! \fBpostmap /etc/postfix/relocated\fR X .SH DESCRIPTION X .ad X .fi X--- 8,14 ---- X .SH SYNOPSIS X .na X .nf X! \fBpostmap !!PREFIX!!/etc/postfix/relocated\fR X .SH DESCRIPTION X .ad X .fi END-of-postfix/patches/patch-be echo x - postfix/patches/patch-bf sed 's/^X//' >postfix/patches/patch-bf << 'END-of-postfix/patches/patch-bf' X*** man/man5/virtual.5.orig Mon Mar 29 22:36:55 1999 X--- man/man5/virtual.5 Mon Mar 29 22:37:02 1999 X*************** X*** 8,14 **** X .SH SYNOPSIS X .na X .nf X! \fBpostmap /etc/postfix/virtual\fR X .SH DESCRIPTION X .ad X .fi X--- 8,14 ---- X .SH SYNOPSIS X .na X .nf X! \fBpostmap !!PREFIX!!/etc/postfix/virtual\fR X .SH DESCRIPTION X .ad X .fi END-of-postfix/patches/patch-bf echo x - postfix/patches/patch-bg sed 's/^X//' >postfix/patches/patch-bg << 'END-of-postfix/patches/patch-bg' X*** man/man8/local.8.orig Mon Mar 29 22:37:14 1999 X--- man/man8/local.8 Mon Mar 29 22:37:44 1999 X*************** X*** 75,81 **** X .ad X .fi X The default per-user mailbox is a file in the UNIX mail spool X! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); X the location can be specified with the \fBmail_spool_directory\fR X configuration parameter. X X--- 75,81 ---- X .ad X .fi X The default per-user mailbox is a file in the UNIX mail spool X! directory (\fB/var/mail/\fIuser\fR); X the location can be specified with the \fBmail_spool_directory\fR X configuration parameter. X END-of-postfix/patches/patch-bg echo x - postfix/patches/patch-bh sed 's/^X//' >postfix/patches/patch-bh << 'END-of-postfix/patches/patch-bh' X*** man/man8/cleanup.8.orig Mon Mar 29 22:37:59 1999 X--- man/man8/cleanup.8 Mon Mar 29 22:38:13 1999 X*************** X*** 118,125 **** X .SH FILES X .na X .nf X! /etc/postfix/canonical*, canonical mapping table X! /etc/postfix/virtual*, virtual mapping table X .SH LICENSE X .na X .nf X--- 118,125 ---- X .SH FILES X .na X .nf X! !!PREFIX!!/etc/postfix/canonical*, canonical mapping table X! !!PREFIX!!/etc/postfix/virtual*, virtual mapping table X .SH LICENSE X .na X .nf END-of-postfix/patches/patch-bh echo x - postfix/patches/patch-bi sed 's/^X//' >postfix/patches/patch-bi << 'END-of-postfix/patches/patch-bi' X*** man/man8/master.8.orig Mon Mar 29 22:38:17 1999 X--- man/man8/master.8 Mon Mar 29 22:38:46 1999 X*************** X*** 116,123 **** X .SH FILES X .na X .nf X! /etc/postfix/main.cf: global configuration file. X! /etc/postfix/master.cf: master process configuration file. X /var/spool/postfix/pid/master.pid: master lock file. X .SH SEE ALSO X .na X--- 116,123 ---- X .SH FILES X .na X .nf X! !!PREFIX!!/etc/postfix/main.cf: global configuration file. X! !!PREFIX!!/etc/postfix/master.cf: master process configuration file. X /var/spool/postfix/pid/master.pid: master lock file. X .SH SEE ALSO X .na END-of-postfix/patches/patch-bi echo x - postfix/patches/patch-aa sed 's/^X//' >postfix/patches/patch-aa << 'END-of-postfix/patches/patch-aa' X*** global/mail_params.h.orig Sat Mar 20 15:09:46 1999 X--- global/mail_params.h Sat Mar 20 15:10:46 1999 X*************** X*** 127,133 **** X */ X #define VAR_PROGRAM_DIR "program_directory" X #ifndef DEF_PROGRAM_DIR X! #define DEF_PROGRAM_DIR "/usr/libexec/postfix" X #endif X X #define VAR_DAEMON_DIR "daemon_directory" X--- 127,133 ---- X */ X #define VAR_PROGRAM_DIR "program_directory" X #ifndef DEF_PROGRAM_DIR X! #define DEF_PROGRAM_DIR "!!PREFIX!!/libexec/postfix" X #endif X X #define VAR_DAEMON_DIR "daemon_directory" X*************** X*** 161,167 **** X */ X #define VAR_CONFIG_DIR "config_directory" X #ifndef DEF_CONFIG_DIR X! #define DEF_CONFIG_DIR "/etc/postfix" X #endif X extern char *var_config_dir; X X--- 161,167 ---- X */ X #define VAR_CONFIG_DIR "config_directory" X #ifndef DEF_CONFIG_DIR X! #define DEF_CONFIG_DIR "!!PREFIX!!/etc/postfix" X #endif X extern char *var_config_dir; X END-of-postfix/patches/patch-aa echo c - postfix/scripts mkdir -p postfix/scripts > /dev/null 2>&1 echo x - postfix/scripts/configure sed 's/^X//' >postfix/scripts/configure << 'END-of-postfix/scripts/configure' X#!/bin/sh X# X# $Id: configure,v 1.2 1999/04/07 14:48:23 torstenb Exp $ X Xmv ${WRKSRC}/global/mail_params.h ${WRKSRC}/global/mail_params.h.bak Xsed <${WRKSRC}/global/mail_params.h.bak >${WRKSRC}/global/mail_params.h s+!!PREFIX!!+$PREFIX+g X Xmv ${WRKSRC}/conf/main.cf ${WRKSRC}/conf/main.cf.bak Xsed s+!!PREFIX!!+$PREFIX+g <${WRKSRC}/conf/main.cf.bak >${WRKSRC}/conf/main.cf X Xcd ${WRKSRC}/man X Xfor f in ${MAN1} ; do X mv man1/$f man1/$f.bak && \ X sed s+!!PREFIX!!+$PREFIX+g man1/$f Xdone X Xfor f in ${MAN5} ; do X mv man5/$f man5/$f.bak && \ X sed s+!!PREFIX!!+$PREFIX+g man5/$f Xdone X Xfor f in ${MAN8} ; do X mv man8/$f man8/$f.bak && \ X sed s+!!PREFIX!!+$PREFIX+g man8/$f Xdone END-of-postfix/scripts/configure echo x - postfix/Makefile sed 's/^X//' >postfix/Makefile << 'END-of-postfix/Makefile' X# New ports collection makefile for: postfix X# Version required: postfix 19990317-pl03 X# Date created: 18 Mar 1999 X# Whom: torstenb X# X# $Id: Makefile,v 1.2 1999/05/02 20:26:38 torstenb Exp $ X# X XDISTNAME= postfix-19990601 XPKGNAME= postfix-beta-19990601 XCATEGORIES= mail XMASTER_SITES= ftp://ftp.merit.edu/postfix/ \ X ftp://ftp.snoopy.net/pub/mirrors/postfix/ \ X ftp://ftp.reverse.net/pub/postfix/ \ X ftp://postfix.eu.org/pub/postfix/ \ X ftp://ftp.sunet.se/pub/unix/mail/postfix/ \ X ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/ \ X ftp://ftp.postfix.oaktree.co.uk/pub/postfix/ X XMAINTAINER= torstenb@FreeBSD.ORG X XALL_TARGET= default "OPT=${CFLAGS}" X XSCRIPTS_ENV+= MAN1="${MAN1}" MAN5="${MAN5}" MAN8="${MAN8}" X XMAN1= mailq.1 newaliases.1 postalias.1 postcat.1 postconf.1 postdrop.1 \ X postfix.1 postkick.1 postlock.1 postlog.1 postmap.1 postsuper.1 \ X sendmail.1 XMAN5= access.5 aliases.5 canonical.5 relocated.5 transport.5 virtual.5 XMAN8= bounce.8 cleanup.8 defer.8 local.8 master.8 pickup.8 pipe.8 qmgr.8 \ X showq.8 smtp.8 smtpd.8 trivial-rewrite.8 X XSHAREMODE= 0644 X Xdo-install: X @${MKDIR} -m 755 ${PREFIX}/etc/postfix X @chown root:wheel ${PREFIX}/etc/postfix X @${MKDIR} -m 755 ${PREFIX}/etc/postfix/sample X @chown root:wheel ${PREFIX}/etc/postfix/sample X @${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/LICENSE \ X ${PREFIX}/etc/postfix/LICENSE X @for f in access main.cf master.cf ; do \ X ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ X ${PREFIX}/etc/postfix/sample/sample-$$f ; \ X done X @exit X @for f in sample-aliases.cf sample-canonical.cf sample-debug.cf \ X sample-ldap.cf sample-local.cf sample-misc.cf sample-pcre.cf \ X sample-rate.cf sample-relocated.cf sample-resource.cf \ X sample-rewrite.cf sample-smtp.cf sample-smtpd.cf \ X sample-transport.cf sample-virtual.cf ; do \ X ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ X ${PREFIX}/etc/postfix/sample/$$f ;\ X done X @${INSTALL} -C -o root -g wheel -m 755 ${WRKSRC}/conf/postfix-script-sgid \ X ${PREFIX}/etc/postfix/sample/sample-postfix-script X @mkdir -p -m 0755 ${PREFIX}/libexec/postfix X @for f in bounce cleanup error fsstone local master pickup pipe \ X qmgr showq smtp smtpd trivial-rewrite ; do \ X ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/libexec/$$f \ X ${PREFIX}/libexec/postfix/$$f ;\ X done X @for f in postalias postcat postconf postdrop postfix postkick \ X postlock postlog postmap postsuper sendmail smtp-sink \ X smtp-source ; do \ X ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/bin/$$f \ X ${PREFIX}/sbin/$$f ;\ X done X @${INSTALL} -C -o root -g wheel -m 0555 ${WRKSRC}/bin/postdrop \ X ${PREFIX}/sbin/postdrop X @for f in ${MAN1} ; do \ X ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man1/$$f \ X ${PREFIX}/man/man1/$$f ;\ X done X @for f in ${MAN5} ; do \ X ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man5/$$f \ X ${PREFIX}/man/man5/$$f ;\ X done X @for f in ${MAN8} ; do \ X ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man8/$$f \ X ${PREFIX}/man/man8/$$f ;\ X done X @mkdir -p -m 0755 /var/spool/postfix X @if [ ! -e ${PREFIX}/etc/postfix/main.cf ]; then \ X ${CP} -p ${PREFIX}/etc/postfix/sample/sample-main.cf \ X ${PREFIX}/etc/postfix/main.cf; \ X fi X @if [ ! -e ${PREFIX}/etc/postfix/master.cf ]; then \ X ${CP} -p ${PREFIX}/etc/postfix/sample/sample-master.cf \ X ${PREFIX}/etc/postfix/master.cf; \ X fi X @if [ ! -e ${PREFIX}/etc/postfix/postfix-script ]; then \ X ${CP} -p ${PREFIX}/etc/postfix/sample/sample-postfix-script \ X ${PREFIX}/etc/postfix/postfix-script; \ X fi X @${ECHO_MSG} "--------------------------------------------------" X @${ECHO_MSG} "- To replace your existing sendmail with postfix -" X @${ECHO_MSG} "- type \"make replace\" -" X @${ECHO_MSG} "--------------------------------------------------" X Xpost-install: X @PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL X Xreplace: X @${ECHO_MSG} "===> Replacing sendmail" X @if [ -e /usr/sbin/sendmail ]; then \ X ${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF; \ X chmod 0 /usr/sbin/sendmail.OFF; \ X fi X @if [ -e ${PREFIX}/sbin/sendmail ]; then \ X ${LN} -s ${PREFIX}/sbin/sendmail /usr/sbin/sendmail; \ X fi X @${ECHO_MSG} "===> Replacing mailq" X @if [ -e /usr/bin/mailq ]; then \ X ${MV} -f /usr/bin/mailq /usr/bin/mailq.OFF; \ X chmod 0 /usr/bin/mailq.OFF; \ X fi X @if [ -e ${PREFIX}/sbin/sendmail ]; then \ X ${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/mailq; \ X fi X @${ECHO_MSG} "===> Replacing newaliases" X @if [ -e /usr/bin/newaliases ]; then \ X ${MV} -f /usr/bin/newaliases /usr/bin/newaliases.OFF; \ X chmod 0 /usr/bin/newaliases.OFF; \ X fi X @if [ -e ${PREFIX}/sbin/sendmail ]; then \ X ${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/newaliases; \ X fi X X.include END-of-postfix/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message