head	1.116;
access;
symbols
	pkgsrc-2013Q2:1.116.0.8
	pkgsrc-2013Q2-base:1.116
	pkgsrc-2012Q4:1.116.0.6
	pkgsrc-2012Q4-base:1.116
	pkgsrc-2011Q4:1.116.0.4
	pkgsrc-2011Q4-base:1.116
	pkgsrc-2011Q2:1.116.0.2
	pkgsrc-2011Q2-base:1.116
	pkgsrc-2010Q4:1.115.0.4
	pkgsrc-2010Q4-base:1.115
	pkgsrc-2010Q3:1.115.0.2
	pkgsrc-2010Q3-base:1.115
	pkgsrc-2010Q2:1.114.0.2
	pkgsrc-2010Q2-base:1.114
	pkgsrc-2010Q1:1.112.0.2
	pkgsrc-2010Q1-base:1.112
	pkgsrc-2009Q4:1.110.0.2
	pkgsrc-2009Q4-base:1.110
	pkgsrc-2009Q3:1.109.0.2
	pkgsrc-2009Q3-base:1.109
	pkgsrc-2009Q2:1.107.0.2
	pkgsrc-2009Q2-base:1.107
	pkgsrc-2009Q1:1.103.0.2
	pkgsrc-2009Q1-base:1.103
	pkgsrc-2008Q4:1.102.0.2
	pkgsrc-2008Q4-base:1.102
	pkgsrc-2008Q3:1.101.0.4
	pkgsrc-2008Q3-base:1.101
	cube-native-xorg:1.101.0.2
	cube-native-xorg-base:1.101
	pkgsrc-2008Q2:1.97.0.6
	pkgsrc-2008Q2-base:1.97
	cwrapper:1.97.0.4
	pkgsrc-2008Q1:1.97.0.2
	pkgsrc-2008Q1-base:1.97
	pkgsrc-2007Q4:1.87.0.2
	pkgsrc-2007Q4-base:1.87
	pkgsrc-2007Q3:1.84.0.2
	pkgsrc-2007Q3-base:1.84
	pkgsrc-2007Q2:1.82.0.2
	pkgsrc-2007Q2-base:1.82
	pkgsrc-2007Q1:1.80.0.2
	pkgsrc-2007Q1-base:1.80
	pkgsrc-2006Q4:1.77.0.2
	pkgsrc-2006Q4-base:1.77
	pkgsrc-2006Q3:1.66.0.2
	pkgsrc-2006Q3-base:1.66
	pkgsrc-2006Q2:1.63.0.2
	pkgsrc-2006Q2-base:1.63
	pkgsrc-2006Q1:1.60.0.2
	pkgsrc-2006Q1-base:1.60
	pkgsrc-2005Q4:1.50.0.2
	pkgsrc-2005Q4-base:1.50
	pkgsrc-2005Q3:1.44.0.2
	pkgsrc-2005Q3-base:1.44
	pkgsrc-2005Q2:1.41.0.2
	pkgsrc-2005Q2-base:1.41
	pkgsrc-2005Q1:1.40.0.2
	pkgsrc-2005Q1-base:1.40
	pkgsrc-2004Q4:1.39.0.2
	pkgsrc-2004Q4-base:1.39
	pkgsrc-2004Q3:1.38.0.2
	pkgsrc-2004Q3-base:1.38
	pkgsrc-2004Q2:1.32.0.2
	pkgsrc-2004Q2-base:1.32
	pkgsrc-2004Q1:1.28.0.2
	pkgsrc-2004Q1-base:1.28
	pkgsrc-base:1.1.1.2
	pkgsrc-2003Q4:1.24.0.2
	pkgsrc-2003Q4-base:1.24
	buildlink2-base:1.24
	netbsd-1-5-RELEASE:1.5
	netbsd-1-4-PATCH003:1.5
	NetBSD-current-20000814:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.116
date	2011.02.26.09.01.35;	author tron;	state dead;
branches;
next	1.115;

1.115
date	2010.09.28.13.21.31;	author wiz;	state Exp;
branches
	1.115.4.1;
next	1.114;

1.114
date	2010.06.16.18.36.48;	author gdt;	state Exp;
branches;
next	1.113;

1.113
date	2010.06.08.15.15.03;	author martti;	state Exp;
branches;
next	1.112;

1.112
date	2010.03.12.13.19.49;	author obache;	state Exp;
branches;
next	1.111;

1.111
date	2010.02.25.13.02.02;	author martti;	state Exp;
branches;
next	1.110;

1.110
date	2009.12.13.08.55.57;	author martti;	state Exp;
branches;
next	1.109;

1.109
date	2009.08.31.09.37.49;	author martti;	state Exp;
branches;
next	1.108;

1.108
date	2009.08.09.21.17.49;	author heinz;	state Exp;
branches;
next	1.107;

1.107
date	2009.06.04.14.08.06;	author martti;	state Exp;
branches;
next	1.106;

1.106
date	2009.05.20.07.45.40;	author martti;	state Exp;
branches;
next	1.105;

1.105
date	2009.05.13.10.34.06;	author martti;	state Exp;
branches;
next	1.104;

1.104
date	2009.05.12.12.27.19;	author martti;	state Exp;
branches;
next	1.103;

1.103
date	2009.01.05.10.25.39;	author martti;	state Exp;
branches;
next	1.102;

1.102
date	2008.10.16.09.45.12;	author martti;	state Exp;
branches;
next	1.101;

1.101
date	2008.09.04.08.25.31;	author martti;	state Exp;
branches;
next	1.100;

1.100
date	2008.08.22.20.29.55;	author ghen;	state Exp;
branches;
next	1.99;

1.99
date	2008.08.18.07.19.13;	author martti;	state Exp;
branches;
next	1.98;

1.98
date	2008.08.13.07.34.43;	author martti;	state Exp;
branches;
next	1.97;

1.97
date	2008.03.17.07.11.42;	author martti;	state Exp;
branches
	1.97.6.1;
next	1.96;

1.96
date	2008.03.10.10.33.38;	author wiz;	state Exp;
branches;
next	1.95;

1.95
date	2008.03.06.10.44.46;	author wiz;	state Exp;
branches;
next	1.94;

1.94
date	2008.02.18.17.46.22;	author ghen;	state Exp;
branches;
next	1.93;

1.93
date	2008.01.25.09.42.54;	author ghen;	state Exp;
branches;
next	1.92;

1.92
date	2008.01.25.09.41.28;	author ghen;	state Exp;
branches;
next	1.91;

1.91
date	2008.01.18.05.08.29;	author tnn;	state Exp;
branches;
next	1.90;

1.90
date	2008.01.17.14.03.05;	author martti;	state Exp;
branches;
next	1.89;

1.89
date	2008.01.16.17.39.01;	author ghen;	state Exp;
branches;
next	1.88;

1.88
date	2008.01.16.14.21.44;	author ghen;	state Exp;
branches;
next	1.87;

1.87
date	2007.10.30.19.31.40;	author martti;	state Exp;
branches;
next	1.86;

1.86
date	2007.10.30.13.27.32;	author martti;	state Exp;
branches;
next	1.85;

1.85
date	2007.10.22.06.15.56;	author martti;	state Exp;
branches;
next	1.84;

1.84
date	2007.09.23.11.43.42;	author jlam;	state Exp;
branches;
next	1.83;

1.83
date	2007.08.13.07.06.13;	author martti;	state Exp;
branches;
next	1.82;

1.82
date	2007.05.30.07.58.29;	author martti;	state Exp;
branches;
next	1.81;

1.81
date	2007.05.02.05.10.15;	author martti;	state Exp;
branches;
next	1.80;

1.80
date	2007.04.03.07.35.46;	author martti;	state Exp;
branches;
next	1.79;

1.79
date	2007.04.03.07.18.59;	author martti;	state Exp;
branches;
next	1.78;

1.78
date	2007.02.15.06.38.13;	author martti;	state Exp;
branches;
next	1.77;

1.77
date	2006.12.13.06.23.06;	author martti;	state Exp;
branches;
next	1.76;

1.76
date	2006.11.10.08.10.23;	author rillig;	state Exp;
branches;
next	1.75;

1.75
date	2006.11.07.07.08.51;	author martti;	state Exp;
branches;
next	1.74;

1.74
date	2006.10.19.06.37.04;	author martti;	state Exp;
branches;
next	1.73;

1.73
date	2006.10.18.09.26.53;	author martti;	state Exp;
branches;
next	1.72;

1.72
date	2006.10.16.11.03.07;	author martti;	state Exp;
branches;
next	1.71;

1.71
date	2006.10.16.10.58.24;	author martti;	state Exp;
branches;
next	1.70;

1.70
date	2006.10.16.10.43.33;	author martti;	state Exp;
branches;
next	1.69;

1.69
date	2006.10.16.10.04.01;	author martti;	state Exp;
branches;
next	1.68;

1.68
date	2006.10.16.09.54.49;	author martti;	state Exp;
branches;
next	1.67;

1.67
date	2006.10.16.09.48.00;	author martti;	state Exp;
branches;
next	1.66;

1.66
date	2006.08.31.18.45.02;	author martti;	state Exp;
branches;
next	1.65;

1.65
date	2006.08.11.12.34.54;	author taca;	state Exp;
branches;
next	1.64;

1.64
date	2006.07.13.09.57.53;	author martti;	state Exp;
branches;
next	1.63;

1.63
date	2006.05.01.02.57.03;	author jlam;	state Exp;
branches;
next	1.62;

1.62
date	2006.04.23.00.12.38;	author jlam;	state Exp;
branches;
next	1.61;

1.61
date	2006.04.07.09.26.43;	author martti;	state Exp;
branches;
next	1.60;

1.60
date	2006.03.10.08.34.34;	author martti;	state Exp;
branches;
next	1.59;

1.59
date	2006.03.04.21.30.02;	author jlam;	state Exp;
branches;
next	1.58;

1.58
date	2006.02.27.13.30.32;	author martti;	state Exp;
branches;
next	1.57;

1.57
date	2006.02.05.12.55.32;	author martti;	state Exp;
branches;
next	1.56;

1.56
date	2006.01.10.20.21.32;	author joerg;	state Exp;
branches;
next	1.55;

1.55
date	2006.01.10.06.39.00;	author martti;	state Exp;
branches;
next	1.54;

1.54
date	2006.01.08.18.35.10;	author xtraeme;	state Exp;
branches;
next	1.53;

1.53
date	2005.12.31.15.16.18;	author martti;	state Exp;
branches;
next	1.52;

1.52
date	2005.12.30.06.29.41;	author martti;	state Exp;
branches;
next	1.51;

1.51
date	2005.12.29.06.21.52;	author jlam;	state Exp;
branches;
next	1.50;

1.50
date	2005.12.05.20.50.34;	author rillig;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2005.12.04.06.30.37;	author martti;	state Exp;
branches;
next	1.48;

1.48
date	2005.12.03.19.29.37;	author martti;	state Exp;
branches;
next	1.47;

1.47
date	2005.11.30.14.02.47;	author martti;	state Exp;
branches;
next	1.46;

1.46
date	2005.11.16.06.53.14;	author martti;	state Exp;
branches;
next	1.45;

1.45
date	2005.09.30.06.04.32;	author martti;	state Exp;
branches;
next	1.44;

1.44
date	2005.08.23.11.48.49;	author rillig;	state Exp;
branches
	1.44.2.1;
next	1.43;

1.43
date	2005.08.14.21.51.02;	author christos;	state Exp;
branches;
next	1.42;

1.42
date	2005.07.31.03.58.45;	author grant;	state Exp;
branches;
next	1.41;

1.41
date	2005.04.11.21.46.22;	author tv;	state Exp;
branches
	1.41.2.1;
next	1.40;

1.40
date	2004.12.28.02.47.45;	author reed;	state Exp;
branches;
next	1.39;

1.39
date	2004.12.03.15.15.02;	author wiz;	state Exp;
branches;
next	1.38;

1.38
date	2004.08.07.08.11.25;	author jlam;	state Exp;
branches;
next	1.37;

1.37
date	2004.08.05.03.04.33;	author jlam;	state Exp;
branches;
next	1.36;

1.36
date	2004.07.31.05.53.44;	author jlam;	state Exp;
branches;
next	1.35;

1.35
date	2004.07.24.22.45.15;	author recht;	state Exp;
branches;
next	1.34;

1.34
date	2004.07.21.23.30.16;	author schmonz;	state Exp;
branches;
next	1.33;

1.33
date	2004.07.02.08.03.04;	author martti;	state Exp;
branches;
next	1.32;

1.32
date	2004.06.06.13.50.41;	author taca;	state Exp;
branches;
next	1.31;

1.31
date	2004.04.21.21.09.31;	author cube;	state Exp;
branches;
next	1.30;

1.30
date	2004.04.14.17.52.53;	author grant;	state Exp;
branches;
next	1.29;

1.29
date	2004.04.12.16.04.45;	author taca;	state Exp;
branches;
next	1.28;

1.28
date	2004.03.10.18.07.16;	author jlam;	state Exp;
branches;
next	1.27;

1.27
date	2004.03.07.12.29.41;	author martti;	state Exp;
branches;
next	1.26;

1.26
date	2004.03.07.10.16.05;	author grant;	state Exp;
branches;
next	1.25;

1.25
date	2004.03.06.15.08.32;	author grant;	state Exp;
branches;
next	1.24;

1.24
date	2001.03.20.13.15.54;	author hubertf;	state dead;
branches;
next	1.23;

1.23
date	2001.03.18.14.02.00;	author itojun;	state Exp;
branches;
next	1.22;

1.22
date	2001.03.12.07.18.05;	author itojun;	state Exp;
branches;
next	1.21;

1.21
date	2001.03.04.04.10.47;	author kim;	state Exp;
branches;
next	1.20;

1.20
date	2001.03.02.04.18.19;	author itojun;	state Exp;
branches;
next	1.19;

1.19
date	2001.02.28.10.34.38;	author itojun;	state Exp;
branches;
next	1.18;

1.18
date	2001.02.27.07.59.31;	author itojun;	state Exp;
branches;
next	1.17;

1.17
date	2001.02.25.04.17.58;	author hubertf;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.17.18.25.01;	author wiz;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.05.06.23.06;	author itojun;	state Exp;
branches;
next	1.14;

1.14
date	2001.02.04.06.10.23;	author itojun;	state Exp;
branches;
next	1.13;

1.13
date	2001.01.17.14.31.23;	author itojun;	state Exp;
branches;
next	1.12;

1.12
date	2001.01.13.07.46.57;	author itojun;	state Exp;
branches;
next	1.11;

1.11
date	2000.12.04.08.30.53;	author itojun;	state Exp;
branches;
next	1.10;

1.10
date	2000.11.27.15.54.32;	author itojun;	state Exp;
branches;
next	1.9;

1.9
date	2000.10.29.12.01.05;	author itojun;	state Exp;
branches;
next	1.8;

1.8
date	2000.10.29.05.41.06;	author kim;	state Exp;
branches;
next	1.7;

1.7
date	2000.10.29.05.40.33;	author kim;	state Exp;
branches;
next	1.6;

1.6
date	2000.10.15.14.10.19;	author itojun;	state Exp;
branches;
next	1.5;

1.5
date	2000.08.18.22.46.38;	author hubertf;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.14.12.38.21;	author wiz;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.14.11.26.14;	author itojun;	state Exp;
branches;
next	1.2;

1.2
date	2000.08.14.04.39.59;	author itojun;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.14.04.33.24;	author itojun;	state Exp;
branches
	1.1.1.1;
next	;

1.115.4.1
date	2011.03.11.10.54.02;	author tron;	state Exp;
branches;
next	;

1.97.6.1
date	2008.08.18.09.57.49;	author rtr;	state Exp;
branches;
next	1.97.6.2;

1.97.6.2
date	2008.08.18.12.18.46;	author rtr;	state Exp;
branches;
next	1.97.6.3;

1.97.6.3
date	2008.09.05.11.55.45;	author ghen;	state Exp;
branches;
next	;

1.50.2.1
date	2005.12.30.13.58.14;	author seb;	state Exp;
branches;
next	1.50.2.2;

1.50.2.2
date	2006.01.03.00.38.01;	author seb;	state Exp;
branches;
next	1.50.2.3;

1.50.2.3
date	2006.01.10.15.55.52;	author salo;	state Exp;
branches;
next	;

1.44.2.1
date	2005.10.05.13.45.39;	author salo;	state Exp;
branches;
next	1.44.2.2;

1.44.2.2
date	2005.11.21.23.24.32;	author salo;	state Exp;
branches;
next	;

1.41.2.1
date	2005.08.04.22.13.30;	author salo;	state Exp;
branches;
next	;

1.1.1.1
date	2000.08.14.04.33.24;	author itojun;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.03.06.15.04.12;	author grant;	state Exp;
branches;
next	;


desc
@@


1.116
log
@Remove outdated and unmaintained "postfix-current" package. Please use
the "postfix" package instead which contains a more recent version.
@
text
@# $NetBSD: Makefile,v 1.115 2010/09/28 13:21:31 wiz Exp $

DISTNAME=	postfix-2.8-20100603
PKGNAME=	postfix-2.8.20100603
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/
MASTER_SITES+=	http://postfix.it-austria.net/releases/experimental/
MASTER_SITES+=	http://mirrors.isc.org/pub/postfix/experimental/
MASTER_SITES+=	http://mirror.postfix.jp/postfix-release/experimental/
DIST_SUBDIR=	postfix

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	http://www.postfix.org/
COMMENT=	Postfix SMTP server and tools
# The postfix license has only very minor diffs from cpl-1.0.
LICENSE=	cpl-1.0
#LICENSE=	postfix-license

CONFLICTS+=	courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]*
CONFLICTS+=	postfix-2.[6-7]-[0-9]* esmtp>=1.2

PKG_DESTDIR_SUPPORT=	user-destdir
PKG_INSTALLATION_TYPES=	overwrite pkgviews

USE_TOOLS+=	perl
CHECK_HEADERS_SKIP+=	src/global/mail_params.h

.include "../../mk/bsd.prefs.mk"

SPECIAL_PERMS+=	sbin/postdrop postfix maildrop 2555
SPECIAL_PERMS+=	sbin/postqueue postfix maildrop 2555

# POSTFIX_QUEUE_DIR is the default queue directory for Postfix.  This is
# merely a default, and may be changed by setting "queue_directory" in
# ${PKG_SYSCONFDIR}/main.cf.
#
POSTFIX_DATA_DIR?=	${VARBASE}/db/postfix
POSTFIX_QUEUE_DIR?=	${VARBASE}/spool/postfix
BUILD_DEFS+=		VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR

# CCARGS is a list of options to pass to the preprocessor/compiler.
# AUXLIBS is a list of options to pass to the linker.
#
CCARGS=		-DUSE_SASL_AUTH
AUXLIBS=	${LDFLAGS}

# Set some default paths to override ${WRKSRC}/src/global/mail_params.h.
CCARGS+=	-DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\"
CCARGS+=	-DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\"
CCARGS+=	-DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
CCARGS+=	-DDEF_COMMAND_DIR=\"${PREFIX}/sbin\"
CCARGS+=	-DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\"
CCARGS+=	-DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\"
CCARGS+=	-DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\"
CCARGS+=	-DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\"
CCARGS+=	-DDEF_MANPAGE_DIR=\"${PREFIX}/${PKGMANDIR}\"
CCARGS+=	-DDEF_SAMPLE_DIR=\"${EXAMPLEDIR}\"
CCARGS+=	-DDEF_README_DIR=\"${DOCDIR}\"

REPLACE_PERL+=	auxiliary/qshape/qshape.pl

# Override those same default paths in the installed example main.cf.
SUBST_CLASSES+=		postfix
SUBST_STAGE.postfix=	post-configure
SUBST_FILES.postfix=	conf/main.cf src/global/mail_params.h
SUBST_SED.postfix=	\
	-e 's|^\(data_directory\) =.*|\1 = ${POSTFIX_DATA_DIR}|'
SUBST_SED.postfix+=	\
	-e 's|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|'
SUBST_SED.postfix+=	\
	-e 's|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|'
SUBST_SED.postfix+=	\
	-e 's|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|'
SUBST_SED.postfix+=	\
	-e 's|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|'
SUBST_SED.postfix+=	\
	-e 's|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|'
SUBST_SED.postfix+=	\
	-e 's|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|'
SUBST_SED.postfix+=	\
	-e 's|^\(setgid_group\) =.*|\1 = maildrop|'
SUBST_SED.postfix+=	\
	-e 's|^\(manpage_directory\) =.*|\1 = ${PREFIX}/${PKGMANDIR}|'
SUBST_SED.postfix+=	\
	-e 's|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|'
SUBST_SED.postfix+=	\
	-e 's|^\(readme_directory\) =.*|\1 = ${DOCDIR}|'
SUBST_SED.postfix+=	\
	-e '/^\#define DEF_SGID_GROUP[ 	]/s,postdrop,maildrop,g'

# options.mk appends to CCARGS and AUXLIBS the options needed to build
# Postfix with support for various add-on modules.
#
.include "options.mk"

PKG_SYSCONFSUBDIR=	postfix
LIBEXECDIR=		${PREFIX}/libexec/postfix
DOCDIR=			${PREFIX}/share/doc/postfix
EXAMPLEDIR=		${PREFIX}/share/examples/postfix

FILES_SUBST+=		EXAMPLEDIR=${EXAMPLEDIR}
MESSAGE_SUBST+=		EXAMPLEDIR=${EXAMPLEDIR}
MESSAGE_SUBST+=		DOCDIR=${DOCDIR}

MESSAGE_SRC+=		${PKGDIR}/MESSAGE
.if exists(${PKGDIR}/MESSAGE.${OPSYS})
MESSAGE_SRC+=		${PKGDIR}/MESSAGE.${OPSYS}
.endif
PLIST_SRC+=		${PKGDIR}/PLIST

BUILD_TARGET=		# empty
MAKE_ENV+=		CC=${CC:Q} OPT=${CFLAGS:Q}
MAKE_ENV+=		AUXLIBS=${AUXLIBS:Q} CCARGS=${CCARGS:Q}

RCD_SCRIPTS=		postfix
OWN_DIRS+=		${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc
OWN_DIRS_PERMS+=	${POSTFIX_DATA_DIR} postfix postfix 0700
MAKE_DIRS+=		${PKG_SYSCONFDIR}

PKG_GROUPS?=		postfix maildrop
PKG_USERS?=		postfix:postfix
PKG_GECOS.postfix=	Postfix User
PKG_HOME.postfix=	${POSTFIX_QUEUE_DIR}

CONF_FILES=		# empty
.for i in main.cf master.cf
CONF_FILES+=		${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i}
.endfor
CONF_FILES_PERMS=	# empty

MAKE_ENV+=		DEBUG= # empty

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	${WRKDIR}/mailer.conf
SUBST_SED.paths+=	-e 's,@@PREFIX@@,${PREFIX},g'
SUBST_STAGE.paths=	post-patch

.if !empty(USE_DESTDIR:M[Yy][Ee][Ss])
DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}"
.endif

INSTALLATION_DIRS+=	${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR}

post-extract:
	cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
	rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix

do-configure:
	cd ${WRKSRC} &&							\
	env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles		\
		'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}'

post-build:
.if !empty(PKG_OPTIONS:Msasl)
	${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf
.endif

do-install:
	rm -f ${WRKSRC}/conf/*.orig
.if !empty(PKG_OPTIONS:Msasl)
	${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR}
.endif
	cd ${WRKSRC} && sh ./postfix-install -non-interactive		\
		${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}"
	${INSTALL_DATA} ${WRKDIR}/mailer.conf \
		${DESTDIR}${EXAMPLEDIR}/mailer.conf
	${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \
		${DESTDIR}${PREFIX}/sbin/qshape
	${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"
@


1.115
log
@Reset maintainer.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.114 2010/06/16 18:36:48 gdt Exp $
@


1.115.4.1
log
@Pullup ticket #3385 - requested by taca
mail/postfix-current: security update

Revisions pulled up:
- mail/postfix-current/MESSAGE				patch
- mail/postfix-current/MESSAGE.sasl			patch
- mail/postfix-current/Makefile				patch
- mail/postfix-current/PLIST				patch
- mail/postfix-current/distinfo				patch
- mail/postfix-current/files/mailer.conf		patch
- mail/postfix-current/patches/patch-aa			patch
- mail/postfix-current/patches/patch-ag			patch
- mail/postfix-current/patches/patch-ai			patch
- mail/postfix-current/patches/patch-as			patch
- mail/postfix-current/patches/patch-at			deleted
- mail/postfix-current/patches/patch-au			deleted
- mail/postfix-current/patches/patch-av			deleted

---
Update "postfix-current" package to version 2.8.1:
  Postfix stable release 2.8.0 is available. This release continues the
  move towards improving code and documentation, and making the system
  better prepared for changes in the threat environment.

  The postscreen daemon (a zombie blocker in front of Postfix) is now
  included with the stable release. postscreen now supports TLS and can
  log the rejected sender, recipient and helo information. See the
  POSTSCREEN_README file for recommended usage scenarios.

  Support for DNS whitelisting (permit_rhswl_client), and for pattern
  matching to filter the responses from DNS white/blacklist servers
  (e.g., reject_rhsbl_client zen.spamhaus.org=127.0.0.[1..10]).

  Improved message tracking across SMTP-based content filters; the
  after-filter SMTP server can log the before-filter queue ID (the
  XCLIENT protocol was extended).

  Read-only support for sqlite databases. See sqlite_table(5) and
  SQLITE_README.

  Support for 'footers' that are appended to SMTP server "reject"
  responses. See "smtpd_reject_footer" in the postconf(5) manpage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.237 2011/02/26 08:58:59 tron Exp $
d3 2
a4 1
DISTNAME=	postfix-2.8.1
d6 5
a10 4
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/official/
MASTER_SITES+=	http://postfix.it-austria.net/releases/official/
MASTER_SITES+=	http://mirrors.isc.org/pub/postfix/official/
MASTER_SITES+=	http://mirror.postfix.jp/postfix-release/official/
d20 1
a20 1
CONFLICTS+=	esmtp>=1.2
@


1.114
log
@Change LICENSE to cpl-1.0.  This has only minor wording differences
from postfix-license, of the same level of importance as changing the
name of the copyright holder, rather than in the nature of the terms.
Everyone believes that postfix is Open Source, and this causes postfix
to fall under DEFAULT_ACCEPTABLE_LICENSES.

ok martti@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.113 2010/06/08 15:15:03 martti Exp $
d12 1
a12 1
MAINTAINER=	martti@@NetBSD.org
a14 1

@


1.113
log
@Updated mail/postfix-current to 2.8.20100603

* This is the latest development release
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.112 2010/03/12 13:19:49 obache Exp $
d15 4
a18 1
LICENSE=	postfix-license
@


1.112
log
@marked as CONFLICTS with esmtp>=1.2 (bin/mailq and/or bin/newaliases)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.111 2010/02/25 13:02:02 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.8-20100213
PKGNAME=	postfix-2.8.20100213
@


1.111
log
@Updated to the latest dev version.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.110 2009/12/13 08:55:57 martti Exp $
d18 1
a18 1
CONFLICTS+=	postfix-2.[6-7]-[0-9]*
@


1.110
log
@Updated to the latest development release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.109 2009/08/31 09:37:49 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.7-20091209
PKGNAME=	postfix-2.7.20091209
d18 1
a18 1
CONFLICTS+=	postfix-2.6-[0-9]*
a127 4
.for i in post-install postfix-script
CONF_FILES_PERMS+=	${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \
			${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
.endfor
a162 2
	${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${DESTDIR}${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${DESTDIR}${EXAMPLEDIR}
@


1.109
log
@Updated mail/postfix-current to 2.7.20090828

The stable release Postfix 2.6.5 addresses the defects described
below (some already addressed with the not-announced Postfix 2.6.3
release).  These defects are also addressed in the legacy releases
that are still maintained: Postfix 2.5.9, 2.4.13 and 2.3.19.

Do not use Postfix 2.6.4, 2.5.8, 2.4.12, 2.3.18, 2.7-20090807, and
2.7-20090807-nonprod.  These contain a DNS workaround that causes
more trouble than it prevents. It is removed until further notice.

Defects fixed with Postfix 2.6.3, 2.5.9, 2.4.13 and 2.3.19:

- The Postfix Milter client got out of step with a Milter application
  after the application sent a "quarantine" request at end-of-message
  time. The Milter application would still be in the end-of-message
  state, while Postfix would already be working on the next SMTP
  event, typically, QUIT or MAIL FROM. In the latter case, Milter
  responses for the previously-received email message would be
  applied towards the next MAIL FROM transaction.  This problem was
  diagnosed with help from Alban Deniz.

Defects fixed with Postfix 2.6.5, 2.5.9, 2.4.13 and 2.3.19:

- The Postfix SMTP server would abort with an "unexpected lookup
  table" error when an SMTPD policy server was mis-configured in a
  particular way.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.108 2009/08/09 21:17:49 heinz Exp $
d3 2
a4 2
DISTNAME=	postfix-2.7-20090828
PKGNAME=	postfix-2.7.20090828
@


1.108
log
@Enabled installation to DESTDIR. (OK by martti@@).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.107 2009/06/04 14:08:06 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.7-20090528
PKGNAME=	postfix-2.7.20090528
@


1.107
log
@Updated mail/postfix-current to 2.7.20090528

Postfix stable release 2.6.2 fixes one defect in SASL support.
This does not affect Postfix versions 2.5 and earlier.

With plaintext SMTP sessions AND smtpd_tls_auth_only=yes AND
smtp_sasl_auth_enable=yes, the SMTP server logged warnings for
reject_*_sender_login_mismatch, instead of enforcing them.

You can find Postfix version 2.6.2 at the mirrors listed at

Postfix stable release 2.6.2 fixes one defect in SASL support.
This does not affect Postfix versions 2.5 and earlier.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.106 2009/05/20 07:45:40 martti Exp $
d20 1
d130 1
a130 1
			${ROOT_USER} ${ROOT_GROUP} 755
d140 6
a160 3
	${INSTALL_DATA_DIR} ${LIBEXECDIR}
	${INSTALL_DATA_DIR} ${EXAMPLEDIR}
	${INSTALL_DATA_DIR} ${DOCDIR}
d163 1
a163 1
	${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${EXAMPLEDIR}
a164 3
	${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EXAMPLEDIR}/mailer.conf
d166 5
a170 1
		config_directory="${EXAMPLEDIR}"
d172 1
a172 1
		${PREFIX}/sbin/qshape
d174 1
a174 1
		${PREFIX}/${PKGMANDIR}/man1
@


1.106
log
@Updated mail/postfix-current to 2.7.20090519

20090513

	Code cleanups: better parsing of Postfix daemon "-o"
	command-line options, with better error handling.  Files:
	master/*server.c.

20090518

	Documentation: missing dummy entries for lmtp_mumble_checks.
	File: proto/postconf.proto.

20090519

	Bugfix (introduced: Postfix 2.3, but did not cause trouble
	until 20090427).  Queue file corruption with (smtpd_milters
	or non_smtpd_milters) enabled, AND with delay_warning_time
	enabled, AND with short envelope sender addresses (e.g.,
	local submissions with bare usernames, but not bounces).
	The queue file would be corrupted when the delay_warning_time
	record was marked as "done" after sending the "your mail
	is delayed" notice.  File: qmgr/qmgr_message.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.105 2009/05/13 10:34:06 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.7-20090519
PKGNAME=	postfix-2.7.20090519
@


1.105
log
@Updated mail/postfix-current to 2.7.20090511

This same as 2.6.0...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.104 2009/05/12 12:27:19 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.7-20090511
PKGNAME=	postfix-2.7.20090511
d27 3
@


1.104
log
@Activated LICENSE=...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.103 2009/01/05 10:25:39 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20081205
PKGNAME=	postfix-2.6.20081205
@


1.103
log
@Updated mail/postfix-current to 20081205

This is the latest development snapshot.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.102 2008/10/16 09:45:12 martti Exp $
d15 1
a15 1
#LICENSE=	postfix-license
@


1.102
log
@Updated mail/postfix-current to 2.6.20081012

* Bug fixes.
* Added support for SQLite (pkg/39745)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.101 2008/09/04 08:25:31 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20081012
PKGNAME=	postfix-2.6.20081012
@


1.101
log
@Updated mail/postfix-current to 2.6.20080903

Postfix 2.4 and later, on Linux kernel 2.6, is vulnerable to a
denial of service attack by a local user. There is no breach of
data confidentiality or data integrity. This problem was found by
the Postfix author during routine source code maintenance.

An on-line version of this announcement is available at
http://www.postfix.org/announcements/20080902.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.100 2008/08/22 20:29:55 ghen Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080903
PKGNAME=	postfix-2.6.20080903
@


1.100
log
@Add some (http) mirrors.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.99 2008/08/18 07:19:13 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080814
PKGNAME=	postfix-2.6.20080814
@


1.99
log
@Updated mail/postfix-current to 2.6.20080814

20080804

        Bugfix: dangling pointer in vstring_sprintf_prepend().
        File: util/vstring.c.

20080814

        Security: some systems have changed their link() semantics,
        and will hardlink a symlink, contrary to POSIX and XPG4.
        Sebastian Krahmer, SuSE. File: util/safe_open.c.

        The solution introduces the following incompatible change:
        when the target of mail delivery is a symlink, the parent
        directory of that symlink must now be writable by root only
        (in addition to the already existing requirement that the
        symlink itself is owned by root).  This change will break
        legitimate configurations that deliver mail to a symbolic
        link in a directory with less restrictive permissions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.98 2008/08/13 07:34:43 martti Exp $
d7 3
@


1.98
log
@Updated mail/postfix-current to 2.6.20080726

* Lots of bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97 2008/03/17 07:11:42 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080726
PKGNAME=	postfix-2.6.20080726
@


1.97
log
@Updated postfix-current to 2.6.20080221

* Bug fixes
* Create /var/db/postfix like in pkgsrc/mail/postfix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.96 2008/03/10 10:33:38 wiz Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080221
PKGNAME=	postfix-2.6.20080221
d92 1
a92 1
FILES_SUBST+=		EXAMPLEDIR=${EXAMPLEDIR:Q}
@


1.97.6.1
log
@pullup ticket #2496 - requested by martti
postfix-current: update package for fixes

revisions pulled up:
pkgsrc/mail/postfix-current/Makefile	1.98
pkgsrc/mail/postfix-current/distinfo	1.44

   Module Name:    pkgsrc
   Committed By:   martti
   Date:           Wed Aug 13 07:34:44 UTC 2008

   Modified Files:
           pkgsrc/mail/postfix-current: Makefile distinfo

   Log Message:
   Updated mail/postfix-current to 2.6.20080726

   * Lots of bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97 2008/03/17 07:11:42 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080726
PKGNAME=	postfix-2.6.20080726
d92 1
a92 1
FILES_SUBST+=		EXAMPLEDIR=${EXAMPLEDIR}
@


1.97.6.2
log
@pullup ticket #2496 - requested by martti
postfix-current: update package for fixes

revisions pulled up:
pkgsrc/mail/postfix-current/Makefile	1.99
pkgsrc/mail/postfix-current/distinfo	1.45

   Module Name:    pkgsrc
   Committed By:   martti
   Date:           Mon Aug 18 07:19:13 UTC 2008

   Modified Files:
           pkgsrc/mail/postfix-current: Makefile distinfo

   Log Message:
   Updated mail/postfix-current to 2.6.20080814

   20080804

           Bugfix: dangling pointer in vstring_sprintf_prepend().
           File: util/vstring.c.

   20080814

           Security: some systems have changed their link() semantics,
           and will hardlink a symlink, contrary to POSIX and XPG4.
           Sebastian Krahmer, SuSE. File: util/safe_open.c.

           The solution introduces the following incompatible change:
           when the target of mail delivery is a symlink, the parent
           directory of that symlink must now be writable by root only
           (in addition to the already existing requirement that the
           symlink itself is owned by root).  This change will break
           legitimate configurations that deliver mail to a symbolic
           link in a directory with less restrictive permissions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97.6.1 2008/08/18 09:57:49 rtr Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080814
PKGNAME=	postfix-2.6.20080814
@


1.97.6.3
log
@Pullup ticket 2518 - requested by martti
security update for postfix

- pkgsrc/mail/postfix/Makefile				1.219, 1.220
- pkgsrc/mail/postfix/distinfo				1.119
- pkgsrc/mail/postfix/patches/patch-aa			1.21
- pkgsrc/mail/postfix/patches/patch-ag			1.25
- pkgsrc/mail/postfix/patches/patch-ai			1.22

- pkgsrc/mail/postfix-current/Makefile			1.100, 1.101
- pkgsrc/mail/postfix-current/distinfo			1.46
- pkgsrc/mail/postfix-current/patches/patch-aa		1.19
- pkgsrc/mail/postfix-current/patches/patch-ag		1.17
- pkgsrc/mail/postfix-current/patches/patch-ai		1.20

   Module Name:    pkgsrc
   Committed By:   ghen
   Date:           Fri Aug 22 20:29:55 UTC 2008

   Modified Files:
            pkgsrc/mail/postfix: Makefile
            pkgsrc/mail/postfix-current: Makefile

   Log Message:
   Add some (http) mirrors.
---
   Module Name:	pkgsrc
   Committed By:	martti
   Date:		Thu Sep  4 08:25:20 UTC 2008

   Modified Files:
	   pkgsrc/mail/postfix: Makefile distinfo
	   pkgsrc/mail/postfix/patches: patch-aa patch-ag patch-ai

   Log Message:
   Updated mail/postfix to 2.5.5

   Postfix 2.4 and later, on Linux kernel 2.6, is vulnerable to a
   denial of service attack by a local user. There is no breach of
   data confidentiality or data integrity. This problem was found by
   the Postfix author during routine source code maintenance.

   An on-line version of this announcement is available at
   http://www.postfix.org/announcements/20080902.html
---
   Module Name:	pkgsrc
   Committed By:	martti
   Date:		Thu Sep  4 08:25:31 UTC 2008

   Modified Files:
	   pkgsrc/mail/postfix-current: Makefile distinfo
	   pkgsrc/mail/postfix-current/patches: patch-aa patch-ag patch-ai

   Log Message:
   Updated mail/postfix-current to 2.6.20080903

   Postfix 2.4 and later, on Linux kernel 2.6, is vulnerable to a
   denial of service attack by a local user. There is no breach of
   data confidentiality or data integrity. This problem was found by
   the Postfix author during routine source code maintenance.

   An on-line version of this announcement is available at
   http://www.postfix.org/announcements/20080902.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97.6.2 2008/08/18 12:18:46 rtr Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080903
PKGNAME=	postfix-2.6.20080903
a6 3
MASTER_SITES+=	http://postfix.it-austria.net/releases/experimental/
MASTER_SITES+=	http://mirrors.isc.org/pub/postfix/experimental/
MASTER_SITES+=	http://mirror.postfix.jp/postfix-release/experimental/
@


1.96
log
@Add CONFLICTS line for previous PKGNAME versions.
Suggested by Alan Barrett.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.95 2008/03/06 10:44:46 wiz Exp $
d3 2
a4 2
DISTNAME=	postfix-2.6-20080216
PKGNAME=	postfix-2.6.20080216
d28 1
d30 1
a30 1
BUILD_DEFS+=		VARBASE POSTFIX_QUEUE_DIR
a36 1
FIX_RPATH+=	AUXLIBS
d39 1
d58 2
d108 1
@


1.95
log
@Fix PKGNAME.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.94 2008/02/18 17:46:22 ghen Exp $
d15 1
@


1.94
log
@Now that ../mail/postfix is updated to 2.5.1, update postfix-current to track
the experimental releases again (now for postfix 2.6).  Ok with martti.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.93 2008/01/25 09:42:54 ghen Exp $
d4 1
@


1.93
log
@Move SASL conditionals to options.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.92 2008/01/25 09:41:28 ghen Exp $
d3 1
a3 1
DISTNAME=	postfix-2.5.0
d5 1
a5 1
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/official/
d111 1
a111 1
.for i in main.cf master.cf postfix-files
@


1.92
log
@Update mail/postfix-current to 2.5.0 release (this can later be merged into
mail/postfix by maintainer).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.91 2008/01/18 05:08:29 tnn Exp $
a118 4
.if !empty(PKG_OPTIONS:Msasl)
MAKE_DIRS+=		${SASLLIBDIR}
CONF_FILES+=		${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
.endif
@


1.91
log
@Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.90 2008/01/17 14:03:05 martti Exp $
d3 1
a3 3
DISTNAME=	postfix-2.5.0-RC2
PKGNAME=	postfix-2.5.0rc2
PKGREVISION=	1
d119 1
a119 1
.if !empty(PKG_OPTIONS:Msasl) || !empty(PKG_OPTIONS:Mdovecot-sasl)
@


1.90
log
@Updated mail/postfix-current to 2.5.0rc2

* Bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.89 2008/01/16 17:39:01 ghen Exp $
d5 1
a5 1
#PKGREVISION=	1
@


1.89
log
@Update mail/postfix-current to 2.5.0-RC1, the first release candidate for the
next stable release (expected by the end of January).  Experimental releases
are now labeled 2.6-* but we'll track the 2.5.0 release candidates for now and
switch to 2.6 snapshots later.

Lots of changes, see HISTORY/RELEASES_NOTES for details.

Ok with martti.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.88 2008/01/16 14:21:44 ghen Exp $
d3 2
a4 2
DISTNAME=	postfix-2.5.0-RC1
PKGNAME=	postfix-2.5.0rc1
@


1.88
log
@Drop the "dovecot-sasl" option and instead enable dovecot SASL support by
default (this doesn't actually depend on Dovecot for building, the code is
shipped with Postfix).
Set the default value for smtpd_sasl_type to "dovecot" unless cyrus SASL is
enabled, too.  This ensures backwards compatibility for most cases.

Ok with martti, joerg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.87 2007/10/30 19:31:40 martti Exp $
d3 2
a4 1
DISTNAME=	postfix-2.5-20071006
d7 1
a7 1
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/
@


1.87
log
@Based on some feedback, comment out the newly added LICENSE=xxx for now.
I'll re-activate this later when the global license stuff is activated.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.86 2007/10/30 13:27:32 martti Exp $
d33 1
a33 1
CCARGS=		# empty
@


1.86
log
@Added LICENSE=postfix-license
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.85 2007/10/22 06:15:56 martti Exp $
d12 1
a12 1
LICENSE=	postfix-license
@


1.85
log
@Updated mail/postfix-current to 2.5-20071006

Lost of fixes, see HISTORY for details...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.84 2007/09/23 11:43:42 jlam Exp $
d12 1
@


1.84
log
@Honor PKGMANDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.83 2007/08/13 07:06:13 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.5-20070731
@


1.83
log
@Updated mail/postfix-current to 2.5-20070731

Lots of changes, see the ChangeLog for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.82 2007/05/30 07:58:29 martti Exp $
d44 1
a44 1
CCARGS+=	-DDEF_MANPAGE_DIR=\"${PREFIX}/man\"
d69 1
a69 1
	-e 's|^\(manpage_directory\) =.*|\1 = ${PREFIX}/man|'
@


1.82
log
@Updated mail/postfix-current to 2.5-20070529

Lots of changes, see the HISTORY file for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.81 2007/05/02 05:10:15 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.5-20070529
@


1.81
log
@Updated mail/postfix-current to 2.5-20070501

Lots of changes, see the HISTORY file for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.80 2007/04/03 07:35:46 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.5-20070501
d160 2
@


1.80
log
@Updated mail/postfix-current to 2.5-20070402

This is a new development snapshot. Sync with Makefile with mail/postfix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.79 2007/04/03 07:18:59 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.5-20070402
@


1.79
log
@Some pkglint fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.78 2007/02/15 06:38:13 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.4-20070214
d119 1
a119 1
.if !empty(PKG_OPTIONS:Msasl)
@


1.78
log
@Updated mail/postfix-current to 2.4-20070214

New development snapshot, lots of changes, see the HISTORY file
for details...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.77 2006/12/13 06:23:06 martti Exp $
d156 1
a156 1
	cd ${WRKSRC}; sh ./postfix-install -non-interactive		\
@


1.77
log
@Updated mail/postfix-current to 2.4-20061210

Too many changes to list here, see the HISTORY file for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.76 2006/11/10 08:10:23 rillig Exp $
d3 1
a3 1
DISTNAME=	postfix-2.4-20061210
@


1.76
log
@Added CHECK_HEADERS_SKIP to make the package pass the test.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.75 2006/11/07 07:08:51 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.4-20061019
d9 1
a9 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
d18 1
a18 1
CHECK_HEADERS_SKIP=	src/global/mail_params.h
d27 1
a27 1
BUILD_DEFS+=		VARBASE
@


1.75
log
@Updated mail/postfix-current to 2.4-20061019

20061017

	Cleanup: removed spurious warning when the cleanup server
	attempts to bounce mail with soft_bounce=yes. Problem
	reported by Ralf Hildebrandt. File: cleanup/cleanup_bounce.c.

	Bugfix: null pointer bug when receiving a non-protocol
	response on a cached SMTP/LMTP connection.  Report by Brian
	Kantor.  Fix by Victor Duchovni.  File: smtp/smtp_reuse.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.74 2006/10/19 06:37:04 martti Exp $
d18 1
@


1.74
log
@More pkglint -Wall fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.73 2006/10/18 09:26:53 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.4-20061015
@


1.73
log
@Remove patch-ab and "rm -f auxiliary/MacOSX/Postfix.StartupItem/Postfix"
in post-extract.

I exchanges few mails with Wietse and he refused to fix the "==" lines and
instructed me to simply remove the offending file. Instead of having a patch
for a file which is not used by pkgsrc I think it makes sense to remove it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.72 2006/10/16 11:03:07 martti Exp $
d54 1
a54 1
	-e "s|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|"
d56 1
a56 1
	-e "s|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|"
d58 1
a58 1
	-e "s|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|"
d60 1
a60 1
	-e "s|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|"
d62 1
a62 1
	-e "s|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|"
d64 1
a64 1
	-e "s|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|"
d66 1
a66 1
	-e "s|^\(setgid_group\) =.*|\1 = maildrop|"
d68 1
a68 1
	-e "s|^\(manpage_directory\) =.*|\1 = ${PREFIX}/man|"
d70 1
a70 1
	-e "s|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|"
d72 1
a72 1
	-e "s|^\(readme_directory\) =.*|\1 = ${DOCDIR}|"
d74 1
a74 1
	-e "/^\#define DEF_SGID_GROUP[ 	]/s,postdrop,maildrop,g"
@


1.72
log
@Substitute _file_ with i to make pkglint happy.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.71 2006/10/16 10:58:24 martti Exp $
d132 1
@


1.71
log
@Split SUBST_SED.postfix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.70 2006/10/16 10:43:33 martti Exp $
d110 2
a111 2
.for _file_ in main.cf master.cf postfix-files
CONF_FILES+=		${EXAMPLEDIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_}
d114 2
a115 2
.for _file_ in post-install postfix-script
CONF_FILES_PERMS+=	${EXAMPLEDIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_} \
@


1.70
log
@Fixed few pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.69 2006/10/16 10:04:01 martti Exp $
d54 20
a73 10
	-e "s|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|"	\
	-e "s|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|"		\
	-e "s|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|"		\
	-e "s|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|"	\
	-e "s|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|"	\
	-e "s|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|"		\
	-e "s|^\(setgid_group\) =.*|\1 = maildrop|"			\
	-e "s|^\(manpage_directory\) =.*|\1 = ${PREFIX}/man|"		\
	-e "s|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|"		\
	-e "s|^\(readme_directory\) =.*|\1 = ${DOCDIR}|"		\
@


1.69
log
@Fixed few pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.68 2006/10/16 09:54:49 martti Exp $
d121 1
a121 1
	${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
d125 1
a125 1
	${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles	\
d137 1
a137 1
	${RM} -f ${WRKSRC}/conf/*.orig
d144 1
a144 1
	cd ${WRKSRC}; ${SH} ./postfix-install -non-interactive		\
@


1.68
log
@Fixed few pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.67 2006/10/16 09:48:00 martti Exp $
d26 1
@


1.67
log
@Updated mail/postfix-current to 2.4-20061015

* lots of bugfixes and cleanups
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.66 2006/08/31 18:45:02 martti Exp $
d7 1
a12 2
DIST_SUBDIR=	postfix

d86 1
a86 1
MAKE_ENV+=		CC=${CC:Q} OPT=${CFLAGS:M*:Q}
d136 1
a136 1
	-${RM} -f ${WRKSRC}/conf/*.orig
@


1.66
log
@Updated mail/postfix-current to 2.4-20060825

Lots of bug fixes, see HISTORY for details...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.65 2006/08/11 12:34:54 taca Exp $
d3 1
a3 1
DISTNAME=	postfix-2.4-20060825
d6 1
a6 2
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
		http://public.planetmirror.com.au/pub/postfix/experimental/
@


1.65
log
@Accept NetBSD 4.* as NETBSD4 to compile on NetBSD current.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.64 2006/07/13 09:57:53 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.4-20060711
PKGREVISION=	1
@


1.64
log
@Updated mail/postfix-current to 2.4-20060711

This is the first development version after 2.3.0 release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.63 2006/05/01 02:57:03 jlam Exp $
d4 1
a4 1
#PKGREVISION=	1
@


1.63
log
@Conflict with courier-mta.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2006/04/23 00:12:38 jlam Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20060405
@


1.62
log
@Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2006/04/07 09:26:43 martti Exp $
d15 1
a15 1
CONFLICTS+=	sendmail-[0-9]* fastforward>=0.51nb2
@


1.61
log
@Updated mail/postfix-current to 2.3-20060405

* lots of bug fixes and cleanups
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2006/03/10 08:34:34 martti Exp $
d96 3
a98 1
PKG_USERS?=		postfix:postfix::Postfix\ User:${POSTFIX_QUEUE_DIR}
@


1.60
log
@Updated mail/postfix-current to 2.3-20060307

20060217

        Bugfix: don't terminate with a non-standard exit status
        when the pipe-to-command feature has a problem before it
        executes the command. File: global/pipe_command.c.

20060223

        Bugfix: detect integer overflow when multiplying time values
        with non-trivial time units. File: global/conv_time.c.

20060307

        Bugfix: reset the msg_cleanup() fatal error handler in child
        processes. See also change 20060217. Files: postlock/postlock.c,
        master/multi_server.c, global/mail_run.c, util/vstream_popen.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2006/03/04 21:30:02 jlam Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20060307
@


1.59
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2006/02/27 13:30:32 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20060207
@


1.58
log
@Updated mail/postfix-current to 2.3-20060207

* bug fixes
* install PREFIX/sbin/qshape
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2006/02/05 12:55:32 martti Exp $
d9 1
a9 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.57
log
@Updated mail/postfix-current to 2.3-20060202

Postfix now preserves uppercase information while mapping addresses
with canonical, virtual, relocated or generic maps; this happens
even with $number substitutions in regular expression maps. However,
the local(8) and virtual(8) delivery agents still fold addresses
to lower case.

By default, Postfix now folds the search string to lowercase only
with tables that have fixed-case lookup fields such as btree:,
hash:, dbm:, ldap:, or *sql:. The search string is no longer case
folded with tables whose lookup fields can match both upper or lower
case, such as regexp:, pcre:, or cidr:.

For safety reasons, Postfix no longer allows $number substitution
in regexp: or pcre: transport tables or per-sender relayhost tables.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2006/01/10 20:21:32 joerg Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20060202
d48 2
d145 2
@


1.56
log
@Use SUBST framework for mailer.conf as well.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2006/01/10 06:39:00 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20060103
@


1.55
log
@Updated postfix-current to 2.3-20060103

Postfix snapshot 20051220 provides a plug-in architecture for SASL
authentication. With this, Postfix can support multiple SASL
implementations without source code patches.

Incompatibility with snapshot 20051220
======================================

The Postfix-with-Cyrus-SASL build procedure has changed. You now
need to specify -DUSE_CYRUS_SASL in addition to -DUSE_SASL_AUTH or
else you end up without any Cyrus SASL support. The error messages
are:

    unsupported SASL server implementation: cyrus
    unsupported SASL client implementation: cyrus

Major changes with snapshot 20051220
====================================

Plug-in support for SASL authentication in the SMTP server and in
the SMTP+LMTP client. With this, Postfix can support multiple SASL
implementations without source code patches.  Some distributors may
even make SASL support a run-time linking option, just like they
do with Postfix lookup tables.

Hints and tips for plug-in developers are in the xsasl/README file.

For backwards compatibility the default plug-in type is Cyrus SASL,
so everything should behave like it did before. Some error messages
are slightly different, but these are generally improvements.

The "postconf -a" command shows what plug-in implementations are
available for the SMTP server, and "postconf -A" does the same for
the SMTP+LMTP client.  Plug-in implementations are selected with
the smtpd_sasl_type, smtp_sasl_type and lmtp_sasl_type configuration
parameters.

Other new configuration parameters are smtpd_sasl_path, smtp_sasl_path
and lmtp_sasl_path. These are better left alone; they are introduced
for the convenience of other SASL implementations.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2006/01/08 18:35:10 xtraeme Exp $
d112 8
a125 2
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf		\
		> ${WRKDIR}/mailer.conf
@


1.54
log
@Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2005/12/31 15:16:18 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.3-20051128
PKGREVISION=	2
@


1.53
log
@Add ${POSTFIX_QUEUE_DIR}/etc to OWN_DIRS. Suggested by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2005/12/30 06:29:41 martti Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.52
log
@Make sure ${spooletcdir} exists. Bump PKGREVISION as this affects
the binary package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2005/12/29 06:21:52 jlam Exp $
d90 1
a90 1
OWN_DIRS+=		${POSTFIX_QUEUE_DIR}
@


1.51
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2005/12/05 20:50:34 rillig Exp $
d4 1
a4 1
#PKGREVISION=	1
@


1.50
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2005/12/04 06:30:37 martti Exp $
a88 1
USE_PKGINSTALL=		yes
@


1.50.2.1
log
@Pullup ticket 982 - requested by Martti Kuparinen
improve rc script usability of mail/postfix and mail/postfix-current

Revisions pulled up:
- pkgsrc/mail/postfix/Makefile                                1.172
- pkgsrc/mail/postfix-current/Makefile                        1.52
- pkgsrc/mail/postfix-current/files/postfix.sh                1.4
- pkgsrc/mail/postfix/files/postfix.sh                        1.5

   Module Name:	pkgsrc
   Committed By:	martti
   Date:		Fri Dec 30 06:29:41 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix: Makefile
   	pkgsrc/mail/postfix-current: Makefile
   	pkgsrc/mail/postfix-current/files: postfix.sh
   	pkgsrc/mail/postfix/files: postfix.sh

   Log Message:
   Make sure ${spooletcdir} exists. Bump PKGREVISION as this affects
   the binary package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2005/12/05 20:50:34 rillig Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.50.2.2
log
@Pullup ticket 992 - requested by Martti Kuparinen
run-time directory handling fix for mail/{postfix,postfix-current}

Revisions pulled up:
- pkgsrc/mail/postfix/Makefile                                1.173
- pkgsrc/mail/postfix-current/Makefile                        1.53

   Module Name:	pkgsrc
   Committed By:	martti
   Date:		Sat Dec 31 15:16:18 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix: Makefile
   	pkgsrc/mail/postfix-current: Makefile

   Log Message:
   Add ${POSTFIX_QUEUE_DIR}/etc to OWN_DIRS. Suggested by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50.2.1 2005/12/30 13:58:14 seb Exp $
d91 1
a91 1
OWN_DIRS+=		${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc
@


1.50.2.3
log
@Pullup ticket 1012 - requested by Martti Kuparinen
postfix packages bugfix update

Revisions pulled up:
- pkgsrc/mail/postfix/Makefile			1.175
- pkgsrc/mail/postfix/distinfo			1.95
- pkgsrc/mail/postfix/patches/patch-ai		1.15
- pkgsrc/mail/postfix-current/Makefile		1.55
- pkgsrc/mail/postfix-current/distinfo		1.20
- pkgsrc/mail/postfix-current/options.mk	1.12

   Module Name:		pkgsrc
   Committed By:	martti
   Date:		Tue Jan 10 06:38:15 UTC 2006

   Modified Files:
   	pkgsrc/mail/postfix: Makefile distinfo
   	pkgsrc/mail/postfix/patches: patch-ai

   Log Message:
   Updated postfix to 2.2.8

   Postfix 2.2.8 backs out a workaround for broken servers/firewalls
   that created more problems than it solved.

   - The Postfix 2.2.6 paranoia about malformed remote server replies
      caused "multiple delivery" problems or "no delivery" problems with
      broken servers/firewalls. Postfix still logs a warning but no longer
      defers delivery.
---
   Module Name:		pkgsrc
   Committed By:	martti
   Date:		Tue Jan 10 06:39:00 UTC 2006

   Modified Files:
   	pkgsrc/mail/postfix-current: Makefile distinfo options.mk

   Log Message:
   Updated postfix-current to 2.3-20060103
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2006/01/10 06:39:00 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.3-20060103
#PKGREVISION=	1
@


1.49
log
@Use "USE_TOOLS+=perl" instead of "BUILD_DEPENDS+=perl>=5.8.0:../../lang/perl5".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2005/12/03 19:29:37 martti Exp $
d75 1
a75 1
FILES_SUBST+=		EXAMPLEDIR=${EXAMPLEDIR}
d86 2
a87 2
MAKE_ENV=		CC="${CC}" OPT="${CFLAGS}"
MAKE_ENV+=		AUXLIBS="${AUXLIBS}" CCARGS="${CCARGS}"
a105 1
.undef _file_
@


1.48
log
@Depend on perl during build time. Hopefully this fixes the problems
detected in bulk build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2005/11/30 14:02:47 martti Exp $
d19 1
a19 1
BUILD_DEPENDS+=	perl>=5.8.0:../../lang/perl5
@


1.47
log
@Updated postfix to 2.3-20051128

- Configurable text for (non)delivery status notifications.

- Support for multiple ISP accounts, implemented with sender-dependent
  relayhosts and with sender-dependent SASL passwords.

- Enhanced status codes per RFC 2034. This enables much improved
  error reporting with mail client programs, possibly in the user's
  own language.

- Complete support for (non)delivery status notifications (DSN)
  per RFC 346[1-4].  This also enables improved error reporting.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2005/11/16 06:53:14 martti Exp $
d19 2
@


1.46
log
@Removed patch-ac as it was no longer needed (and in fact should not
be used) according to Wietse Venema.

PKGREVISION++
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2005/09/30 06:04:32 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.3-20050922
PKGREVISION=	1
@


1.45
log
@Updated postfix-current to 2.3-20050922

* lots of bug fixes and new features (see RELEASE_NOTES for details)
* sync PLIST.*, MESSAGE.*, Makefile and options.mk with pkgsrc/mail/postfix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2005/08/23 11:48:49 rillig Exp $
d4 1
@


1.44
log
@The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2005/08/14 21:51:02 christos Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20050726
a6 1
DIST_SUBDIR=	postfix
d12 2
d109 2
a122 4
POSTFIX_EXAMPLE_FILES=	LICENSE access aliases canonical header_checks	\
			main.cf main.cf.default makedefs.out master.cf	\
			postfix-files relocated transport virtual

a130 3
	@@for i in ${POSTFIX_EXAMPLE_FILES}; do				\
		${INSTALL_DATA} ${WRKSRC}/conf/$$i ${EXAMPLEDIR}/$$i;	\
	done
@


1.44.2.1
log
@Pullup ticket 801 - requested by Martti Kuparinen
postfix-current update and PLIST fix

Revisions pulled up:
- pkgsrc/mail/postfix-current/MESSAGE.sasl		1.3
- pkgsrc/mail/postfix-current/MESSAGE.tls		removed
- pkgsrc/mail/postfix-current/Makefile			1.45
- pkgsrc/mail/postfix-current/PLIST			1.7, 1.8
- pkgsrc/mail/postfix-current/PLIST.inet6		removed
- pkgsrc/mail/postfix-current/PLIST.sasl		removed
- pkgsrc/mail/postfix-current/PLIST.tls			removed
- pkgsrc/mail/postfix-current/distinfo			1.14
- pkgsrc/mail/postfix-current/options.mk		1.11
- pkgsrc/mail/postfix-current/patches/patch-aa		1.15
- pkgsrc/mail/postfix-current/patches/patch-ab		1.8
- pkgsrc/mail/postfix-current/patches/patch-ac		1.6
- pkgsrc/mail/postfix-current/patches/patch-ag		1.9
- pkgsrc/mail/postfix-current/patches/patch-ai		1.10

   Module Name:		pkgsrc
   Committed By:	martti
   Date:		Fri Sep 30 05:42:38 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix-current: PLIST
   Removed Files:
   	pkgsrc/mail/postfix-current: PLIST.tls

   Log Message:
   Fix PLIST issues noted in bulkbuilds
---
   Module Name:		pkgsrc
   Committed By:	martti
   Date:		Fri Sep 30 06:04:32 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix-current: MESSAGE.sasl Makefile PLIST distinfo
   	    options.mk
   	pkgsrc/mail/postfix-current/patches: patch-aa patch-ag patch-ai
   Added Files:
   	pkgsrc/mail/postfix-current/patches: patch-ab patch-ac
   Removed Files:
   	pkgsrc/mail/postfix-current: MESSAGE.tls PLIST.inet6 PLIST.sasl

   Log Message:
   Updated postfix-current to 2.3-20050922

   * lots of bug fixes and new features (see RELEASE_NOTES for details)
   * sync PLIST.*, MESSAGE.*, Makefile and options.mk with pkgsrc/mail/postfix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2005/09/30 06:04:32 martti Exp $
d3 1
a3 1
DISTNAME=	postfix-2.3-20050922
d7 1
a12 2
DIST_SUBDIR=	postfix

a107 2
MAKE_ENV+=		DEBUG= # empty

d120 4
d132 3
@


1.44.2.2
log
@Pullup ticket 911 - requested by Martti Kuparinen
postfix bugfix

Revisions pulled up:
- pkgsrc/mail/postfix/Makefile				1.168
- pkgsrc/mail/postfix/distinfo				1.93
- pkgsrc/mail/postfix/patches/patch-ac			removed
- pkgsrc/mail/postfix-current/Makefile			1.46
- pkgsrc/mail/postfix-current/distinfo			1.18
- pkgsrc/mail/postfix-current/patches/patch-ac		removed

   Module Name:		pkgsrc
   Committed By:	martti
   Date:		Wed Nov 16 06:53:14 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix: Makefile distinfo
   	pkgsrc/mail/postfix-current: Makefile distinfo
   Removed Files:
   	pkgsrc/mail/postfix-current/patches: patch-ac
   	pkgsrc/mail/postfix/patches: patch-ac

   Log Message:
   Removed patch-ac as it was no longer needed (and in fact should not
   be used) according to Wietse Venema.

   PKGREVISION++
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2005/11/16 06:53:14 martti Exp $
a3 1
PKGREVISION=	1
@


1.43
log
@Update to postfix-2.3-20050726
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2005/07/31 03:58:45 grant Exp $
d91 1
a91 1
PKG_USERS?=		postfix:postfix::Postfix\\ User:${POSTFIX_QUEUE_DIR}
@


1.42
log
@use ${LDFLAGS} in AUXLIBS so chosen libraries for various options can
be found at runtime.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2005/04/11 21:46:22 tv Exp $
d3 1
a3 2
DISTNAME=	postfix-2.2-20040628
PKGREVISION=	1
@


1.41
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2004/12/28 02:47:45 reed Exp $
d30 1
a30 1
AUXLIBS=	# empty
@


1.41.2.1
log
@Pullup ticket 639 - requested by Grant Beattie
portability fix for postfix-current

Revisions pulled up:
- pkgsrc/mail/postfix-current/Makefile		1.42

   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sun Jul 31 03:58:45 UTC 2005

   Modified Files:
   	pkgsrc/mail/postfix-current: Makefile

   Log Message:
   use ${LDFLAGS} in AUXLIBS so chosen libraries for various options can
   be found at runtime.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2005/07/31 03:58:45 grant Exp $
d30 1
a30 1
AUXLIBS=	${LDFLAGS}
@


1.40
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2004/12/03 15:15:02 wiz Exp $
a16 1
USE_BUILDLINK3=		yes
@


1.39
log
@Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2004/08/07 08:11:25 jlam Exp $
d4 1
@


1.38
log
@Mirror changes to mail/postfix:

Reduce the number of patches needed by Postfix by using the subst
framework and also by explicitly specifying more default values for
Postfix parameters.  Also pass -I/usr/pkg/include/sasl to the compiler
when building using Cyrus SASLv2, which allows me to remove the patches
that added an unnecessary USE_SASL2_AUTH check.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2004/08/05 03:04:33 jlam Exp $
d82 1
a82 1
ALL_TARGET=		# empty
@


1.37
log
@Rename Makefile.options to options.mk in the packages that I maintain.
This follows the example of the mail/dovecot package, as suggested by
<schmonz>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2004/07/31 05:53:44 jlam Exp $
d33 1
a33 1
CCARGS+=	-DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\"
d35 1
d37 1
a37 1
CCARGS+=	-DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
d41 20
a108 10
POSTFIX_CONF_FILES=	conf/main.cf src/util/sys_defs.h		\
			src/global/mail_params.h postfix-install

pre-configure:
	@@for i in ${POSTFIX_CONF_FILES}; do				\
		${CP} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.dist;		\
		${SED} ${FILES_SUBST_SED} ${WRKSRC}/$${i}.dist		\
			> ${WRKSRC}/$${i};				\
	done

@


1.36
log
@Minimize diffs with pkgsrc/mail/postfix to simplify maintenance of this
package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2004/07/24 22:45:15 recht Exp $
d41 2
a42 2
# Makefile.options appends to CCARGS and AUXLIBS the options needed to
# build Postfix with support for various add-on modules.
d44 1
a44 1
.include "Makefile.options"
@


1.35
log
@Use the new mk/pgsql.buildlink3.mk to select the correct PostgreSQL
version.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2004/07/21 23:30:16 schmonz Exp $
d7 1
a14 2
DIST_SUBDIR=	postfix

d16 1
d18 1
a18 2
USE_BUILDLINK3=	yes
USE_PKGINSTALL=	yes
d20 12
a31 4
PKG_SYSCONFSUBDIR=	postfix
POSTFIX_SPOOL=		/var/spool/postfix

OWN_DIRS=	${POSTFIX_SPOOL}
d34 3
a39 2
CCARGS+=	-DDEF_COMMAND_DIR=\"${PREFIX}/sbin\"
CCARGS+=	-DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
d41 4
a44 1
.include "../../mk/bsd.prefs.mk"
d46 8
a53 5
# NetBSD 1.5 and above has /etc/rc.d/postfix already which is
# suitable.
.if empty(MACHINE_PLATFORM:MNetBSD-1.[5-9]*-*)
RCD_SCRIPTS=	postfix
.endif
d55 3
a57 34
FIX_RPATH+=	AUXLIBS

BUILD_DEFS+=	POSTFIX_USE_INET6
BUILD_DEFS+=	POSTFIX_USE_TLS
BUILD_DEFS+=	POSTFIX_USE_PCRE
BUILD_DEFS+=	POSTFIX_USE_MYSQL
BUILD_DEFS+=	POSTFIX_USE_PGSQL
BUILD_DEFS+=	USE_OPENLDAP
BUILD_DEFS+=	USE_SASL
BUILD_DEFS+=	USE_SASL2

# .if defined(POSTFIX_USE_INET6) && ${POSTFIX_USE_INET6} == "YES"
# .  include "../../security/openssl/buildlink3.mk"
# PATCHFILES+=		tls+ipv6-1.25-pf-2.2-20040616.patch.gz
# PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.25/
# PATCH_DIST_STRIP=	-p1
# 
# CCARGS+=	-DHAS_SSL
# AUXLIBS+=	-L${BUILDLINK_PREFIX.openssl}/lib			\
# 		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib	\
# 		-lssl -lcrypto
# 
# PLIST_SRC+=	${PKGDIR}/PLIST.tls
# MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
# .endif

.if defined(POSTFIX_USE_PCRE) && ${POSTFIX_USE_PCRE} == "YES"
.  include "../../devel/pcre/buildlink3.mk"
CCARGS+=	-DHAS_PCRE
AUXLIBS+=	-L${BUILDLINK_PREFIX.pcre}/lib				\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib		\
		-lpcre
.else
CCARGS+=	-DNO_PCRE
d59 1
d61 3
a63 14
.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == "YES"
.  include "../../databases/openldap/buildlink3.mk"
CCARGS+=	-DHAS_LDAP
AUXLIBS+=	-L${BUILDLINK_PREFIX.openldap}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openldap}/lib	\
		-lldap -llber
.  if ${OPSYS} != "Linux"
.    include "../../databases/db4/buildlink3.mk"
CCARGS+=	-I${BUILDLINK_PREFIX.db4}/include/db4
AUXLIBS+=	-L${BUILDLINK_PREFIX.db4}/lib                    \
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db4}/lib     \
		-ldb4
.  endif
.endif
d65 4
a68 7
.if defined(POSTFIX_USE_MYSQL) && ${POSTFIX_USE_MYSQL} == "YES"
.  include "../../databases/mysql-client/buildlink3.mk"
CCARGS+=	-DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
AUXLIBS+=	-L${BUILDLINK_PREFIX.mysql-client}/lib/mysql		\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql	\
		-lmysqlclient -lz -lm
.endif
d70 2
a71 27
## .if defined(POSTFIX_USE_PGSQL) && ${POSTFIX_USE_PGSQL} == "YES"
## .  include "../../mk/pgsql.buildlink3.mk"
## .  include "../../security/openssl/buildlink3.mk"
## PATCHFILES+=		postfix-pg.postfix-2.0.0.2.patch
## PATCH_SITES+=		http://www.mat.cc/postfix/
## PATCH_DIST_STRIP=	-p1
##
## CCARGS+=	-DHAS_PGSQL -I${PGSQL_PREFIX}/include/pgsql
## AUXLIBS+=	-L${PGSQL_PREFIX}/lib -lpq \
##		-L${BUILDLINK_PREFIX.openssl}/lib -lcrypt
## .endif

.if defined(USE_SASL2) && ${USE_SASL2} == "YES"
USING_SASL=	YES
.  include "../../security/cyrus-sasl2/buildlink3.mk"
CCARGS+=	-DUSE_SASL2_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl2
.elif defined(USE_SASL) && ${USE_SASL} == "YES"
USING_SASL=YES
.  include "../../security/cyrus-sasl/buildlink3.mk"
CCARGS+=	-DUSE_SASL_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl
.endif
d73 4
a76 39
.if defined(USING_SASL)
PLIST_SRC+=	${PKGDIR}/PLIST.sasl
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.sasl
MESSAGE_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
.endif

MESSAGE_SRC+=	${PKGDIR}/MESSAGE
.if exists(${PKGDIR}/MESSAGE.${OPSYS})
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.${OPSYS}
.endif
PLIST_SRC+=	${PKGDIR}/PLIST
ALL_TARGET=	#empty
MAKE_ENV=	CC="${CC}" OPT="${CFLAGS}"
MAKE_ENV+=	AUXLIBS="${AUXLIBS}" CCARGS="${CCARGS}"

POSTFIX_CONF_FILES=	conf/main.cf src/util/sys_defs.h postfix-install
POSTFIX_CONF_FILES+=	src/global/mail_params.h

FILES_SUBST+=	SHAREDIR=${SHAREDIR}
MESSAGE_SUBST+=	SHAREDIR=${SHAREDIR}
PLIST_SUBST+=	POSTFIX_SPOOL=${POSTFIX_SPOOL}

PKG_GROUPS?=	postfix maildrop
PKG_USERS?=	postfix:postfix::Postfix\\ User:${POSTFIX_SPOOL}

LIBEXECDIR=	${PREFIX}/libexec/${PKGBASE}
SHAREDIR=	${PREFIX}/share/examples/${PKGBASE}

CONF_FILES=	${SHAREDIR}/main.cf ${PKG_SYSCONFDIR}/main.cf
CONF_FILES+=	${SHAREDIR}/master.cf ${PKG_SYSCONFDIR}/master.cf
.if defined(USING_SASL)
.  if defined(USE_SASL2)
MAKE_DIRS+=	${PREFIX}/lib/sasl2
CONF_FILES+=	${SHAREDIR}/smtpd.conf	${PREFIX}/lib/sasl2/smtpd.conf
.  else
MAKE_DIRS+=	${PREFIX}/lib/sasl
CONF_FILES+=	${SHAREDIR}/smtpd.conf	${PREFIX}/lib/sasl/smtpd.conf
.  endif
.endif
d78 2
a79 2
.for confscr in post-install postfix-files postfix-script
CONF_FILES_PERMS+=	${SHAREDIR}/${confscr} ${PKG_SYSCONFDIR}/${confscr} \
d82 5
a86 1
.undef confscr
d88 2
a89 1
INSTALL_EXTRA_TMPL+=	${PKGDIR}/INSTALL
d94 1
a94 3
		${SED} -e 's|__PREFIX|'${PREFIX}'|g'			\
			-e 's|__PKG_SYSCONFDIR|'${PKG_SYSCONFDIR}'|g'	\
			< ${WRKSRC}/$${i}.dist				\
d104 9
a112 2
	${SED} -e 's#@@@@PREFIX@@@@#${PREFIX}#g' \
	    <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix
d114 1
a114 4
pre-install:
	${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
	${INSTALL_DATA_DIR} ${SHAREDIR}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
d116 2
a117 2
	${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${SHAREDIR} ${LIBEXECDIR}
	${CHMOD} 755 ${SHAREDIR} ${LIBEXECDIR}
d119 2
a120 25
.if defined(USING_SASL)
.  if defined(USE_SASL2)
	${ECHO} "pwcheck_method: auxprop" > ${WRKDIR}/smtpd.conf
.  else
	${ECHO} "pwcheck_method: sasldb" > ${WRKDIR}/smtpd.conf
.  endif
	${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${SHAREDIR}
.endif
	${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${SHAREDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-files ${SHAREDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${SHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/main.cf ${SHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/master.cf ${SHAREDIR}
	${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix ${SHAREDIR}/mailer.conf

do-install:
	cd ${WRKSRC} && ${SETENV} config_directory="${SHAREDIR}"	\
		${SH} postfix-install -non-interactive

.if ${OPSYS} == "Linux"
.  include "../../databases/db/buildlink3.mk"
CCARGS+=	-I${BUILDLINK_PREFIX.db2}/include/db2
AUXLIBS+=	-L${BUILDLINK_PREFIX.db2}/lib                    \
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db2}/lib     \
		-ldb2
d122 8
@


1.34
log
@Add CONFLICTS with the upcoming mail/fastforward update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2004/07/02 08:03:04 martti Exp $
d101 1
a101 1
## .  include "../../databases/postgresql-lib/buildlink3.mk"
d107 2
a108 2
## CCARGS+=	-DHAS_PGSQL -I${BUILDLINK_PREFIX.postgresql-lib}/include/pgsql
## AUXLIBS+=	-L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq \
@


1.33
log
@Updated postfix-current to 2.2-20040628

* Sync with pkgsrc/mail/postfix
* Get rid of canonical_classes patch
* No IPv6 patch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2004/06/06 13:50:41 taca Exp $
d12 1
a12 1
CONFLICTS+=	sendmail-[0-9]*
@


1.32
log
@Update postfix-current pacakge to postfix-20040504.

pkgsrc changes:

- install smtpd-policy script as example.
- adapot NetBSD 2.X and later.
- make local(8) handle EDQUOT as temporary error.
- enable RECEIVED_ENVELOPE_FROM.

Postfix changes:

20040324

	Portability: ekkoBSD support by Philip Reynolds.
	Files: makedefs, util/sys_defs.h.

20040325

	Cleanup: smtp_skip_4xx_greeting and smtp_skip_5xx_greeting
	functionality is moved from connection management to SMTP
	protocol processing, so that Postfix now logs the server
	response when a server refuses to provide service.  Files:
	smtp/smtp_connect.c, smtp/smtp_proto.c.

	Cleanup: smtp_skip_4xx_greeting is no longer configurable;
	it is now permanently turned on.

20040326

	Workaround: in the trivial-rewrite server, turn on the code
	to strip trailing "." while rewriting addresses, and change
	the address resolver to strip trailing "." in a compatible
	manner.  This does not eliminate the problem that the SMTP
	server may use a different address for recipient validation
	than what the cleanup server uses for virtual alias mapping.

20040329

	Bugfix: the SMTP server did not log client (and SASL)
	information with the real-time content filter was enabled.
	Files: smtpd/smtpd.c, smtpd/smtpd_sasl_proto.c.

	Compatibility: smtpd_reject_unlisted_sender is turned off
	by default, to avoid trouble with with in-house software
	that sends out mail software with an unreplyable address.

20040331

	Bugfix: postdrop should not abandon mail submission after
	receiving a SIGHUP signal when SIGHUP was ignored by the
	parent process.  Victor Duchovni, Morgan Stanley.  File:
	postdrop/postdrop.c.

	Bugfix: parsing bug in PgSQL dictionaries causing UNIX
	sockets to be ignored. Liviu Daia. Files: global/dict*sql.c.

	Performance: allow MySQL and PgSQL database connections to
	be closed when idle for more than 1 minute; Liviu Daia.
	Files: global/dict*sql.c.

20040401

	Sanity: the SMTP server no longer accepts sender or recipient
	addresses that end in the "@@" null domain, as well as
	addresses that rewrite into such a form.  Specify
	"resolve_null_domain=yes" to get the old behavior back.
	File:  trivial-rewrite/resolve.c.

20040402

	Cleanup: added WARN action support for access maps, for
	consistency with the WARN action in header and body checks.
	File:  smtpd/smtpd_check.c.

20040407

	Bugfix: missing return statement at the end of the
	FREE_MEMORY_AND_RETURN error handling macro. Adi Prasaja.
	File: trivial-rewrite/resolve.c.

20040411

	Future proofing: client_rate_time_unit is renamed to
	anvil_rate_time_unit, so that it is no longer limited to
	clients only. File: src/global/mail_params.h.

	Cleanup: postalias and postmap now log problems to syslogd.
	Files: postalias/postalias.c, postmap/postmap.c.

20040413

	Feature: "postfix set-permissions" (re)sets ownership and
	access permissions of Postfix files and directories.

	Feature: "postfix upgrade-configuration" updates main.cf
	and master.cf. This is for people who people copy over
	their old files after installing a newer Postfix version.

	Feature: HTML files are now optionally installed under
	control of the html_directory configuration parameter.
	Files: postfix-install, conf/postfix-files, conf/post-install.

	Cleanup: README file installation is now optional.  Files:
	postfix-install, conf/postfix-files, conf/post-install.

20040414

	Cleanup: references to sample-mumble.cf files removed,
	conf/mumble_table files removed, new commands added to
	conf/postfix-script.

	Cleanups: function declared in but used as void, missing
	include file, missing const qualifier, unused variable.
	Matthias Andree. Files:  bounce/bounce_notify_util.c,
	bounce/bounce_service.h, postlog/postlog.c, smtpd/smtpd_check.c,
	util/attr_scan64.c.

	Bugfix: more robust version of SIGHUP test of 20040331.
	Victor Duchovni, Morgan Stanley. File: postdrop/postdrop.c.

	Safety: added NOCLOBBER qualifiers to local variables that
	might be clobbered by longjmp(). Files: util/sys_defs.h,
	smtp/smtp_proto.c, lmtp/lmtp_proto.c, smtpd/smtpd_check.c,
	smtpstone/smtp-source.c.

	Bugfix: sub-level Makefiles no longer turned on the extra
	compiler warnings. Files: Makefile.in.*, makedefs.*.

20040415

	Bugfix: the LMTP client attempted to reuse a connection
	after timeout, causing protocol synchronization errors.
	Reported by Rob Mueller. File: lmtp/lmtp.c.

20040416

	Cleanup: non-delivery reports now include the original
	recipient information. File: bounce/bounce_notify_util.c.

20040415-18

	Typos: many documentation fixes by Rob Foehl.

20040418

	Cleanup: "int" versus "const int" prototype mismatch between
	the DICT sequence method prototype and possible implementations.
	Files: util/dict_db.c, util/dict_dbm.c.

20040419

	Bugfix: the code that rejects client/helo RESTRICTIONS with
	smtpd_delay_reject=no looked at the wrong evidence and
	rejected client/helo ACCESS MAP lookups instead. Michael
	Tokarev. Files:  smtpd/smtpd.c, smtpd/smtpd_check.c.

	Bugfix: missing # in master.cf in optional submission
	service.

20040420

	Bugfix: smtpd logged the client too often. Michael Tokarev.
	File: smtpd/smtpd.c.

	Cleanup: client_event_status_update_time renamed to
	anvil_status_update_time. Files: mantools/postlink,
	proto/postconf.proto, anvil/anvil.c.

20040421

	Workaround: allow pipelined SMTP clients to overshoot the
	SMTP server recipient limit without triggering the server
	hard error limit.  The SMTP server does not count "too many
	recipients" towards the hard error limit, as long as the
	number of excess recipients stays within a configurable
	overshoot limit (default: smtpd_recipient_overshoot_limit
	= 1000).  Solution in cooperation with Victor Duchovni.
	Files:  smtpd/smtpd.c, smtpd/smtpd_state.c, smtpd/smtpd.h.

20040502

	Missing test for a never used flag (the problematic and
	thus never completed INSPECT feature that doesn't re-inject
	mail into Postfix).  Victor Duchovni, Morgan Stanley. File:
	virtual/virtual.c.

20040503

	Bugfix: missing "sasl enabled" guard in the SMTPD policy
	client.  File: smtpd/smtpd_check.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2004/04/21 21:09:31 cube Exp $
d3 1
a3 2
DISTNAME=	postfix-2.2-20040504
PKGNAME=	postfix-20040504
a41 1
REPLACE_PERL+=	examples/smtpd-policy/greylist.pl examples/smtpd-policy/spf.pl
d44 1
a44 1
#BUILD_DEFS+=	POSTFIX_USE_TLS
d52 14
a65 14
.if defined(POSTFIX_USE_INET6) && ${POSTFIX_USE_INET6} == "YES"
.  include "../../security/openssl/buildlink3.mk"
PATCHFILES+=		tls+ipv6-1.24-pf-2.2-20040504.patch.gz
PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.24/
PATCH_DIST_STRIP=	-p1

CCARGS+=	-DHAS_SSL
AUXLIBS+=	-L${BUILDLINK_PREFIX.openssl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib	\
		-lssl -lcrypto

PLIST_SRC+=	${PKGDIR}/PLIST.tls
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
.endif
d83 7
d100 11
a110 11
.if defined(POSTFIX_USE_PGSQL) && ${POSTFIX_USE_PGSQL} == "YES"
.  include "../../databases/postgresql-lib/buildlink3.mk"
.  include "../../security/openssl/buildlink3.mk"
PATCHFILES+=		postfix-pg.postfix-2.0.0.2.patch
PATCH_SITES+=		http://www.mat.cc/postfix/
PATCH_DIST_STRIP=	-p1

CCARGS+=	-DHAS_PGSQL -I${BUILDLINK_PREFIX.postgresql-lib}/include/pgsql
AUXLIBS+=	-L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq \
		-L${BUILDLINK_PREFIX.openssl}/lib -lcrypt
.endif
d120 1
a120 1
USING_SASL=	YES
a219 9
.if defined(POSTFIX_USE_INET6) && ${POSTFIX_USE_INET6} == "YES"
	${INSTALL_DATA} ${WRKSRC}/conf/sample-ipv6.cf ${SHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/sample-tls.cf ${SHAREDIR}
.endif
	${INSTALL_DATA_DIR} ${SHAREDIR}/smtpd-policy
	${INSTALL_SCRIPT} ${WRKSRC}/examples/smtpd-policy/greylist.pl \
		${SHAREDIR}/smtpd-policy
	${INSTALL_SCRIPT} ${WRKSRC}/examples/smtpd-policy/spf.pl \
		${SHAREDIR}/smtpd-policy
@


1.31
log
@Drop localized *_USE_LDAP definitions and consistently use USE_OPENLDAP
instead.  As announced on tech-pkg.

Most notably affected are Postfix, sendmail, Samba and cyrus-saslauthd.  Be
sure to update your mk.conf accordingly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2004/04/14 17:52:53 grant Exp $
d3 2
a4 2
DISTNAME=	postfix-2.0.19-20040312
PKGNAME=	postfix-20040312
d43 1
d56 2
a57 2
PATCHFILES+=		tls+ipv6-1.22-pf-2.0.19-20040312.patch.gz
PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.22/
d139 1
a139 1
POSTFIX_CONF_FILES+=	conf/sample-misc.cf src/global/mail_params.h
d215 9
@


1.30
log
@indent a block, minor whitespace tweak
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2004/04/12 16:04:45 taca Exp $
a46 1
BUILD_DEFS+=	POSTFIX_USE_LDAP
d49 1
d78 1
a78 1
.if defined(POSTFIX_USE_LDAP) && ${POSTFIX_USE_LDAP} == "YES"
@


1.29
log
@Update postfix-current to 2.0.19-20040312 and enable POSTFIX_USE_INET6
support with tls+ipv6-1.22-pf-2.0.19-20040312.patch.gz, too.

20040302

	Bugfix: SMTPD proxy didn't send QUIT as the result of code
	duplication. Evidence reported by Mark Martinec. File:
	smtpd/smtpd.c.

20040311

	Bugfix: bad address syntax caused map lookup with zero-length
	keys.  Problem reported by Andrei Koulik. Files:
	util/match_ops.c, src/trivial-rewrite/transport.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2004/03/10 18:07:16 jlam Exp $
d107 1
a107 1
USING_SASL=YES
d114 1
a114 1
USING_SASL=YES
d216 1
a216 1
.include "../../databases/db/buildlink3.mk"
@


1.28
log
@Convert to use bdb.buildlink3.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2004/03/07 12:29:41 martti Exp $
d3 2
a4 2
DISTNAME=	postfix-2.0.18-20040209
PKGNAME=	postfix-20040209
d6 2
a7 1
MASTER_SITES=	http://public.planetmirror.com.au/pub/postfix/experimental/
d53 14
a66 14
#.if defined(POSTFIX_USE_INET6) && ${POSTFIX_USE_INET6} == "YES"
#.  include "../../security/openssl/buildlink3.mk"
#PATCHFILES+=		tls+ipv6-1.21-pf-2.0.18.patch.gz
#PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.21/
#PATCH_DIST_STRIP=	-p1
#
#CCARGS+=	-DHAS_SSL
#AUXLIBS+=	-L${BUILDLINK_PREFIX.openssl}/lib			\
#		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib	\
#		-lssl -lcrypto
#
#PLIST_SRC+=	${PKGDIR}/PLIST.tls
#MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
#.endif
@


1.27
log
@Fixed CONFLICTS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2004/03/07 10:16:05 grant Exp $
d216 3
a218 3
CCARGS+=	-I${BUILDLINK_PREFIX.db}/include/db2
AUXLIBS+=	-L${BUILDLINK_PREFIX.db}/lib                    \
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib     \
@


1.26
log
@add CONFLICT on sendmail, which also installs bin/mailq and
bin/newaliases.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2004/03/06 15:08:32 grant Exp $
d12 1
a12 1
CONFLICTS+=	sendmail-[0-9]
@


1.25
log
@resolve conflicts
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.118 2004/03/05 13:54:32 grant Exp $
d12 2
@


1.24
log
@second attempt to nuke postfix-current (the files were copied to the
postfix pkg, per PR 12426.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2001/03/18 14:02:00 itojun Exp $
d3 2
a4 2
DISTNAME=	release-20010228
PKGNAME=	postfix-20010228
d6 1
a6 1
MASTER_SITES=	ftp://postfix.cloud9.net/official/
d8 1
a8 7
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
d10 1
a10 1
COMMENT=	postfix smtp server and tools
d14 16
a29 1
POSTFIX_SPOOL=	/var/spool/postfix
a31 2
# automagically determines IPv6 support
BUILD_DEFS+=	USE_INET6
d33 48
a80 5
.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}"
d83 7
a89 1
BUILD_DEFS+=	POSTFIX_PCRE
d91 11
a101 1
PLIST_SRC=	${PKGDIR}/PLIST
d103 27
d131 35
d168 7
a174 12
	${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
d177 3
a179 1
	(cd ${WRKSRC}; ${MAKE} makefiles)
d186 6
a191 4
	${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
d193 26
a218 10

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
@


1.23
log
@pull postfix-users patch to correct sprious backslash.
update IPv6 patch.  fixes src/dst address family mismatch in src/smtp.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2001/03/12 07:18:05 itojun Exp $
@


1.22
log
@use the latest IPv6 patch.  it will correct listening socket selection
on IPv4-only kernel (reported by kim@@tac.nyc.ny.us).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2001/03/04 04:10:47 kim Exp $
d8 1
a8 1
PATCHFILES=	postfix-20010228release-v6-20010312a.diff.gz \
@


1.21
log
@Add an option to disable canonicalizing the envelope recipient.  This
allows correct local delivery on multiple hosts while still canonicalizing
visible and sender addresses.  (This makes it possible to support vanity
domains and "permanent address" services like iki.fi and pobox.com.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2001/03/02 04:18:19 itojun Exp $
d8 1
a8 1
PATCHFILES=	postfix-20010228release-v6-20010302a.diff.gz \
@


1.20
log
@use 2/28 official release and IPv6 patch.
(mail/postfix should be overwritten)


20010225

	Portability: master sigchld handler based on writing to a
	pipe, so that the master wakes up from select(). Based on
	code by Erik Forsberg, Linkoping University, Sweden.  File:
	master/master_sig.c. Disabled until after the major release.

	Code cleanup: Postfix should now run with no alias database.

	Code cleanup: local_destination_recipient_limit and
	local_destination_concurrency_limit have become first-class
	configuration parameters. Files: global/mail_params.h,
	*qmgr/qmgr.c, postconf/postconf.c.

20010226

	Documentation suggestions by Lars Hecking and Richard
	Huxton, Matthias Andree and many others.

	Code cleanup: some queue/transport operations need to be
	moved, after the code cleanup of the recipient/concurrency
	limit handling. Patrik Rak.  Files: *qmgr/qmgr_message.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2001/02/28 10:34:38 itojun Exp $
d8 4
a11 2
PATCHFILES=	postfix-20010228release-v6-20010302a.diff.gz 
PATCH_SITES=	ftp://ftp.kame.net/pub/kame/misc/
@


1.19
log
@update IPv6 patch.  corrects minor typos.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2001/02/27 07:59:31 itojun Exp $
d3 2
a4 2
DISTNAME=	snapshot-20010225
PKGNAME=	postfix-20010225
d6 1
a6 1
MASTER_SITES=	ftp://postfix.cloud9.net/experimental/
d8 1
a8 1
PATCHFILES=	postfix-20010225snap-v6-20010228a.diff.gz 
@


1.18
log
@update to 20010225 (release candiate) with latest IPv6 patch.

--- changes (reverse order)
20010204

	Laid the ground work for logging of table accesses. This
	will give more insight into how Postfix uses its lookup
	tables. User interface comes later.  File:  util/dict_debug.c.

20010216

	Bugfix: the pipe delivery agent expanded $size as if it
	were a recipient, instead of expanding it as $nexthop or
	as $sender. Reported by Michael Tokarev. File: pipe/pipe.c.

20010221

	Bugfix: poor LMTP performance for domains that are listed
	in $mydestination, because Postfix would send one recipient
	at a time, with multiple deliveries of recipients of the
	same message in parallel; a similar problem could exist
	with virus scanning and with firewall relay hosts that
	forward mail for $mydestination to an inside machine. This
	behavior is now changed to depend on the transport-specific
	xxx_destination_recipient_limit parameter.  This also means
	that you can now get qmail behavior for SMTP deliveries by
	setting smtp_destination_recipient_limit=1.  File:
	{qmgr,nqmgr}/qmgr_message.c.

	Workaround: Solaris socketpair() can fail with EINTR. Added
	a sane_socketpair.c module that joins the ranks of the other
	sane_whatever workarounds. Reported by Andrew McNamara.
	File: util/sane_socketpair.[hc]

20010222

	Documentation: the default main.cf file has a prominent
	warning that mynetworks should be properly configured in
	order to reject unauthorized mail relay requests from
	strangers.

	Documentation: the INSTALL document, section "mandatory
	configuration file edits" has a section that explains that
	mynetworks should be properly configured in order to reject
	unauthorized mail relay requests from strangers.

20010223

	Documentation: the basic.html document has a section that
	explains that mynetworks should be properly configured in
	order to reject unauthorized mail relay requests from
	strangers.

	Feature: new "mynetworks_style" parameter that controls
	how mynetworks (trusted networks) is derived from the
	inet_interfaces (machine interfaces) setting. Specify
	"class" for entire class A, B, C networks; "subnet" for
	the local subnets only; or "host" for maximal privacy.
	Files:  util/inet_addr_local.[hc], global/own_inet_addr.[hc],
	global/mynetworks.[hc], postconf/postconf.c.

	Portability: MACOSX patches by Gerben Wierda.

	Portability: Solaris /dev/null is a symlink, which tripped
	up the code to safely open a file before local delivery. We now
	grudgingly allow symlinks owned by root. File: util/safe_open.c.

20010224

	Bugfix: "postconf mynetworks" ignored the inet_interfaces
	setting. That was a very old one. File: postconf/postconf.c.

	INCOMPATIBLE CHANGE: POSTFIX NO LONGER RELAYS MAIL FOR
	CLIENTS IN THE ENTIRE CLASS A/B/C NETWORK. POSTFIX BY
	DEFAULT RELAYS MAIL FOR CLIENTS IN THE LOCAL SUBNETWORK.
	Specify "mynetworks_style = class" to get the old behavior.

20010225

	Portability: master sigchld handler based on writing to a
	pipe, so that the master wakes up from select(). Based on
	code by Erik Forsberg, Linkoping University, Sweden.  File:
	master/master_sig.c. Disabled until after the major release.

	Code cleanup: Postfix should now run with no alias database.

	Code cleanup: local_destination_recipient_limit and
	local_destination_concurrency_limit are not first-class
	configuration parameters. Files: global/mail_params.h,
	*qmgr/qmgr.c, postconf/postconf.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/02/25 04:17:58 hubertf Exp $
d8 1
a8 1
PATCHFILES=	postfix-20010225snap-v6-20010227a.diff.gz 
@


1.17
log
@Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2001/02/17 18:25:01 wiz Exp $
d3 2
a4 2
DISTNAME=	snapshot-20010204
PKGNAME=	postfix-20010204
d8 1
a8 1
PATCHFILES=	postfix-20010204snap-v6-20010205a.diff.gz 
@


1.16
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/02/05 06:23:06 itojun Exp $
d59 1
a59 1
	${MKDIR} /etc/postfix ${PREFIX}/share/postfix \
d68 1
a68 1
	-${MKDIR} ${POSTFIX_SPOOL}
@


1.15
log
@upgrade to snapshot 20010204.  no changelog supplied, seems to be minor bugfix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2001/02/04 06:10:23 itojun Exp $
d14 1
@


1.14
log
@upgrade to 20010202 (beta) with latest IPv6 patch.


Major changes with snapshot-20010202
====================================

The mailbox file size limits for the local and virtual delivery
agents can be disabled by setting mailbox_size_limit and/or
virtual_mailbox_limit to zero.

Incompatible changes with snapshot-20010128
===========================================

If this release does not work for you, you can go back to a previous
Postfix version without losing your mail, subject to the "incompatible
changes" listed for previous Postfix releases below.

REJECT in header/body_checks is now flagged as policy violation
rather than bounce, for consistency in postmaster notifications.

New mailbox size limit for local delivery (default: 50MBytes). This
limit affects all file write access by the local delivery agent or
by a process run by the local delivery agent. The purpose of this
parameter is to act as a safety for run-away software. It cannot
be a substitute for a file quota management system.

The default RBL (real-time blackhole lists) domain examples have
been updated from *.vix.com to *.mail-abuse.org.

Major changes with snapshot-20010128
====================================

Updated nqmgr (experimental queue manager with clever queueing
strategy) by Patrik Rak. This code is still new. Once it stops
changing (for a long time!) it will become part of the non-beta
release.

Virtual mailbox delivery agent by Andrew McNamara. This delivery
agent can deliver mail for any number of domains.  See the file
VIRTUAL_README for detailed examples. This code is still new. Once
it stops changing it will become part of the non-beta release.

Many "valid_hostname" warnings were eliminated. The warnings that
were not eliminated were replaced by something more informative.

SASL support (RFC 2554) for the LMTP delivery agent. This is required
by recent Cyrus implementations when delivering mail over TCP
sockets. The LMTP_README file has been updated but still contains
some obsolete information.

Workarounds for non-standard RFC 2554 (AUTH command) implementations.
Specify "broken_sasl_auth_clients = yes" to enable SMTP server
support for old Microsoft client applications. The Postfix SMTP
client supports non-standard RFC 2554 servers by default.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2001/01/17 14:31:23 itojun Exp $
d3 2
a4 2
DISTNAME=	snapshot-20010202
PKGNAME=	postfix-20010202
d8 1
a8 1
PATCHFILES=	postfix-20010202snap-v6-20010204a.diff.gz 
@


1.13
log
@use more recent IPv6 patch.  now the same binary should work on
IPv4-only, IPv6-only and IPv4/v6 dual stack machines.
(need more cleanups)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2001/01/13 07:46:57 itojun Exp $
d3 2
a4 2
DISTNAME=	snapshot-20001217
PKGNAME=	postfix-20001217
d8 1
a8 1
PATCHFILES=	postfix-20001217snap-v6-20010117a.diff.gz 
d62 1
a62 1
	${RM} ${WRKSRC}/conf/*.orig
@


1.12
log
@upgrade to 20001217 snapshot.

Major changes with snapshot-20001217
====================================

This release involves little change in functionality and a lot of
small changes to lots of files. The code is put out as a separate
snapshot release so that I have a tested baseline for further work.

All time-related configuration parameters now accept a one-letter
suffix to indicate the time unit (s: second, m: minute, h: hour,
d: day, w: week). The exceptions are the LDAP and MYSQL modules
which are maintained separately.

The mysql client was partially rewritten in order to elimimate some
memory allocation/deallocation problems. The code needs more work,
and needs to be tested in a real production environment.

The local_transport and default_transport configuration parameters
can now be specified in transport:destination notation, just like
the mailbox_transport and fallback_transport parameters.  The
:destination part is optional.  However, these parameters take only
one destination, unlike relayhost and fallback-relay which take
any number of destinations.

Incompatible changes with snapshot-20001210
===========================================

If this release does not work for you, you can go back to a previous
Postfix version without losing your mail, subject to the "incompatible
changes" listed for previous Postfix releases below.

When delivering to /file/name (as directed in an alias or .forward
file), the local delivery agent now logs a warning when it is unable
to create a /file/name.lock file. Mail is still delivered as before.

The "sun_mailtool_compatibility" feature is going away (a compatibility
mode that turns off kernel locks on mailbox files). It still works,
but a warning is logged. Instead of using "sun_mailtool_compatibility",
specify the mailbox locking strategy as "mailbox_delivery_lock =
dotlock".

The Postfix SMTP client now skips SMTP server replies that do not
start with "CODE SPACE" or with "CODE HYPHEN" and flags them as
protocol errors. Older Postfix SMTP clients silently treated "CODE
TEXT" as "CODE SPACE TEXT", i.e. as a valid SMTP reply.

This snapshot does not yet change default relay settings. That
change alone affects a dozen files, most of which documentation.
This may be an incompatibility with some people's expectations,
but such are my rules - between code freeze and release no major
functionality changes are allowed.

Several interfaces of libutil and libglobal routines have changed.
This may break third-party code written for Postfix. In particular,
the safe_open() routine has changed, the way the preferred locking
method is specified in the sys_defs.h file, as well as all routines
that perform file locking. When compiling third-party code written
for Postfix, the incompatibilities will be detected by the compiler
provided that #include file dependencies are properly maintained.

Major changes with snapshot-20001210
====================================

This snapshot includes bugfixes that were already released as
patches 12 and 13 for the 19991231 "stable" release:

  - The queue manager could deadlock for 10 seconds when bouncing
    mail under extreme load from one-to-one mass mailings.

  - Local delivery performance was substandard, because the per-user
    concurrency limit accidentally applied to the entire local
    domain.

The mailbox locking style is now fully configurable at runtime.
The new configuration parameter is called "mailbox_delivery_lock".
Depending on the operating system type, mailboxes can be locked
with one or more of "flock", "fcntl" or "dotlock".  The command
"postconf -l" shows the available locking styles.  The default
mailbox locking style is system dependent.  This change affects
all mailbox and all "/file/name" deliveries by the Postfix local
delivery agent.

The new "import_environment" and "export_environment" configuration
parameters now provide explicit control over what environment
variables Postfix will import, and what environment variables
Postfix will pass on to a non-Postfix process. This is better than
hard-coding my debugging environment into public releases.

The "mailbox_transport" and "fallback_transport" parameters now
understand the form "transport:nexthop", with suitable defaults
when either transport or nexthop are omitted, just like in the
Postfix transport map. This allows you to specify for example,
"mailbox_transport = lmtp:unix:/file/name".

The MYSQL client now supports server connections over UNIX-domain
sockets.  Code provided by Piotr Klaban. See the file MYSQL_README
for examples of "host" syntax.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2000/12/04 08:30:53 itojun Exp $
d8 1
a8 1
PATCHFILES=	postfix-20001217snap-v6-20010113a.diff.gz 
@


1.11
log
@use latest KAME IPv6 patch.  should fix NetBSD PR 11336 (default
listening socket is changed by IPv6 patch).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2000/11/27 15:54:32 itojun Exp $
d3 2
a4 2
DISTNAME=	snapshot-20001121
PKGNAME=	postfix-20001121
d8 1
a8 1
PATCHFILES=	postfix-20001121snap-v6-20001204a.diff.gz
@


1.10
log
@upgrade to snapshot 2000/11/21 + KAME IPv6 patch.

---
20001024

	Documentation: the canonical, virtual etc. manual pages
	did not document the effect of leading whitespace.

20001025

	Bugfix: virtual map expansion stopped too early with
	self-referential aliases. Reported by Michael Douglass
	@@ datafoundry.net. File: cleanup/cleanup_map1n.c.

20001026

	Horror:  postmap and postalias (newaliases) silently lose
	the file lock while building a lookup table with Berkeley
	DB 2.x and later on Solaris, HP-UX, IRIX, and UNIXWARE.
	The result is that table lookups fail while the table is
	being built, so that mail is lost.  In order to avoid this
	misbehavior one has to use an undocumented feature that is
	NOT available with the DB1.85 compatibility interface.
	Therefore, Postfix now supports three Berkeley DB programming
	interfaces of increasing complexity. File: util/dict_db.c.

	Bugfix: some character manipulations were not portable for
	signed/unsigned characters. Files: global/quote_821_local.c,
	global/quote_822_local.c.

	Workaround: apparently, some software sends SMTP mail that
	begins with "From sender time-stamp". Sendmail silently
	ignores such RFC violating garbage, and therefore Postfix
	needs to jump another hoop.  File: smtpd/smtpd.c.

20001028

	Bugfix: the flush server tried to access config files after
	going to the chroot jail. Found by Lutz Jaenicke, TU-Cottbus.DE.
	File: flush/flush.c.

	Update: revised LDAP module from primary maintainer John
	Hensley, with contributions from many other people. Files:
	util/dict_ldap.c, LDAP_README.

	Update: LINUX2 chroot setup script by Matthias Andree,
	uni-dortmund.de.

	Feature: specify unix:/path/name for LMTP connections over
	UNIX-domain sockets, and specify inet:host or inet:host:port
	for IPV4. If no unix: or inet: is specified, IPV4 is assumed.
	File: lmtp/lmtp_connect.c.

	Feature: added UNIX-domain support to the smtpstone test
	programs in order to test the LMTP client UNIX-domain
	support.

20001030

	Bugfix: further testing in preparation for 19991231-pl10
	revealed that the DB map code was now broken for every
	platform.

20001031

	Performance: the slow start (gradually increase number of
	parallel connections to the same site) was too gentle and
	Postfix would back off too quickly. Files: qmgr/qmgr_queue.c
	and nqmgr/qmgr_queue.c.

20001101

	FAQ update by Ralph Hildebrandt.

20001104

	Portability: RedHat Linux has changed incompatibly, again.
	Fixed with the help of Matthias Andree.  File: makedefs.

20001109

	Cleanup: changed prototype of internal function that did
	not return a useful result. File: src/util/vstream_popen.c.

20001110

	Workaround: the Debian post install script passes an open
	file descriptor into the master server and waits forever.
	Reported by Lamont Jones. File: master/master.c.

20001114

	Compatibility: added sendmail -G (gateway submission) option
	for compatibility with the sendmail rmail command. Requested
	by David Gilbert, Velocet Communications.

20001116

	Documentation: added MAILER-DAEMON to the list of sample
	masquerade_exceptions settings in conf/sample-rewrite.cf.
	Suggested by Karl O. Pinc, pop.artic.edu.

	Performance: the slow start (gradually increase number of
	parallel connections to the same site) was too gentle and
	Postfix would back off too quickly. Files: qmgr/qmgr_queue.c
	and nqmgr/qmgr_queue.c. Yup, changed the same code, again.
	We now allow for a margin above the actual concurrency,
	with the size of the initial destination concurrency.
	Final solution by Patrik Rak.

	Bugfix: the recipient home directory test broke mailbox_transport
	support for non-UNIX recipients.  File:  local/recipient.c.

20001117

	Robustness: additional integrity tests for the nqmgr by
	Patrik Rak. File: nqmgr/qmgr_message.c.

20001118

	Bugfix: the new LDAP client code did not work properly if
	the new ldap_domain parameter was not specified. LaMont
	Jones, HP.  File: util/dict_ldap.c.

	Feature: the soft_bounce safety net is extended to the SMTP
	server. With "soft_bounce = yes", The SMTP server changes
	all 5xx (reject) replies into 4xx (try again) replies.

	Documentation: the virtual(5) man page now documents both
	Postfix-style virtual domains and Sendmail-style virtual
	domains, including their interaction with local usernames,
	aliases and mailing lists. Hopefully, this ends some of
	the confusion surrounding virtual domain support. Updated
	several FAQ entries concerning virtual domain support.

	Documentation: added FAQ entry for the biff service.

20001119

	Bugfix: per-destination queue names were case sensitive so
	that the same site could have multiple queues.  Reported
	by Patrik Rak. Files: *qmgr/qmgr_message.c.

20001120

	Bugfix: per-destination deferred mail logfiles were case
	sensitive so that the same site could have multiple deferred
	mail logfiles, so that not all mail would be flushed with
	ETRN. Reported by Ralph Hildebrandt. Files:  flush/flush.c.

	Portability: added (int) casts to printf-like arguments
	that specify the width of %*letter conversions.  On some
	systems, sizeof and pointer difference expressions are
	wider than an int.  Reported by Valentin Nechayev @@ lucky.net.

20001121:

	Compatibility: Postfix now retries delivery when an external
	command is killed by a signal, because people expect such
	behavior from Sendmail. File: global/pipe_command.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2000/10/29 12:01:05 itojun Exp $
d8 1
a8 1
PATCHFILES=	postfix-20001121snap-v6-20001128a.diff.gz
@


1.9
log
@POSTFIX_VERP is not supported.  remove it from BUILD_DEFS.  from kimmo
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2000/10/29 05:41:06 kim Exp $
d3 2
a4 2
DISTNAME=	snapshot-20001005
PKGNAME=	postfix-20001005
d8 1
a8 1
PATCHFILES=	postfix-20001005snap-v6-20001011a.diff.gz
@


1.8
log
@MANINSTALL no longer plays a role with this package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2000/10/29 05:40:33 kim Exp $
d30 1
a30 1
BUILD_DEFS+=	POSTFIX_PCRE POSTFIX_VERP
@


1.7
log
@Make linking with PCRE work.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2000/10/15 14:10:19 itojun Exp $
d30 1
a30 1
BUILD_DEFS+=	POSTFIX_PCRE POSTFIX_VERP MANINSTALL
@


1.6
log
@use 2000/10/05 + IPv6 patch.  changes are really too many to paste here.
mostly SASL related changes, it seems.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/08/18 22:46:38 hubertf Exp $
d26 1
a26 1
AUXLIBS=	-lpcre
@


1.5
log
@Replace MIRROR_DISTFILES and NO_CDROM with the more descriptive and
more fine-grained NO_{BIN,SRC}_ON_{FTP,CDROM} definitions.

MIRROR_DISTFILES and NO_CDROM are now dead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/08/14 12:38:21 wiz Exp $
d3 2
a4 2
DISTNAME=	snapshot-20000531
PKGNAME=	postfix-20000531
d8 1
a8 1
PATCHFILES=	postfix-20000531snap-v6-20000814b.diff.gz
d10 1
a10 1
PATCH_DIST_STRIP=	-p1
d38 1
a38 1
	${CP} ${WRKSRC}/util/sys_defs.h ${WRKSRC}/util/sys_defs.h.dist
d44 2
a45 2
	    < ${WRKSRC}/util/sys_defs.h.dist \
	    > ${WRKSRC}/util/sys_defs.h
@


1.4
log
@$() -> ${}
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2000/08/14 11:26:14 itojun Exp $
a14 1
MIRROR_DISTFILE= no
@


1.3
log
@do not install conf/*.orig
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2000/08/14 04:39:59 itojun Exp $
d69 1
a69 1
	$(CHMOD) 755 ${POSTFIX_SPOOL}
@


1.2
log
@postfix 20000531 + IPv6 patch (not sure if it works right - please test).
uses postfix Makefiles, not patches/*.

experimental.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2000/07/03 02:46:16 sommerfeld Exp $
d63 1
@


1.1
log
@Initial revision
@
text
@d3 2
a4 2
DISTNAME=	postfix-19991231-pl08
PKGNAME=	postfix-19991231pl08
d6 1
a6 1
MASTER_SITES=	ftp://postfix.cloud9.net/official/
d8 2
a9 5
.include "../../mk/bsd.prefs.mk"

.if defined(POSTFIX_VERP) && ${POSTFIX_VERP} == YES
PATCHFILES=		postfix-19991231-pl06-verp.patch.gz
PATCH_SITES=		ftp://ftp.gw.com/pub/people/kim/patches/
a10 1
.endif
d12 1
a12 1
MAINTAINER=	christos@@netbsd.org
a15 1
MANCOMPRESSED_IF_MANZ=	yes
d20 4
a30 2
MANINSTALL?=	maninstall catinstall

a33 3
.for i in ${MANINSTALL}
PLIST_SRC+=	${PKGDIR}/PLIST.$i
.endfor
d35 1
a35 2
pre-patch:
	${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
d40 1
a40 1
	${CP} ${WRKSRC}/Makefile.inc ${WRKSRC}/Makefile.inc.dist
d47 6
a52 5
	capitalopsys=`${ECHO} ${OPSYS} | ${TR} a-z A-Z`; \
	osmajorversion=`${ECHO} ${OS_VERSION} | ${SED} -e 's/\..*//g'`; \
	${SED} -e 's:@@OPSYS@@:'$$capitalopsys$$osmajorversion':g' \
	    < ${WRKSRC}/Makefile.inc.dist \
	    > ${WRKSRC}/Makefile.inc
d56 1
a56 1
	  <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix
d60 1
a60 1
	  ${PREFIX}/share/doc/postfix ${PREFIX}/libexec/postfix
d69 4
a72 2
	${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
@


1.1.1.1
log
@mail/postfix-current, for experimental postfix code - based on mail/postfix
@
text
@@


1.1.1.2
log
@Initial import of postfix-current into The NetBSD Packages Collection.

This package is the snapshot from 20040209.

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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.118 2004/03/05 13:54:32 grant Exp $
d3 2
a4 2
DISTNAME=	postfix-2.0.18-20040209
PKGNAME=	postfix-20040209
d6 1
a6 24
MASTER_SITES=	http://public.planetmirror.com.au/pub/postfix/experimental/

MAINTAINER=	tech-pkg@@NetBSD.org
HOMEPAGE=	http://www.postfix.org/
COMMENT=	Postfix SMTP server and tools

DIST_SUBDIR=	postfix

PKG_INSTALLATION_TYPES=	overwrite pkgviews

USE_BUILDLINK3=	yes
USE_PKGINSTALL=	yes

PKG_SYSCONFSUBDIR=	postfix
POSTFIX_SPOOL=		/var/spool/postfix

OWN_DIRS=	${POSTFIX_SPOOL}

CCARGS+=	-DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\"
CCARGS+=	-DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\"
CCARGS+=	-DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\"
CCARGS+=	-DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\"
CCARGS+=	-DDEF_COMMAND_DIR=\"${PREFIX}/sbin\"
CCARGS+=	-DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
d10 4
a13 4
# NetBSD 1.5 and above has /etc/rc.d/postfix already which is
# suitable.
.if empty(MACHINE_PLATFORM:MNetBSD-1.[5-9]*-*)
RCD_SCRIPTS=	postfix
d16 2
a17 1
FIX_RPATH+=	AUXLIBS
d19 3
a21 33
BUILD_DEFS+=	POSTFIX_USE_INET6
#BUILD_DEFS+=	POSTFIX_USE_TLS
BUILD_DEFS+=	POSTFIX_USE_PCRE
BUILD_DEFS+=	POSTFIX_USE_LDAP
BUILD_DEFS+=	POSTFIX_USE_MYSQL
BUILD_DEFS+=	POSTFIX_USE_PGSQL
BUILD_DEFS+=	USE_SASL
BUILD_DEFS+=	USE_SASL2

#.if defined(POSTFIX_USE_INET6) && ${POSTFIX_USE_INET6} == "YES"
#.  include "../../security/openssl/buildlink3.mk"
#PATCHFILES+=		tls+ipv6-1.21-pf-2.0.18.patch.gz
#PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.21/
#PATCH_DIST_STRIP=	-p1
#
#CCARGS+=	-DHAS_SSL
#AUXLIBS+=	-L${BUILDLINK_PREFIX.openssl}/lib			\
#		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib	\
#		-lssl -lcrypto
#
#PLIST_SRC+=	${PKGDIR}/PLIST.tls
#MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
#.endif

.if defined(POSTFIX_USE_PCRE) && ${POSTFIX_USE_PCRE} == "YES"
.  include "../../devel/pcre/buildlink3.mk"
CCARGS+=	-DHAS_PCRE
AUXLIBS+=	-L${BUILDLINK_PREFIX.pcre}/lib				\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib		\
		-lpcre
.else
CCARGS+=	-DNO_PCRE
.endif
d23 1
a23 7
.if defined(POSTFIX_USE_LDAP) && ${POSTFIX_USE_LDAP} == "YES"
.  include "../../databases/openldap/buildlink3.mk"
CCARGS+=	-DHAS_LDAP
AUXLIBS+=	-L${BUILDLINK_PREFIX.openldap}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openldap}/lib	\
		-lldap -llber
.endif
d25 5
a29 6
.if defined(POSTFIX_USE_MYSQL) && ${POSTFIX_USE_MYSQL} == "YES"
.  include "../../databases/mysql-client/buildlink3.mk"
CCARGS+=	-DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
AUXLIBS+=	-L${BUILDLINK_PREFIX.mysql-client}/lib/mysql		\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql	\
		-lmysqlclient -lz -lm
d32 1
a32 11
.if defined(POSTFIX_USE_PGSQL) && ${POSTFIX_USE_PGSQL} == "YES"
.  include "../../databases/postgresql-lib/buildlink3.mk"
.  include "../../security/openssl/buildlink3.mk"
PATCHFILES+=		postfix-pg.postfix-2.0.0.2.patch
PATCH_SITES+=		http://www.mat.cc/postfix/
PATCH_DIST_STRIP=	-p1

CCARGS+=	-DHAS_PGSQL -I${BUILDLINK_PREFIX.postgresql-lib}/include/pgsql
AUXLIBS+=	-L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq \
		-L${BUILDLINK_PREFIX.openssl}/lib -lcrypt
.endif
d34 1
a34 15
.if defined(USE_SASL2) && ${USE_SASL2} == "YES"
USING_SASL=YES
.  include "../../security/cyrus-sasl2/buildlink3.mk"
CCARGS+=	-DUSE_SASL2_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl2
.elif defined(USE_SASL) && ${USE_SASL} == "YES"
USING_SASL=YES
.  include "../../security/cyrus-sasl/buildlink3.mk"
CCARGS+=	-DUSE_SASL_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl
.endif
d36 3
a38 43
.if defined(USING_SASL)
PLIST_SRC+=	${PKGDIR}/PLIST.sasl
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.sasl
MESSAGE_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
.endif

MESSAGE_SRC+=	${PKGDIR}/MESSAGE
.if exists(${PKGDIR}/MESSAGE.${OPSYS})
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.${OPSYS}
.endif
PLIST_SRC+=	${PKGDIR}/PLIST
ALL_TARGET=	#empty
MAKE_ENV=	CC="${CC}" OPT="${CFLAGS}"
MAKE_ENV+=	AUXLIBS="${AUXLIBS}" CCARGS="${CCARGS}"

POSTFIX_CONF_FILES=	conf/main.cf src/util/sys_defs.h postfix-install
POSTFIX_CONF_FILES+=	conf/sample-misc.cf src/global/mail_params.h

FILES_SUBST+=	SHAREDIR=${SHAREDIR}
MESSAGE_SUBST+=	SHAREDIR=${SHAREDIR}
PLIST_SUBST+=	POSTFIX_SPOOL=${POSTFIX_SPOOL}

PKG_GROUPS?=	postfix maildrop
PKG_USERS?=	postfix:postfix::Postfix\\ User:${POSTFIX_SPOOL}

LIBEXECDIR=	${PREFIX}/libexec/${PKGBASE}
SHAREDIR=	${PREFIX}/share/examples/${PKGBASE}

CONF_FILES=	${SHAREDIR}/main.cf ${PKG_SYSCONFDIR}/main.cf
CONF_FILES+=	${SHAREDIR}/master.cf ${PKG_SYSCONFDIR}/master.cf
.if defined(USING_SASL)
.  if defined(USE_SASL2)
MAKE_DIRS+=	${PREFIX}/lib/sasl2
CONF_FILES+=	${SHAREDIR}/smtpd.conf	${PREFIX}/lib/sasl2/smtpd.conf
.  else
MAKE_DIRS+=	${PREFIX}/lib/sasl
CONF_FILES+=	${SHAREDIR}/smtpd.conf	${PREFIX}/lib/sasl/smtpd.conf
.  endif
.endif
CONF_FILES_PERMS=	# empty
.for confscr in post-install postfix-files postfix-script
CONF_FILES_PERMS+=	${SHAREDIR}/${confscr} ${PKG_SYSCONFDIR}/${confscr} \
			${ROOT_USER} ${ROOT_GROUP} 755
a39 1
.undef confscr
d41 2
a42 1
INSTALL_EXTRA_TMPL+=	${PKGDIR}/INSTALL
d45 14
a58 12
	@@for i in ${POSTFIX_CONF_FILES}; do				\
		${CP} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.dist;		\
		${SED} -e 's|__PREFIX|'${PREFIX}'|g'			\
			-e 's|__PKG_SYSCONFDIR|'${PKG_SYSCONFDIR}'|g'	\
			< ${WRKSRC}/$${i}.dist				\
			> ${WRKSRC}/$${i};				\
	done

do-configure:
	cd ${WRKSRC} &&							\
	${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles	\
		'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}'
d62 1
a62 1
	    <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix
d65 12
a76 33
	${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
	${INSTALL_DATA_DIR} ${SHAREDIR}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
	${INSTALL_DATA_DIR} ${LIBEXECDIR}
	${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${SHAREDIR} ${LIBEXECDIR}
	${CHMOD} 755 ${SHAREDIR} ${LIBEXECDIR}
	-${RM} -f ${WRKSRC}/conf/*.orig
.if defined(USING_SASL)
.  if defined(USE_SASL2)
	${ECHO} "pwcheck_method: auxprop" > ${WRKDIR}/smtpd.conf
.  else
	${ECHO} "pwcheck_method: sasldb" > ${WRKDIR}/smtpd.conf
.  endif
	${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${SHAREDIR}
.endif
	${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${SHAREDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-files ${SHAREDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${SHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/main.cf ${SHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/master.cf ${SHAREDIR}
	${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix ${SHAREDIR}/mailer.conf

do-install:
	cd ${WRKSRC} && ${SETENV} config_directory="${SHAREDIR}"	\
		${SH} postfix-install -non-interactive

.if ${OPSYS} == "Linux"
.include "../../databases/db/buildlink3.mk"
CCARGS+=	-I${BUILDLINK_PREFIX.db}/include/db2
AUXLIBS+=	-L${BUILDLINK_PREFIX.db}/lib                    \
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib     \
		-ldb2
.endif
@

