View | Details | Raw Unified | Return to bug 24429
Collapse All | Expand All

(-)postfix-current.1/Makefile (-64 / +17 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	postfix
8
PORTNAME=	postfix
9
PORTVERSION=	20001217
9
PORTVERSION=	20001217
10
PORTREVISION=	1
10
CATEGORIES=	mail
11
CATEGORIES=	mail
11
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
12
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
12
		ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \
13
		ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \
Lines 44-122 Link Here
44
BIN2=	postalias postcat postconf postdrop postfix \
45
BIN2=	postalias postcat postconf postdrop postfix \
45
	postkick postlock postlog postmap postsuper sendmail
46
	postkick postlock postlog postmap postsuper sendmail
46
47
47
.if defined(WITH_TEST)
48
DOCDIR=	${PREFIX}/share/doc/postfix
48
BIN3=   smtp-sink smtp-source
49
PLIST_SUB+=		WITH_TEST=""
50
.else
51
PLIST_SUB+=		WITH_TEST="@comment "
52
.endif
53
49
54
.if !defined(DEBUG)
50
.if !defined(DEBUG)
55
MAKEFILEFLAGS+=	DEBUG=
51
MAKEFILEFLAGS+=	DEBUG=
56
.endif
52
.endif
57
53
58
.if defined(CC)
59
MAKEFILEFLAGS+=	CC="${CC}"
60
.endif
61
62
MAKEFILEFLAGS+=	OPT="${CFLAGS}"
54
MAKEFILEFLAGS+=	OPT="${CFLAGS}"
63
55
64
.if defined(WITH_MYSQL)
56
SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
65
BUILD_DEPENDS+=		${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql322-client
57
		PREFIX="${PREFIX}" \
66
POSTFIX_CCARGS+=	-DHAS_MYSQL -I${LOCALBASE}/include/mysql
58
		TOUCH="${TOUCH}" \
67
POSTFIX_AUXLIBS+=	${LOCALBASE}/lib/mysql/libmysqlclient.a -lm
59
		MKDIR="${MKDIR}"
68
.endif
69
70
.if defined(WITH_LDAP)
71
CONF2+=			sample-ldap.cf
72
BUILD_DEPENDS+=		${LOCALBASE}/lib/libldap.a:${PORTSDIR}/net/openldap
73
POSTFIX_CCARGS+=	-DHAS_LDAP -I${LOCALBASE}/include
74
POSTFIX_AUXLIBS+=	${LOCALBASE}/lib/libldap.a ${PREFIX}/lib/liblber.a
75
PLIST_SUB+=		WITH_LDAP=""
76
.else
77
PLIST_SUB+=		WITH_LDAP="@comment "
78
.endif
79
80
.if defined(WITH_PCRE)
81
CONF1+=			pcre_table
82
CONF2+=			sample-pcre.cf
83
MAN5+=			pcre_table.5
84
BUILD_DEPENDS+=		${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
85
POSTFIX_CCARGS+=	-DHAS_PCRE -I${LOCALBASE}/include
86
POSTFIX_AUXLIBS+=	${LOCALBASE}/lib/libpcre.a
87
PLIST_SUB+=		WITH_PCRE=""
88
.else
89
PLIST_SUB+=		WITH_PCRE="@comment "
90
.endif
91
60
92
.if defined(WITH_SASL)
61
pre-fetch:
93
CONF2+=			sample-auth.cf
62
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
94
BUILD_DEPENDS+=		${LOCALBASE}/lib/libsasl.a:${PORTSDIR}/security/cyrus-sasl
95
POSTFIX_CCARGS+=	-DUSE_SASL_AUTH -I${LOCALBASE}/include
96
POSTFIX_AUXLIBS+=	${LOCALBASE}/lib/libsasl.a -lpam -lcrypt
97
.if exists(/usr/lib/libkrb.a)
98
POSTFIX_AUXLIBS+=	-lkrb -ldes -lcom_err
99
.endif
100
PLIST_SUB+=		WITH_SASL=""
101
.else
102
PLIST_SUB+=		WITH_SASL="@comment "
103
.endif
104
63
105
.if defined(WITH_TLS)
64
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
106
CONF2+=			sample-tls.cf
65
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
107
BIN1+=			tlsmgr
108
POSTFIX_CCARGS+=	-DHAS_SSL -I/usr/include/openssl
109
POSTFIX_AUXLIBS+=	-lssl -lcrypto
110
DISTFILES+=		${DISTNAME}.tar.gz pfixtls-0.6.30-snap20001217-0.9.6.tar.gz
111
EXTRA_PATCHES+=		${WRKDIR}/pfixtls-0.6.30-snap20001217-0.9.6/pfixtls.diff
112
PATCH_STRIP=		-p1
113
PLIST_SUB+=		WITH_TLS=""
114
.else
115
PLIST_SUB+=		WITH_TLS="@comment "
116
.endif
66
.endif
117
67
118
post-patch:
68
post-patch:
119
	(cd ${WRKSRC} && make -f Makefile.init makefiles ${MAKEFILEFLAGS} \
69
	(cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles ${MAKEFILEFLAGS} \
120
	CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \
70
	CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \
121
	${ECHO} "all: default" >> Makefile)
71
	${ECHO} "all: default" >> Makefile)
122
72
Lines 198-203 Link Here
198
post-install:
148
post-install:
199
	@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
149
	@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
200
150
151
post-clean:
152
	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
153
201
.include <bsd.port.pre.mk>
154
.include <bsd.port.pre.mk>
202
155
203
replace:
156
replace:
Lines 209-217 Link Here
209
	${ECHO} ", named ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
162
	${ECHO} ", named ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
210
	${ECHO} "#" >> /etc/mail/mailer.conf
163
	${ECHO} "#" >> /etc/mail/mailer.conf
211
	${ECHO} "sendmail	${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
164
	${ECHO} "sendmail	${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
212
	${ECHO} "send-mail      ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
165
	${ECHO} "send-mail	${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
213
	${ECHO} "mailq          ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
166
	${ECHO} "mailq		${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
214
	${ECHO} "newaliases     ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
167
	${ECHO} "newaliases	${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
215
.else
168
.else
216
	@${ECHO_MSG} "===> Replacing sendmail"
169
	@${ECHO_MSG} "===> Replacing sendmail"
217
	@if [ -e /usr/sbin/sendmail ]; then \
170
	@if [ -e /usr/sbin/sendmail ]; then \
(-)postfix-current.1/pkg-plist (-8 / +8 lines)
Lines 5-23 Link Here
5
etc/postfix/sample-access
5
etc/postfix/sample-access
6
etc/postfix/sample-aliases
6
etc/postfix/sample-aliases
7
etc/postfix/sample-aliases.cf
7
etc/postfix/sample-aliases.cf
8
%%WITH_SASL%%etc/postfix/sample-auth.cf
8
%%SUB_SASL%%etc/postfix/sample-auth.cf
9
etc/postfix/sample-canonical
9
etc/postfix/sample-canonical
10
etc/postfix/sample-canonical.cf
10
etc/postfix/sample-canonical.cf
11
etc/postfix/sample-debug.cf
11
etc/postfix/sample-debug.cf
12
etc/postfix/sample-filter.cf
12
etc/postfix/sample-filter.cf
13
etc/postfix/sample-flush.cf
13
etc/postfix/sample-flush.cf
14
%%WITH_LDAP%%etc/postfix/sample-ldap.cf
14
%%SUB_LDAP%%etc/postfix/sample-ldap.cf
15
etc/postfix/sample-local.cf
15
etc/postfix/sample-local.cf
16
etc/postfix/sample-main.cf
16
etc/postfix/sample-main.cf
17
etc/postfix/sample-master.cf
17
etc/postfix/sample-master.cf
18
etc/postfix/sample-misc.cf
18
etc/postfix/sample-misc.cf
19
%%WITH_PCRE%%etc/postfix/sample-pcre.cf
19
%%SUB_PCRE%%etc/postfix/sample-pcre.cf
20
%%WITH_PCRE%%etc/postfix/sample-pcre_table
20
%%SUB_PCRE%%etc/postfix/sample-pcre_table
21
etc/postfix/sample-rate.cf
21
etc/postfix/sample-rate.cf
22
etc/postfix/sample-regexp.cf
22
etc/postfix/sample-regexp.cf
23
etc/postfix/sample-regexp_table
23
etc/postfix/sample-regexp_table
Lines 27-33 Link Here
27
etc/postfix/sample-rewrite.cf
27
etc/postfix/sample-rewrite.cf
28
etc/postfix/sample-smtp.cf
28
etc/postfix/sample-smtp.cf
29
etc/postfix/sample-smtpd.cf
29
etc/postfix/sample-smtpd.cf
30
%%WITH_TLS%%etc/postfix/sample-tls.cf
30
%%SUB_TLS%%etc/postfix/sample-tls.cf
31
etc/postfix/sample-transport
31
etc/postfix/sample-transport
32
etc/postfix/sample-transport.cf
32
etc/postfix/sample-transport.cf
33
etc/postfix/sample-virtual
33
etc/postfix/sample-virtual
Lines 47-53 Link Here
47
libexec/postfix/smtp
47
libexec/postfix/smtp
48
libexec/postfix/smtpd
48
libexec/postfix/smtpd
49
libexec/postfix/spawn
49
libexec/postfix/spawn
50
%%WITH_TLS%%libexec/postfix/tlsmgr
50
%%SUB_TLS%%libexec/postfix/tlsmgr
51
libexec/postfix/trivial-rewrite
51
libexec/postfix/trivial-rewrite
52
sbin/postalias
52
sbin/postalias
53
sbin/postcat
53
sbin/postcat
Lines 60-66 Link Here
60
sbin/postsuper
60
sbin/postsuper
61
sbin/postdrop
61
sbin/postdrop
62
sbin/sendmail
62
sbin/sendmail
63
%%WITH_TEST%%sbin/smtp-sink
63
%%SUB_TEST%%sbin/smtp-sink
64
%%WITH_TEST%%sbin/smtp-source
64
%%SUB_TEST%%sbin/smtp-source
65
@dirrm etc/postfix
65
@dirrm etc/postfix
66
@dirrm libexec/postfix
66
@dirrm libexec/postfix
(-)postfix-current.1/scripts/configure.postfix (+115 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD: $
3
4
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
5
	exit
6
fi
7
8
tempfile=`mktemp -t checklist`
9
10
if [ "${BATCH}" ]; then
11
	set \"PCRE\"
12
else
13
	/usr/bin/dialog --title "Postfix configuration options" --clear \
14
		--checklist "\n\
15
Please select desired options:" -1 -1 16 \
16
PCRE		"Perl Compatible Regular Expressions" ON \
17
SASL		"Cyrus SASL (Simple Authentication and Security Layer)" OFF \
18
DB3		"Berkeley DB3 (required if SASL also built with DB3)" OFF \
19
TLS		"Secure Sockets Layer and Transport Layer Security" OFF \
20
MySQL		"MySQL map lookups" OFF \
21
OpenLDAP	"OpenLDAP map lookups" OFF \
22
Test		"SMTP/LMTP test server and generator" OFF \
23
2> $tempfile
24
25
	retval=$?
26
27
	if [ -s $tempfile ]; then
28
		set `cat $tempfile`
29
	fi
30
	rm -f $tempfile
31
32
	case $retval in
33
		0)	if [ -z "$*" ]; then
34
				echo "Nothing selected"
35
			fi
36
			;;
37
		1)	echo "Cancel pressed."
38
			exit 1
39
			;;
40
	esac
41
fi
42
43
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
44
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
45
46
echo "PREFIX=	${PREFIX}"
47
48
SUB_PCRE="@comment "
49
SUB_SASL="@comment "
50
SUB_TLS="@comment "
51
SUB_LDAP="@comment "
52
SUB_TEST="@comment "
53
54
while [ "$1" ]; do
55
	case $1 in
56
		\"PCRE\")
57
			echo "CONF1+=		pcre_table"
58
			echo "CONF2+=		sample-pcre.cf"
59
			echo "MAN5+=		pcre_table.5"
60
			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libpcre.a:\${PORTSDIR}/devel/pcre"
61
			echo "POSTFIX_CCARGS+=	-DHAS_PCRE -I\${LOCALBASE}/include"
62
			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libpcre.a"
63
			SUB_PCRE=""
64
			;;
65
		\"SASL\")
66
			echo "CONF2+=		sample-auth.cf"
67
			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libsasl.a:\${PORTSDIR}/security/cyrus-sasl"
68
			echo "POSTFIX_CCARGS+=	-DUSE_SASL_AUTH -I\${LOCALBASE}/include"
69
			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libsasl.a -lpam -lcrypt"
70
			echo ".if exists(/usr/lib/libkrb.a)"
71
			echo "POSTFIX_AUXLIBS+=	-lkrb -ldes -lcom_err"
72
			echo ".endif"
73
			SUB_SASL=""
74
			;;
75
		\"TLS\")
76
			echo "CONF2+=		sample-tls.cf"
77
			echo "BIN1+=		tlsmgr"
78
			echo "POSTFIX_CCARGS+=	-DHAS_SSL -I/usr/include/openssl"
79
			echo "POSTFIX_AUXLIBS+=	-lssl -lcrypto"
80
			echo "DISTFILES+=	\${DISTNAME}.tar.gz pfixtls-0.6.30-snap20001217-0.9.6.tar.gz"
81
			echo "EXTRA_PATCHES+=	\${WRKDIR}/pfixtls-0.6.30-snap20001217-0.9.6/pfixtls.diff"
82
			echo "PATCH_STRIP=	-p1"
83
			SUB_TLS=""
84
			;;
85
		\"DB3\")
86
			echo "LIB_DEPENDS+=	db3.1:\${PORTSDIR}/databases/db3"
87
			echo "POSTFIX_CCARGS+=	-I\${LOCALBASE}/include/db3"
88
			echo "POSTFIX_AUXLIBS+=	-L\${LOCALBASE}/lib -ldb3"
89
			;;
90
		\"MySQL\")
91
			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql322-client"
92
			echo "POSTFIX_CCARGS+=	-DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
93
			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/mysql/libmysqlclient.a -lm"
94
			;;
95
		\"OpenLDAP\")
96
			echo "CONF2+=		sample-ldap.cf"
97
			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap"
98
			echo "POSTFIX_CCARGS+=	-DHAS_LDAP -I\${LOCALBASE}/include"
99
			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libldap.a \${PREFIX}/lib/liblber.a"
100
			SUB_LDAP=""
101
			;;
102
		\"Test\")
103
			echo "BIN3=		smtp-sink smtp-source"
104
			SUB_TEST=""
105
			;;
106
		*)
107
			echo "Invalid option(s): $*" > /dev/stderr
108
			rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
109
			exit 1
110
			;;
111
	esac
112
	shift
113
done
114
115
echo "PLIST_SUB=	SUB_PCRE=\"${SUB_PCRE}\" SUB_SASL=\"${SUB_SASL}\" SUB_TLS=\"${SUB_TLS}\" SUB_LDAP=\"${SUB_LDAP}\" SUB_TEST=\"${SUB_TEST}\""

Return to bug 24429