diff options
| author | Torsten Blum <torstenb@FreeBSD.org> | 1999-03-29 20:15:09 +0000 | 
|---|---|---|
| committer | Torsten Blum <torstenb@FreeBSD.org> | 1999-03-29 20:15:09 +0000 | 
| commit | f7f54da77e43b5cc834e48482babbe81dc49f043 (patch) | |
| tree | 4060ca58c256e685793e7662b30bb8d26240e1af /mail/postfix28 | |
| parent | Cleanup Makefile and pkg/DESCR (diff) | |
Port of Wietse Venema's postfix, yet another mail transport agent that tries to
replace sendmail.
Diffstat (limited to 'mail/postfix28')
| -rw-r--r-- | mail/postfix28/Makefile | 122 | ||||
| -rw-r--r-- | mail/postfix28/distinfo | 1 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-aa | 36 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-ab | 74 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-ba | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bb | 36 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bc | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bd | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-be | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bf | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bg | 19 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bh | 21 | ||||
| -rw-r--r-- | mail/postfix28/files/patch-bi | 21 | ||||
| -rw-r--r-- | mail/postfix28/pkg-comment | 1 | ||||
| -rw-r--r-- | mail/postfix28/pkg-descr | 6 | ||||
| -rw-r--r-- | mail/postfix28/pkg-install | 77 | ||||
| -rw-r--r-- | mail/postfix28/pkg-plist | 49 | ||||
| -rw-r--r-- | mail/postfix28/scripts/configure | 26 | 
18 files changed, 584 insertions, 0 deletions
| diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile new file mode 100644 index 000000000000..8c8e340a8706 --- /dev/null +++ b/mail/postfix28/Makefile @@ -0,0 +1,122 @@ +# New ports collection makefile for:	postfix +# Version required:	postfix 19990317-pl03 +# Date created:		18 Mar 1999 +# Whom:			torstenb +# +# $Id$ +# + +DISTNAME=	postfix-19990317-pl03 +PKGNAME=	postfix-alpha-19990317.03 +CATEGORIES=	mail +MASTER_SITES=	ftp://ftp.merit.edu/postfix/ \ +		ftp://ftp.snoopy.net/pub/mirrors/postfix/ \ +		ftp://ftp.reverse.net/pub/postfix/ \ +		ftp://postfix.eu.org/pub/postfix/ \ +		ftp://ftp.sunet.se/pub/unix/mail/postfix/ \ +		ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/ \ +		ftp://ftp.postfix.oaktree.co.uk/pub/postfix/ + +MAINTAINER=	torstenb@FreeBSD.ORG + +ALL_TARGET=	default + +SCRIPTS_ENV+=	MAN1="${MAN1}" MAN5="${MAN5}" MAN8="${MAN8}" + +MAN1=	mailq.1 newaliases.1 postalias.1 postcat.1 postconf.1 postdrop.1 \ +	postfix.1 postkick.1 postlock.1 postlog.1 postmap.1 postsuper.1 \ +	sendmail.1 +MAN5=	access.5 aliases.5 canonical.5 relocated.5 transport.5 virtual.5 +MAN8=	bounce.8 cleanup.8 defer.8 local.8 master.8 pickup.8 pipe.8 qmgr.8 \ +	showq.8 smtp.8 smtpd.8 trivial-rewrite.8 + +do-install: +	@mkdir -p -m 755 ${PREFIX}/etc/postfix +	@chown root:wheel ${PREFIX}/etc/postfix +	@install -C -o root -g wheel -m 0644 ${WRKSRC}/conf/LICENSE \ +		${PREFIX}/etc/postfix/LICENSE +	@for f in access main.cf master.cf ; do \ +		install -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ +		${PREFIX}/etc/postfix/sample-$$f ; \ +	done +	@exit +	@for f in sample-aliases.cf sample-canonical.cf sample-debug.cf \ +		sample-ldap.cf sample-local.cf sample-misc.cf sample-pcre.cf \ +		sample-rate.cf sample-relocated.cf sample-resource.cf \ +		sample-rewrite.cf sample-smtp.cf sample-smtpd.cf \ +		sample-transport.cf sample-virtual.cf ; do \ +		install -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ +		${PREFIX}/etc/postfix/$$f ;\ +	done +	@install -C -o root -g wheel -m 755 ${WRKSRC}/conf/postfix-script-sgid \ +		${PREFIX}/etc/postfix/postfix-script +	@mkdir -p -m 0755 ${PREFIX}/libexec/postfix +	@for f in bounce cleanup fsstone local master pickup pipe \ +		qmgr showq smtp smtp-sink smtp-source smtpd \ +		trivial-rewrite ; do \ +		install -C -o root -g wheel -m 0755 ${WRKSRC}/bin/$$f \ +			${PREFIX}/libexec/postfix/$$f ;\ +	done +	@for f in sendmail postalias postcat postconf postfix \ +		postkick postlock postlog postmap postsuper ; do \ +		install -C -o root -g wheel -m 0755 ${WRKSRC}/bin/$$f \ +			${PREFIX}/sbin/$$f ;\ +	done +	@install -C -o root -g wheel -m 0555 ${WRKSRC}/bin/postdrop \ +		${PREFIX}/sbin/postdrop +	@for f in ${MAN1} ; do \ +		install -C -o root -g wheel -m 0755 ${WRKSRC}/man/man1/$$f \ +			${PREFIX}/man/man1/$$f ;\ +	done +	@for f in ${MAN5} ; do \ +		install -C -o root -g wheel -m 0755 ${WRKSRC}/man/man5/$$f \ +			${PREFIX}/man/man5/$$f ;\ +	done +	@for f in ${MAN8} ; do \ +		install -C -o root -g wheel -m 0755 ${WRKSRC}/man/man8/$$f \ +			${PREFIX}/man/man8/$$f ;\ +	done +	@mkdir -p -m 0755 /var/spool/postfix +	@if [ ! -e ${PREFIX}/etc/postfix/main.cf ]; then \ +		${CP} -p ${PREFIX}/etc/postfix/sample-main.cf \ +			${PREFIX}/etc/postfix/main.cf; \ +	fi +	@if [ ! -e ${PREFIX}/etc/postfix/master.cf ]; then \ +		${CP} -p ${PREFIX}/etc/postfix/sample-master.cf \ +			${PREFIX}/etc/postfix/master.cf; \ +	fi +	@echo "--------------------------------------------------" +	@echo "- To replace your existing sendmail with postfix -" +	@echo "- type \"make replace\"                           " +	@echo "--------------------------------------------------" + +post-install: +	@PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + +replace: +	@echo "===> Replacing sendmail" +	@if [ -e /usr/sbin/sendmail ]; then \ +		${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF; \ +		chmod 0 /usr/sbin/sendmail.OFF; \ +	fi +	@if [ -e ${PREFIX}/sbin/sendmail ]; then \ +		ln -s ${PREFIX}/sbin/sendmail /usr/sbin/sendmail; \ +	fi +	@echo "===> Replacing mailq" +	@if [ -e /usr/bin/mailq ]; then \ +		${MV} -f /usr/bin/mailq /usr/bin/mailq.OFF; \ +		chmod 0 /usr/bin/mailq.OFF; \ +	fi +	@if [ -e ${PREFIX}/sbin/sendmail ]; then \ +		ln -s ${PREFIX}/sbin/sendmail /usr/bin/mailq; \ +	fi +	@echo "===> Replacing newaliases" +	@if [ -e /usr/bin/newaliases ]; then \ +		${MV} -f /usr/bin/newaliases /usr/bin/newaliases.OFF; \ +		chmod 0 /usr/bin/newaliases.OFF; \ +	fi +	@if [ -e ${PREFIX}/sbin/sendmail ]; then \ +		ln -s ${PREFIX}/sbin/sendmail /usr/bin/newaliases; \ +	fi + +.include <bsd.port.mk> diff --git a/mail/postfix28/distinfo b/mail/postfix28/distinfo new file mode 100644 index 000000000000..0ff555aac014 --- /dev/null +++ b/mail/postfix28/distinfo @@ -0,0 +1 @@ +MD5 (postfix-19990317-pl03.tar.gz) = d40f5773f4886ecbff40908588f07406 diff --git a/mail/postfix28/files/patch-aa b/mail/postfix28/files/patch-aa new file mode 100644 index 000000000000..3af6375f1959 --- /dev/null +++ b/mail/postfix28/files/patch-aa @@ -0,0 +1,36 @@ +*** global/mail_params.h.orig	Sat Mar 20 15:09:46 1999 +--- global/mail_params.h	Sat Mar 20 15:10:46 1999 +*************** +*** 127,133 **** +    */ +  #define VAR_PROGRAM_DIR		"program_directory" +  #ifndef DEF_PROGRAM_DIR +! #define DEF_PROGRAM_DIR		"/usr/libexec/postfix" +  #endif +   +  #define VAR_DAEMON_DIR		"daemon_directory" +--- 127,133 ---- +    */ +  #define VAR_PROGRAM_DIR		"program_directory" +  #ifndef DEF_PROGRAM_DIR +! #define DEF_PROGRAM_DIR		"!!PREFIX!!/libexec/postfix" +  #endif +   +  #define VAR_DAEMON_DIR		"daemon_directory" +*************** +*** 161,167 **** +    */ +  #define VAR_CONFIG_DIR		"config_directory" +  #ifndef DEF_CONFIG_DIR +! #define DEF_CONFIG_DIR		"/etc/postfix" +  #endif +  extern char *var_config_dir; +   +--- 161,167 ---- +    */ +  #define VAR_CONFIG_DIR		"config_directory" +  #ifndef DEF_CONFIG_DIR +! #define DEF_CONFIG_DIR		"!!PREFIX!!/etc/postfix" +  #endif +  extern char *var_config_dir; +   diff --git a/mail/postfix28/files/patch-ab b/mail/postfix28/files/patch-ab new file mode 100644 index 000000000000..6824371c251b --- /dev/null +++ b/mail/postfix28/files/patch-ab @@ -0,0 +1,74 @@ +*** conf/main.cf.orig	Mon Mar 29 22:10:14 1999 +--- conf/main.cf	Mon Mar 29 22:13:09 1999 +*************** +*** 18,36 **** +  # Postfix support programs and daemons. This setting can be overruled +  # with the command_directory and daemon_directory parameters. +  # +! program_directory = /some/where/postfix/bin +   +  # The command_directory parameter specifies the location of all +  # postXXX commands.  The default value is $program_directory. +  # +! #command_directory = /usr/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 +   +  # QUEUE AND PROCESS OWNERSHIP +  # +--- 18,36 ---- +  # Postfix support programs and daemons. This setting can be overruled +  # with the command_directory and daemon_directory parameters. +  # +! program_directory = !!PREFIX!!/pbexec/postfix +   +  # The command_directory parameter specifies the location of all +  # postXXX commands.  The default value is $program_directory. +  # +! 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 = !!PREFIX!!/libexec/postfix +   +  # QUEUE AND PROCESS OWNERSHIP +  # +*************** +*** 40,53 **** +  # OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In particular, +  # don't specify nobody or daemon. PLEASE USE A DEDICATED USER. +  # +! #mail_owner = postfix +   +  # The default_privs parameter specifies the default rights used by +  # the local delivery agent for delivery to external file or command. +  # 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 +   +  # INTERNET HOST AND DOMAIN NAMES +  #  +--- 40,53 ---- +  # OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In particular, +  # don't specify nobody or daemon. PLEASE USE A DEDICATED USER. +  # +! mail_owner = postfix +   +  # The default_privs parameter specifies the default rights used by +  # the local delivery agent for delivery to external file or command. +  # 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 +   +  # INTERNET HOST AND DOMAIN NAMES +  #  diff --git a/mail/postfix28/files/patch-ba b/mail/postfix28/files/patch-ba new file mode 100644 index 000000000000..73feeef81f27 --- /dev/null +++ b/mail/postfix28/files/patch-ba @@ -0,0 +1,19 @@ +*** man/man1/postdrop.1.orig	Mon Mar 29 22:35:14 1999 +--- man/man1/postdrop.1	Mon Mar 29 22:35:25 1999 +*************** +*** 51,57 **** +  .na +  .nf +  /var/spool/postfix, mail queue +! /etc/postfix, configuration files +  .SH CONFIGURATION PARAMETERS +  .na +  .nf +--- 51,57 ---- +  .na +  .nf +  /var/spool/postfix, mail queue +! !!PREFIX!!/etc/postfix, configuration files +  .SH CONFIGURATION PARAMETERS +  .na +  .nf diff --git a/mail/postfix28/files/patch-bb b/mail/postfix28/files/patch-bb new file mode 100644 index 000000000000..af024b23b3d9 --- /dev/null +++ b/mail/postfix28/files/patch-bb @@ -0,0 +1,36 @@ +*** man/man1/sendmail.1.orig	Mon Mar 29 22:35:30 1999 +--- man/man1/sendmail.1	Mon Mar 29 22:35:44 1999 +*************** +*** 60,66 **** +  \fBjust-send-eight\fR. +  .IP "\fB-C \fIconfig_file\fR (ignored :-)" +  The path name of the \fBsendmail.cf\fR file. Postfix configuration +! files are kept in \fB/etc/postfix\fR. +  .IP "\fB-F \fIfull_name\fR +  Set the sender full name. This is used only with messages that +  have no \fBFrom:\fR message header. +--- 60,66 ---- +  \fBjust-send-eight\fR. +  .IP "\fB-C \fIconfig_file\fR (ignored :-)" +  The path name of the \fBsendmail.cf\fR file. Postfix configuration +! files are kept in \fB!!PREFIX!!/etc/postfix\fR. +  .IP "\fB-F \fIfull_name\fR +  Set the sender full name. This is used only with messages that +  have no \fBFrom:\fR message header. +*************** +*** 164,170 **** +  .na +  .nf +  /var/spool/postfix, mail queue +! /etc/postfix, configuration files +  .SH CONFIGURATION PARAMETERS +  .na +  .nf +--- 164,170 ---- +  .na +  .nf +  /var/spool/postfix, mail queue +! !!PREFIX!!/etc/postfix, configuration files +  .SH CONFIGURATION PARAMETERS +  .na +  .nf diff --git a/mail/postfix28/files/patch-bc b/mail/postfix28/files/patch-bc new file mode 100644 index 000000000000..12a369684c8f --- /dev/null +++ b/mail/postfix28/files/patch-bc @@ -0,0 +1,19 @@ +*** man/man5/access.5.orig	Mon Mar 29 22:35:58 1999 +--- man/man5/access.5	Mon Mar 29 22:36:13 1999 +*************** +*** 8,14 **** +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap /etc/postfix/access\fR +  .SH DESCRIPTION +  .ad +  .fi +--- 8,14 ---- +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap !!PREFIX!!/etc/postfix/access\fR +  .SH DESCRIPTION +  .ad +  .fi diff --git a/mail/postfix28/files/patch-bd b/mail/postfix28/files/patch-bd new file mode 100644 index 000000000000..2b2f30f720f5 --- /dev/null +++ b/mail/postfix28/files/patch-bd @@ -0,0 +1,19 @@ +*** man/man5/canonical.5.orig	Mon Mar 29 22:36:25 1999 +--- man/man5/canonical.5	Mon Mar 29 22:36:32 1999 +*************** +*** 8,14 **** +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap /etc/postfix/canonical\fR +  .SH DESCRIPTION +  .ad +  .fi +--- 8,14 ---- +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap !!PREFIX!!/etc/postfix/canonical\fR +  .SH DESCRIPTION +  .ad +  .fi diff --git a/mail/postfix28/files/patch-be b/mail/postfix28/files/patch-be new file mode 100644 index 000000000000..354737c7e68d --- /dev/null +++ b/mail/postfix28/files/patch-be @@ -0,0 +1,19 @@ +*** man/man5/relocated.5.orig	Mon Mar 29 22:36:36 1999 +--- man/man5/relocated.5	Mon Mar 29 22:36:47 1999 +*************** +*** 8,14 **** +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap /etc/postfix/relocated\fR +  .SH DESCRIPTION +  .ad +  .fi +--- 8,14 ---- +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap !!PREFIX!!/etc/postfix/relocated\fR +  .SH DESCRIPTION +  .ad +  .fi diff --git a/mail/postfix28/files/patch-bf b/mail/postfix28/files/patch-bf new file mode 100644 index 000000000000..4de817826469 --- /dev/null +++ b/mail/postfix28/files/patch-bf @@ -0,0 +1,19 @@ +*** man/man5/virtual.5.orig	Mon Mar 29 22:36:55 1999 +--- man/man5/virtual.5	Mon Mar 29 22:37:02 1999 +*************** +*** 8,14 **** +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap /etc/postfix/virtual\fR +  .SH DESCRIPTION +  .ad +  .fi +--- 8,14 ---- +  .SH SYNOPSIS +  .na +  .nf +! \fBpostmap !!PREFIX!!/etc/postfix/virtual\fR +  .SH DESCRIPTION +  .ad +  .fi diff --git a/mail/postfix28/files/patch-bg b/mail/postfix28/files/patch-bg new file mode 100644 index 000000000000..fb2b093bff0f --- /dev/null +++ b/mail/postfix28/files/patch-bg @@ -0,0 +1,19 @@ +*** man/man8/local.8.orig	Mon Mar 29 22:37:14 1999 +--- man/man8/local.8	Mon Mar 29 22:37:44 1999 +*************** +*** 75,81 **** +  .ad +  .fi +  The default per-user mailbox is a file in the UNIX mail spool +! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); +  the location can be specified with the \fBmail_spool_directory\fR +  configuration parameter. +   +--- 75,81 ---- +  .ad +  .fi +  The default per-user mailbox is a file in the UNIX mail spool +! directory (\fB/var/mail/\fIuser\fR); +  the location can be specified with the \fBmail_spool_directory\fR +  configuration parameter. +   diff --git a/mail/postfix28/files/patch-bh b/mail/postfix28/files/patch-bh new file mode 100644 index 000000000000..42b7373d3fb5 --- /dev/null +++ b/mail/postfix28/files/patch-bh @@ -0,0 +1,21 @@ +*** man/man8/cleanup.8.orig	Mon Mar 29 22:37:59 1999 +--- man/man8/cleanup.8	Mon Mar 29 22:38:13 1999 +*************** +*** 118,125 **** +  .SH FILES +  .na +  .nf +! /etc/postfix/canonical*, canonical mapping table +! /etc/postfix/virtual*, virtual mapping table +  .SH LICENSE +  .na +  .nf +--- 118,125 ---- +  .SH FILES +  .na +  .nf +! !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! !!PREFIX!!/etc/postfix/virtual*, virtual mapping table +  .SH LICENSE +  .na +  .nf diff --git a/mail/postfix28/files/patch-bi b/mail/postfix28/files/patch-bi new file mode 100644 index 000000000000..2b57467ed976 --- /dev/null +++ b/mail/postfix28/files/patch-bi @@ -0,0 +1,21 @@ +*** man/man8/master.8.orig	Mon Mar 29 22:38:17 1999 +--- man/man8/master.8	Mon Mar 29 22:38:46 1999 +*************** +*** 116,123 **** +  .SH FILES +  .na +  .nf +! /etc/postfix/main.cf: global configuration file. +! /etc/postfix/master.cf: master process configuration file. +  /var/spool/postfix/pid/master.pid: master lock file. +  .SH SEE ALSO +  .na +--- 116,123 ---- +  .SH FILES +  .na +  .nf +! !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! !!PREFIX!!/etc/postfix/master.cf: master process configuration file. +  /var/spool/postfix/pid/master.pid: master lock file. +  .SH SEE ALSO +  .na diff --git a/mail/postfix28/pkg-comment b/mail/postfix28/pkg-comment new file mode 100644 index 000000000000..e9fea510ce32 --- /dev/null +++ b/mail/postfix28/pkg-comment @@ -0,0 +1 @@ +Postfix aims to be an alternative to sendmail diff --git a/mail/postfix28/pkg-descr b/mail/postfix28/pkg-descr new file mode 100644 index 000000000000..fa5e129bf08b --- /dev/null +++ b/mail/postfix28/pkg-descr @@ -0,0 +1,6 @@ +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. + +See http://www.postfix.org/ for details diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install new file mode 100644 index 000000000000..7b4849639b05 --- /dev/null +++ b/mail/postfix28/pkg-install @@ -0,0 +1,77 @@ +#!/bin/sh + +user=postfix +group=postfix +group2=maildrop + +ask() { +    local question default answer + +    question=$1 +    default=$2 +    if [ -z "${PACKAGE_BUILDING}" ]; then +        read -p "${question} [${default}]? " answer +    fi +    if [ x${answer} = x ]; then +        answer=${default} +    fi +    echo ${answer} +} + +yesno() { +    local dflt question answer + +    question=$1 +    dflt=$2 +    while :; do +        answer=$(ask "${question}" "${dflt}") +        case "${answer}" in +        [Yy]*)          return 0;; +        [Nn]*)          return 1;; +        esac +        echo "Please answer yes or no." +    done +} + +if pw groupshow "${group}" 2>/dev/null; then +    echo "You already have a group \"${group}\", so I will use it." +else +    echo "You need a group \"${group}\"." +    if yesno "Would you like me to create it" y; then +        pw groupadd ${group} -h - || exit +        echo "Done." +    else +        echo "Please create it, and try again." +        exit 1 +    fi +fi + +if pw groupshow "${group2}" 2>/dev/null; then +    echo "You already have a group \"${group2}\", so I will use it." +else +    echo "You need a group \"${group2}\"." +    if yesno "Would you like me to create it" y; then +        pw groupadd ${group2} -h - || exit +        echo "Done." +    else +        echo "Please create it, and try again." +        exit 1 +    fi +fi + +if pw user show "${user}" 2>/dev/null; then +    echo "You already have a user \"${user}\", so I will use it." +else +    echo "You need a user \"${user}\"." +    if yesno "Would you like me to create it" y; then +        pw useradd ${user} -g ${group} -h - -d /nonexistent \ +            -s /nonexistent -c "Postfix Mail System" || exit +        echo "Done." +    else +        echo "Please create it, and try again." +        exit 1 +    fi +fi + +chown root:maildrop ${PREFIX}/sbin/postdrop +chmod 2755 ${PREFIX}/sbin/postdrop diff --git a/mail/postfix28/pkg-plist b/mail/postfix28/pkg-plist new file mode 100644 index 000000000000..28bc453e2bc2 --- /dev/null +++ b/mail/postfix28/pkg-plist @@ -0,0 +1,49 @@ +etc/postfix/main.cf +etc/postfix/LICENSE +etc/postfix/sample-access +etc/postfix/sample-main.cf +etc/postfix/sample-master.cf +etc/postfix/sample-aliases.cf +etc/postfix/sample-canonical.cf +etc/postfix/sample-debug.cf +etc/postfix/sample-ldap.cf +etc/postfix/sample-local.cf +etc/postfix/sample-misc.cf +etc/postfix/sample-pcre.cf +etc/postfix/sample-rate.cf +etc/postfix/sample-relocated.cf +etc/postfix/sample-resource.cf +etc/postfix/sample-rewrite.cf +etc/postfix/sample-smtp.cf +etc/postfix/sample-smtpd.cf +etc/postfix/sample-transport.cf +etc/postfix/sample-virtual.cf +etc/postfix/postfix-script +etc/postfix/master.cf +libexec/postfix/bounce +libexec/postfix/cleanup +libexec/postfix/fsstone +libexec/postfix/local +libexec/postfix/master +libexec/postfix/pickup +libexec/postfix/pipe +libexec/postfix/qmgr +libexec/postfix/showq +libexec/postfix/smtp +libexec/postfix/smtp-sink +libexec/postfix/smtp-source +libexec/postfix/smtpd +libexec/postfix/trivial-rewrite +sbin/sendmail +sbin/postalias +sbin/postcat +sbin/postconf +sbin/postfix +sbin/postkick +sbin/postlock +sbin/postlog +sbin/postmap +sbin/postsuper +sbin/postdrop +@exec mkdir -p -m 0755 /var/spool/postfix +@exec chown root:wheel /var/spool/postfix diff --git a/mail/postfix28/scripts/configure b/mail/postfix28/scripts/configure new file mode 100644 index 000000000000..48d9220b478d --- /dev/null +++ b/mail/postfix28/scripts/configure @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $Id$ + +mv ${WRKSRC}/global/mail_params.h ${WRKSRC}/global/mail_params.h.bak +sed <${WRKSRC}/global/mail_params.h.bak >${WRKSRC}/global/mail_params.h s+!!PREFIX!!+$PREFIX+g + +mv ${WRKSRC}/conf/main.cf ${WRKSRC}/conf/main.cf.bak +sed <${WRKSRC}/conf/main.cf.bak >${WRKSRC}/conf/main.cf + +cd ${WRKSRC}/man + +for f in ${MAN1} ; do +	mv man1/$f man1/$f.bak && \ +		sed s+!!PREFIX!!+$PREFIX+g <man1/$f.bak | soelim >man1/$f +done +	 +for f in ${MAN5} ; do +	mv man5/$f man5/$f.bak && \ +		sed s+!!PREFIX!!+$PREFIX+g <man5/$f.bak | soelim >man5/$f +done +	 +for f in ${MAN8} ; do +	mv man8/$f man8/$f.bak && \ +		sed s+!!PREFIX!!+$PREFIX+g <man8/$f.bak | soelim >man8/$f +done | 
