Update mail/postfix to 3.0.2. Database and regexp map functionality is now split into separate packages: - postfix-cdb - postfix-ldap - postfix-lmdb - postfix-mysql - postfix-pcre - postfix-pgsql - postfix-sqlite Upstream changelog follows. Postfix 3.0.2 ------------- No delta against 2.11.6. Postfix 3.0.1 ------------- - Build error when compiling the Postfix SMTP server with SASL support but no TLS support. - The DNS "resource record to text" converter, used for xxx_dns_reply_filter pattern matching, appended a '.' to TXT record resource values. - The postscreen(8) manpage specified an incorrect Postfix version number for the postscreen_dnsbl_timeout parameter. - The postfix-install script expanded macros in parameter values when trying to detect parameter overrides, causing unnecessary main.cf updates during "postfix start" etc. - Some low-level cleanup of UTF-8 string handling with no visible change in behavior (besides better performance). Postfix 3.0.0 ------------- - SMTPUTF8 support for internationalized domain names and address localparts as defined in RFC 6530 and related documents. - Support for Postfix dynamically-linked libraries and database plugins. - An OPT-IN safety net for the selective adoption of new Postfix default settings. If you do nothing, the old Postfix default settings *should* remain in effect (complain to your downstream maintainer if that is not the case). - Support for operations on multiple lookup tables. The pipemap:{map1,map2...} database type implements a pipeline of lookup tables where the result from one lookup table becomes a query for the next table; the unionmap:{map1,map2,...} database type sends thediff -r1.469 -r1.470 pkgsrc/mail/Makefile
(fhajny)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.469 2015/09/03 14:49:40 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.470 2015/09/07 09:47:01 fhajny Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | COMMENT= Electronic mail utilities | 4 | COMMENT= Electronic mail utilities | |
5 | 5 | |||
6 | SUBDIR+= GNUMail | 6 | SUBDIR+= GNUMail | |
7 | SUBDIR+= OSBF-lua | 7 | SUBDIR+= OSBF-lua | |
8 | SUBDIR+= Pantomime | 8 | SUBDIR+= Pantomime | |
9 | SUBDIR+= R-mime | 9 | SUBDIR+= R-mime | |
10 | SUBDIR+= YoSucker | 10 | SUBDIR+= YoSucker | |
11 | SUBDIR+= akonadi | 11 | SUBDIR+= akonadi | |
12 | SUBDIR+= alpine | 12 | SUBDIR+= alpine | |
13 | SUBDIR+= amavis-perl | 13 | SUBDIR+= amavis-perl | |
14 | SUBDIR+= amavisd-new | 14 | SUBDIR+= amavisd-new | |
@@ -251,26 +251,33 @@ SUBDIR+= perdition-ldap | @@ -251,26 +251,33 @@ SUBDIR+= perdition-ldap | |||
251 | SUBDIR+= perdition-mysql | 251 | SUBDIR+= perdition-mysql | |
252 | SUBDIR+= perdition-odbc | 252 | SUBDIR+= perdition-odbc | |
253 | SUBDIR+= perdition-postgresql | 253 | SUBDIR+= perdition-postgresql | |
254 | SUBDIR+= pfqueue | 254 | SUBDIR+= pfqueue | |
255 | SUBDIR+= php-imap | 255 | SUBDIR+= php-imap | |
256 | SUBDIR+= pine | 256 | SUBDIR+= pine | |
257 | SUBDIR+= pine-pgp-filters | 257 | SUBDIR+= pine-pgp-filters | |
258 | SUBDIR+= policyd | 258 | SUBDIR+= policyd | |
259 | SUBDIR+= policyd-weight | 259 | SUBDIR+= policyd-weight | |
260 | SUBDIR+= popa3d | 260 | SUBDIR+= popa3d | |
261 | SUBDIR+= poppassd | 261 | SUBDIR+= poppassd | |
262 | SUBDIR+= poppy | 262 | SUBDIR+= poppy | |
263 | SUBDIR+= postfix | 263 | SUBDIR+= postfix | |
264 | SUBDIR+= postfix-cdb | |||
265 | SUBDIR+= postfix-ldap | |||
266 | SUBDIR+= postfix-lmdb | |||
267 | SUBDIR+= postfix-mysql | |||
268 | SUBDIR+= postfix-pcre | |||
269 | SUBDIR+= postfix-pgsql | |||
270 | SUBDIR+= postfix-sqlite | |||
264 | SUBDIR+= postgrey | 271 | SUBDIR+= postgrey | |
265 | SUBDIR+= prayer | 272 | SUBDIR+= prayer | |
266 | SUBDIR+= procmail | 273 | SUBDIR+= procmail | |
267 | SUBDIR+= proxsmtp | 274 | SUBDIR+= proxsmtp | |
268 | SUBDIR+= pulsar | 275 | SUBDIR+= pulsar | |
269 | SUBDIR+= py-libgmail | 276 | SUBDIR+= py-libgmail | |
270 | SUBDIR+= py-sendmail-admin | 277 | SUBDIR+= py-sendmail-admin | |
271 | SUBDIR+= py-spf | 278 | SUBDIR+= py-spf | |
272 | SUBDIR+= py-validate-email-address | 279 | SUBDIR+= py-validate-email-address | |
273 | SUBDIR+= pymsgauth | 280 | SUBDIR+= pymsgauth | |
274 | SUBDIR+= qcheck | 281 | SUBDIR+= qcheck | |
275 | SUBDIR+= qgreylist | 282 | SUBDIR+= qgreylist | |
276 | SUBDIR+= qmHandle | 283 | SUBDIR+= qmHandle |
@@ -1,184 +1,79 @@ | @@ -1,184 +1,79 @@ | |||
1 | # $NetBSD: Makefile,v 1.285 2015/07/26 15:53:11 bsiegert Exp $ | 1 | # $NetBSD: Makefile,v 1.286 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | DISTNAME= postfix-2.11.6 | 3 | .include "../../mail/postfix/Makefile.common" | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= mail | |||
6 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | |||
7 | MASTER_SITES+= http://postfix.it-austria.net/releases/official/ | |||
8 | MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ | |||
9 | MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ | |||
10 | 4 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | |||
12 | HOMEPAGE= http://www.postfix.org/ | |||
13 | COMMENT= Postfix SMTP server and tools | 5 | COMMENT= Postfix SMTP server and tools | |
14 | # The postfix license has only very minor diffs from cpl-1.0. | |||
15 | LICENSE= cpl-1.0 | |||
16 | #LICENSE= postfix-license | |||
17 | 6 | |||
18 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | 7 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | |
19 | CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]* | 8 | CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]* | |
20 | 9 | |||
21 | USE_TOOLS+= perl | 10 | USE_TOOLS+= perl | |
22 | CHECK_HEADERS_SKIP+= src/global/mail_params.h | |||
23 | ||||
24 | .include "../../mk/bsd.prefs.mk" | |||
25 | 11 | |||
26 | SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555 | 12 | SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555 | |
27 | SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555 | 13 | SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555 | |
28 | 14 | |||
29 | # POSTFIX_QUEUE_DIR is the default queue directory for Postfix. This is | |||
30 | # merely a default, and may be changed by setting "queue_directory" in | |||
31 | # ${PKG_SYSCONFDIR}/main.cf. | |||
32 | # | |||
33 | POSTFIX_DATA_DIR?= ${VARBASE}/db/postfix | |||
34 | POSTFIX_QUEUE_DIR?= ${VARBASE}/spool/postfix | |||
35 | BUILD_DEFS+= VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR | |||
36 | ||||
37 | # CCARGS is a list of options to pass to the preprocessor/compiler. | |||
38 | # AUXLIBS is a list of options to pass to the linker. | |||
39 | CCARGS= #defined | |||
40 | AUXLIBS= ${LDFLAGS} | |||
41 | ||||
42 | # Enable Dovecot SASL | |||
43 | CCARGS+= -DUSE_SASL_AUTH | |||
44 | # Enable Berkeley DB map type. BDB_LIBS is defined in mk/bdb.buildlink3.mk. | |||
45 | CCARGS+= -DHAS_DB | |||
46 | AUXLIBS+= ${BDB_LIBS} | |||
47 | ||||
48 | # Set some default paths to override ${WRKSRC}/src/global/mail_params.h. | |||
49 | CCARGS+= -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\" | |||
50 | CCARGS+= -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\" | |||
51 | CCARGS+= -DDEF_DAEMON_DIR=\"${LIBEXECDIR}\" | |||
52 | CCARGS+= -DDEF_COMMAND_DIR=\"${PREFIX}/sbin\" | |||
53 | CCARGS+= -DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\" | |||
54 | CCARGS+= -DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\" | |||
55 | CCARGS+= -DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\" | |||
56 | CCARGS+= -DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\" | |||
57 | CCARGS+= -DDEF_MANPAGE_DIR=\"${PREFIX}/${PKGMANDIR}\" | |||
58 | CCARGS+= -DDEF_SAMPLE_DIR=\"${EXAMPLEDIR}\" | |||
59 | CCARGS+= -DDEF_README_DIR=\"${DOCDIR}\" | |||
60 | ||||
61 | REPLACE_PERL+= auxiliary/qshape/qshape.pl | 15 | REPLACE_PERL+= auxiliary/qshape/qshape.pl | |
62 | 16 | |||
63 | # Override those same default paths in the installed example main.cf. | |||
64 | SUBST_CLASSES+= postfix | |||
65 | SUBST_STAGE.postfix= post-configure | |||
66 | SUBST_FILES.postfix= conf/main.cf src/global/mail_params.h | |||
67 | SUBST_SED.postfix= \ | |||
68 | -e 's|^\(data_directory\) =.*|\1 = ${POSTFIX_DATA_DIR}|' | |||
69 | SUBST_SED.postfix+= \ | |||
70 | -e 's|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|' | |||
71 | SUBST_SED.postfix+= \ | |||
72 | -e 's|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|' | |||
73 | SUBST_SED.postfix+= \ | |||
74 | -e 's|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|' | |||
75 | SUBST_SED.postfix+= \ | |||
76 | -e 's|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|' | |||
77 | SUBST_SED.postfix+= \ | |||
78 | -e 's|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|' | |||
79 | SUBST_SED.postfix+= \ | |||
80 | -e 's|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|' | |||
81 | SUBST_SED.postfix+= \ | |||
82 | -e 's|^\(setgid_group\) =.*|\1 = maildrop|' | |||
83 | SUBST_SED.postfix+= \ | |||
84 | -e 's|^\(manpage_directory\) =.*|\1 = ${PREFIX}/${PKGMANDIR}|' | |||
85 | SUBST_SED.postfix+= \ | |||
86 | -e 's|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|' | |||
87 | SUBST_SED.postfix+= \ | |||
88 | -e 's|^\(readme_directory\) =.*|\1 = ${DOCDIR}|' | |||
89 | SUBST_SED.postfix+= \ | |||
90 | -e '/^\#define DEF_SGID_GROUP[ ]/s,postdrop,maildrop,g' | |||
91 | ||||
92 | # options.mk appends to CCARGS and AUXLIBS the options needed to build | 17 | # options.mk appends to CCARGS and AUXLIBS the options needed to build | |
93 | # Postfix with support for various add-on modules. | 18 | # Postfix with support for various add-on modules. | |
94 | # | 19 | # | |
95 | .include "options.mk" | 20 | .include "options.mk" | |
96 | 21 | |||
97 | PKG_SYSCONFSUBDIR= postfix | |||
98 | LIBEXECDIR= ${PREFIX}/libexec/postfix | |||
99 | DOCDIR= ${PREFIX}/share/doc/postfix | |||
100 | EXAMPLEDIR= ${PREFIX}/share/examples/postfix | |||
101 | ||||
102 | FILES_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | 22 | FILES_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | |
103 | MESSAGE_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | 23 | MESSAGE_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | |
104 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} | 24 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} | |
105 | 25 | |||
106 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE | 26 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE | |
107 | .if exists(${PKGDIR}/MESSAGE.${OPSYS}) | 27 | .if exists(${PKGDIR}/MESSAGE.${OPSYS}) | |
108 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS} | 28 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS} | |
109 | .endif | 29 | .endif | |
110 | PLIST_SRC+= ${PKGDIR}/PLIST | 30 | PLIST_SRC+= ${PKGDIR}/PLIST | |
111 | 31 | |||
112 | BUILD_TARGET= # empty | |||
113 | MAKE_ENV+= CC=${CC:Q} OPT=${CFLAGS:Q} | |||
114 | MAKE_ENV+= AUXLIBS=${AUXLIBS:Q} CCARGS=${CCARGS:Q} | |||
115 | ||||
116 | RCD_SCRIPTS= postfix | 32 | RCD_SCRIPTS= postfix | |
117 | OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc | 33 | OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc | |
118 | OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} postfix postfix 0700 | 34 | OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} postfix postfix 0700 | |
119 | MAKE_DIRS+= ${PKG_SYSCONFDIR} | 35 | MAKE_DIRS+= ${METADIR}/dynamicmaps.cf.d ${METADIR}/postfix-files.d | |
120 | 36 | |||
121 | PKG_GROUPS?= postfix maildrop | 37 | PKG_GROUPS?= postfix maildrop | |
122 | PKG_USERS?= postfix:postfix | 38 | PKG_USERS?= postfix:postfix | |
123 | PKG_GECOS.postfix= Postfix User | 39 | PKG_GECOS.postfix= Postfix User | |
124 | PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} | 40 | PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} | |
125 | 41 | |||
126 | CONF_FILES= # empty | 42 | CONF_FILES= # empty | |
127 | .for i in main.cf master.cf | 43 | .for i in main.cf master.cf | |
128 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | 44 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | |
129 | .endfor | 45 | .endfor | |
130 | CONF_FILES_PERMS= # empty | 46 | CONF_FILES_PERMS= # empty | |
131 | 47 | |||
132 | MAKE_ENV+= DEBUG= # empty | |||
133 | ||||
134 | SUBST_CLASSES+= paths | 48 | SUBST_CLASSES+= paths | |
135 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | 49 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | |
136 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | 50 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | |
137 | SUBST_STAGE.paths= post-patch | 51 | SUBST_STAGE.paths= post-patch | |
138 | 52 | |||
139 | .if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h) | 53 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${METADIR} ${SHLIBDIR} ${EXAMPLEDIR} ${DOCDIR} | |
140 | SUBST_CLASSES+= nis | |||
141 | SUBST_FILES.nis= src/util/sys_defs.h | |||
142 | SUBST_MESSAGE.nis= Working around dropped support for NIS+ on SunOS | |||
143 | SUBST_STAGE.nis= post-patch | |||
144 | SUBST_SED.nis= -e 's,\#define HAS_NISPLUS,\#undef HAS_NISPLUS,g' | |||
145 | .endif | |||
146 | ||||
147 | CFLAGS.SunOS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 | |||
148 | ||||
149 | .if !empty(USE_DESTDIR:M[Yy][Ee][Ss]) | |||
150 | DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}" | |||
151 | .endif | |||
152 | ||||
153 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR} | |||
154 | 54 | |||
155 | post-extract: | 55 | post-extract: | |
156 | cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | 56 | cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | |
157 | rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | 57 | rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | |
158 | 58 | |||
159 | do-configure: | |||
160 | cd ${WRKSRC} && \ | |||
161 | env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \ | |||
162 | 'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}' | |||
163 | ||||
164 | post-build: | 59 | post-build: | |
165 | .if !empty(PKG_OPTIONS:Msasl) | 60 | .if !empty(PKG_OPTIONS:Msasl) | |
166 | ${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf | 61 | ${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf | |
167 | .endif | 62 | .endif | |
168 | 63 | |||
169 | do-install: | 64 | do-install: | |
170 | rm -f ${WRKSRC}/conf/*.orig | 65 | rm -f ${WRKSRC}/conf/*.orig | |
171 | .if !empty(PKG_OPTIONS:Msasl) | 66 | .if !empty(PKG_OPTIONS:Msasl) | |
172 | ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR} | 67 | ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR} | |
173 | .endif | 68 | .endif | |
174 | cd ${WRKSRC} && sh ./postfix-install -non-interactive \ | 69 | cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/lib sh \ | |
70 | ./postfix-install -non-interactive \ | |||
175 | ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}" | 71 | ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}" | |
176 | ${INSTALL_DATA} ${WRKDIR}/mailer.conf \ | 72 | ${INSTALL_DATA} ${WRKDIR}/mailer.conf \ | |
177 | ${DESTDIR}${EXAMPLEDIR}/mailer.conf | 73 | ${DESTDIR}${EXAMPLEDIR}/mailer.conf | |
178 | ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \ | 74 | ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \ | |
179 | ${DESTDIR}${PREFIX}/sbin/qshape | 75 | ${DESTDIR}${PREFIX}/sbin/qshape | |
180 | ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \ | 76 | ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \ | |
181 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 77 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
182 | 78 | |||
183 | .include "../../mk/bdb.buildlink3.mk" | |||
184 | .include "../../mk/bsd.pkg.mk" | 79 | .include "../../mk/bsd.pkg.mk" |
# $NetBSD: Makefile.common,v 1.1 2015/09/07 09:47:01 fhajny Exp $
# used by mail/postfix/Makefile
# used by mail/postfix/Makefile.module
DISTNAME= postfix-3.0.2
CATEGORIES= mail
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/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.postfix.org/
# The postfix license has only very minor diffs from cpl-1.0.
LICENSE= cpl-1.0
#LICENSE= postfix-license
DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo
PATCHDIR= ${PKGDIR}/../../mail/postfix/patches
CHECK_HEADERS_SKIP+= src/global/mail_params.h
.include "../../mk/bsd.prefs.mk"
# 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= #defined
AUXLIBS= ${LDFLAGS}
# Enable Dovecot SASL
CCARGS+= -DUSE_SASL_AUTH
# Enable Berkeley DB map type. BDB_LIBS is defined in mk/bdb.buildlink3.mk.
CCARGS+= -DHAS_DB
AUXLIBS+= ${BDB_LIBS}
# Disable modules by default
.for module in cdb ldap lmdb mysql pcre pgsql sqlite
CCARGS+= -DNO_${module:tu}
.endfor
# Set some default paths to override ${WRKSRC}/src/global/mail_params.h.
CCARGS+= -DDEF_COMMAND_DIR=\"${PREFIX}/sbin\"
CCARGS+= -DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\"
CCARGS+= -DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
CCARGS+= -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\"
CCARGS+= -DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\"
CCARGS+= -DDEF_MANPAGE_DIR=\"${PREFIX}/${PKGMANDIR}\"
CCARGS+= -DDEF_META_DIR=\"${PREFIX}/${METADIR}\"
CCARGS+= -DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\"
CCARGS+= -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\"
CCARGS+= -DDEF_README_DIR=\"${DOCDIR}\"
CCARGS+= -DDEF_SAMPLE_DIR=\"${EXAMPLEDIR}\"
CCARGS+= -DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\"
CCARGS+= -DDEF_SHLIB_DIR=\"${PREFIX}/${SHLIBDIR}\"
# 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|^\(meta_directory\) =.*|\1 = ${PREFIX}/${METADIR}|'
SUBST_SED.postfix+= \
-e 's|^\(shlib_directory\) =.*|\1 = ${PREFIX}/${SHLIBDIR}|'
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'
PKG_SYSCONFSUBDIR= postfix
LIBEXECDIR= ${PREFIX}/libexec/postfix
DOCDIR= ${PREFIX}/share/doc/postfix
EXAMPLEDIR= ${PREFIX}/share/examples/postfix
# Not prefixed so that we can use where relative path needed
# METADIR set for postfix-2.6.x compatibility
METADIR= libexec/postfix
SHLIBDIR= lib/postfix
BUILD_TARGET= # empty
MAKE_ENV+= CC=${CC:Q} OPT=${CFLAGS:Q}
MAKE_ENV+= AUXLIBS=${AUXLIBS:Q} CCARGS=${CCARGS:Q}
MAKE_ENV+= DEBUG= # empty
.if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h)
CCARGS+= -DNO_NISPLUS
.endif
CFLAGS.SunOS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
.if !empty(USE_DESTDIR:M[Yy][Ee][Ss])
DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}"
.endif
do-configure:
cd ${WRKSRC} && \
env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \
'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}' \
shared=yes dynamicmaps=yes
.include "../../mk/bdb.buildlink3.mk"
# $NetBSD: Makefile.module,v 1.1 2015/09/07 09:47:01 fhajny Exp $
# used by mail/postfix-cdb/Makefile
# used by mail/postfix-ldap/Makefile
# used by mail/postfix-lmdb/Makefile
# used by mail/postfix-mysql/Makefile
# used by mail/postfix-pcre/Makefile
# used by mail/postfix-pgsql/Makefile
# used by mail/postfix-sqlite/Makefile
PKGNAME= ${DISTNAME:S/postfix/postfix-${POSTFIX_LIB}/}
.include "../../mail/postfix/Makefile.common"
DEPENDS+= postfix-${PKGVERSION_NOREV}{,nb[0-9]*}:../../mail/postfix
CCARGS+= -DHAS_${POSTFIX_LIB:tu}
MAKE_ENV+= AUXLIBS_${POSTFIX_LIB:tu}=${AUXLIBS_MODULE:Q}
# Define functionality to populate dynamicmaps.cf
POSTFIX_LIBFILE= postfix-${POSTFIX_LIB}.so
.if !empty(POSTFIX_LIB_DICT:Myes)
POSTFIX_LIB_FUNCS+= dict_${POSTFIX_LIB}_open
.endif
.if !empty(POSTFIX_LIB_MKMAP:Myes)
POSTFIX_LIB_FUNCS+= mkmap_${POSTFIX_LIB}_open
.endif
INSTALLATION_DIRS+= ${SHLIBDIR}
INSTALLATION_DIRS+= ${METADIR}/dynamicmaps.cf.d ${METADIR}/postfix-files.d
GENERATE_PLIST+= ${ECHO} "${SHLIBDIR}/${POSTFIX_LIBFILE}";
GENERATE_PLIST+= ${ECHO} "${METADIR}/dynamicmaps.cf.d/${POSTFIX_LIB}.cf";
GENERATE_PLIST+= ${ECHO} "${METADIR}/postfix-files.d/${POSTFIX_LIB}.cf";
do-build:
cd ${WRKSRC}/src/util && ${BUILD_MAKE_CMD} update
cd ${WRKSRC}/${POSTFIX_LIBDIR} && ${BUILD_MAKE_CMD} ${POSTFIX_LIBFILE}
do-install:
${INSTALL_LIB} ${WRKSRC}/${POSTFIX_LIBDIR}/${POSTFIX_LIBFILE} \
${DESTDIR}${PREFIX}/${SHLIBDIR}
${ECHO} "${POSTFIX_LIB} ${POSTFIX_LIBFILE} ${POSTFIX_LIB_FUNCS}" > \
${DESTDIR}${PREFIX}/${METADIR}/dynamicmaps.cf.d/${POSTFIX_LIB}.cf
( ${ECHO} "\$$shlib_directory/${POSTFIX_LIBFILE}:f:root:-:755"; \
${ECHO} "\$$meta_directory/dynamicmaps.cf.d/${POSTFIX_LIB}.cf:f:root:-:644"; \
${ECHO} "\$$meta_directory/postfix-files.d/${POSTFIX_LIB}.cf:f:root:-:644"; ) \
> ${DESTDIR}${PREFIX}/${METADIR}/postfix-files.d/${POSTFIX_LIB}.cf
@@ -1,28 +1,35 @@ | @@ -1,28 +1,35 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.28 2014/03/11 14:05:04 jperkin Exp $ | 1 | @comment $NetBSD: PLIST,v 1.29 2015/09/07 09:47:01 fhajny Exp $ | |
2 | bin/mailq | 2 | bin/mailq | |
3 | bin/newaliases | 3 | bin/newaliases | |
4 | lib/postfix/libpostfix-dns.so | |||
5 | lib/postfix/libpostfix-global.so | |||
6 | lib/postfix/libpostfix-master.so | |||
7 | lib/postfix/libpostfix-tls.so | |||
8 | lib/postfix/libpostfix-util.so | |||
4 | libexec/postfix/anvil | 9 | libexec/postfix/anvil | |
5 | libexec/postfix/bounce | 10 | libexec/postfix/bounce | |
6 | libexec/postfix/cleanup | 11 | libexec/postfix/cleanup | |
7 | libexec/postfix/discard | 12 | libexec/postfix/discard | |
8 | libexec/postfix/dnsblog | 13 | libexec/postfix/dnsblog | |
14 | libexec/postfix/dynamicmaps.cf | |||
9 | libexec/postfix/error | 15 | libexec/postfix/error | |
10 | libexec/postfix/flush | 16 | libexec/postfix/flush | |
11 | libexec/postfix/lmtp | 17 | libexec/postfix/lmtp | |
12 | libexec/postfix/local | 18 | libexec/postfix/local | |
13 | libexec/postfix/main.cf | 19 | libexec/postfix/main.cf.proto | |
20 | libexec/postfix/makedefs.out | |||
14 | libexec/postfix/master | 21 | libexec/postfix/master | |
15 | libexec/postfix/master.cf | 22 | libexec/postfix/master.cf.proto | |
16 | libexec/postfix/nqmgr | 23 | libexec/postfix/nqmgr | |
17 | libexec/postfix/oqmgr | 24 | libexec/postfix/oqmgr | |
18 | libexec/postfix/pickup | 25 | libexec/postfix/pickup | |
19 | libexec/postfix/pipe | 26 | libexec/postfix/pipe | |
20 | libexec/postfix/post-install | 27 | libexec/postfix/post-install | |
21 | libexec/postfix/postfix-files | 28 | libexec/postfix/postfix-files | |
22 | libexec/postfix/postfix-script | 29 | libexec/postfix/postfix-script | |
23 | libexec/postfix/postfix-wrapper | 30 | libexec/postfix/postfix-wrapper | |
24 | libexec/postfix/postmulti-script | 31 | libexec/postfix/postmulti-script | |
25 | libexec/postfix/postscreen | 32 | libexec/postfix/postscreen | |
26 | libexec/postfix/proxymap | 33 | libexec/postfix/proxymap | |
27 | libexec/postfix/qmgr | 34 | libexec/postfix/qmgr | |
28 | libexec/postfix/qmqpd | 35 | libexec/postfix/qmqpd | |
@@ -176,19 +183,18 @@ share/doc/postfix/VIRTUAL_README | @@ -176,19 +183,18 @@ share/doc/postfix/VIRTUAL_README | |||
176 | share/doc/postfix/XCLIENT_README | 183 | share/doc/postfix/XCLIENT_README | |
177 | share/doc/postfix/XFORWARD_README | 184 | share/doc/postfix/XFORWARD_README | |
178 | share/examples/postfix/LICENSE | 185 | share/examples/postfix/LICENSE | |
179 | share/examples/postfix/TLS_LICENSE | 186 | share/examples/postfix/TLS_LICENSE | |
180 | share/examples/postfix/access | 187 | share/examples/postfix/access | |
181 | share/examples/postfix/aliases | 188 | share/examples/postfix/aliases | |
182 | share/examples/postfix/bounce.cf.default | 189 | share/examples/postfix/bounce.cf.default | |
183 | share/examples/postfix/canonical | 190 | share/examples/postfix/canonical | |
184 | share/examples/postfix/generic | 191 | share/examples/postfix/generic | |
185 | share/examples/postfix/header_checks | 192 | share/examples/postfix/header_checks | |
186 | share/examples/postfix/mailer.conf | 193 | share/examples/postfix/mailer.conf | |
187 | share/examples/postfix/main.cf | 194 | share/examples/postfix/main.cf | |
188 | share/examples/postfix/main.cf.default | 195 | share/examples/postfix/main.cf.default | |
189 | share/examples/postfix/makedefs.out | |||
190 | share/examples/postfix/master.cf | 196 | share/examples/postfix/master.cf | |
191 | share/examples/postfix/relocated | 197 | share/examples/postfix/relocated | |
192 | ${PLIST.csasl}share/examples/postfix/smtpd.conf | 198 | ${PLIST.csasl}share/examples/postfix/smtpd.conf | |
193 | share/examples/postfix/transport | 199 | share/examples/postfix/transport | |
194 | share/examples/postfix/virtual | 200 | share/examples/postfix/virtual |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.160 2015/07/22 00:25:37 taca Exp $ | 1 | $NetBSD: distinfo,v 1.161 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (postfix-2.11.6.tar.gz) = 005f84264ae8fa6989181bc61b756a0fd8e99dfa | 3 | SHA1 (postfix-3.0.2.tar.gz) = 9d75ca3c207441a38a79a2c8ceaa398c2b9cdc4e | |
4 | RMD160 (postfix-2.11.6.tar.gz) = 54a35e148ec169d86528857484e002e9326dc56e | 4 | RMD160 (postfix-3.0.2.tar.gz) = aba1e9decc1aa9aa0c0b68f2bb7f0432b75fabdf | |
5 | Size (postfix-2.11.6.tar.gz) = 4030414 bytes | 5 | Size (postfix-3.0.2.tar.gz) = 4239235 bytes | |
6 | SHA1 (patch-aa) = 6f7dc14d53e914e9cb72752fb3941c569cd2e8f9 | 6 | SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111 | |
7 | SHA1 (patch-ag) = 2f96a679e7f0c2e36615f5e7993ab96296303a10 | 7 | SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58 | |
8 | SHA1 (patch-ai) = de5985d9fd6a81ea74b69224c82c665cd311c0c7 | 8 | SHA1 (patch-ai) = d515202c3bba755067bcb057714cb21453d15d75 | |
9 | SHA1 (patch-src_dns_dns__lookup.c) = 9c26686e5abd9aee36f042440e5f6a6ffca3df4a | 9 | SHA1 (patch-src_dns_dns__lookup.c) = 9c26686e5abd9aee36f042440e5f6a6ffca3df4a |
@@ -1,86 +1,34 @@ | @@ -1,86 +1,34 @@ | |||
1 | # $NetBSD: options.mk,v 1.38 2015/04/17 02:22:52 hiramatsu Exp $ | 1 | # $NetBSD: options.mk,v 1.39 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | # Global and legacy options | 3 | # Global and legacy options | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.postfix | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.postfix | |
6 | PKG_SUPPORTED_OPTIONS= ldap mysql pcre pgsql sasl sqlite tls cdb | 6 | PKG_SUPPORTED_OPTIONS= sasl tls eai | |
7 | PKG_SUGGESTED_OPTIONS= tls | 7 | PKG_SUGGESTED_OPTIONS= tls | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | ### | 11 | ### | |
12 | ### STARTTLS support | 12 | ### STARTTLS support | |
13 | ### | 13 | ### | |
14 | .if !empty(PKG_OPTIONS:Mtls) | 14 | .if !empty(PKG_OPTIONS:Mtls) | |
15 | . include "../../security/openssl/buildlink3.mk" | 15 | . include "../../security/openssl/buildlink3.mk" | |
16 | CCARGS+= -DUSE_TLS | 16 | CCARGS+= -DUSE_TLS | |
17 | AUXLIBS+= -L${BUILDLINK_PREFIX.openssl}/lib \ | 17 | AUXLIBS+= -L${BUILDLINK_PREFIX.openssl}/lib \ | |
18 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib \ | 18 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib \ | |
19 | -lssl -lcrypto | 19 | -lssl -lcrypto | |
20 | .endif | |||
21 | ||||
22 | ### | |||
23 | ### Support "pcre" map type for regular expressions. | |||
24 | ### | |||
25 | .if !empty(PKG_OPTIONS:Mpcre) | |||
26 | . include "../../devel/pcre/buildlink3.mk" | |||
27 | CCARGS+= -DHAS_PCRE | |||
28 | AUXLIBS+= -L${BUILDLINK_PREFIX.pcre}/lib \ | |||
29 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib \ | |||
30 | -lpcre | |||
31 | .else | 20 | .else | |
32 | CCARGS+= -DNO_PCRE | 21 | CCARGS+= -DNO_TLS | |
33 | .endif | |||
34 | ||||
35 | ### | |||
36 | ### Support LDAP directories for table lookups. | |||
37 | ### | |||
38 | .if !empty(PKG_OPTIONS:Mldap) | |||
39 | . include "../../databases/openldap-client/buildlink3.mk" | |||
40 | CCARGS+= -DHAS_LDAP | |||
41 | AUXLIBS+= -L${BUILDLINK_PREFIX.openldap-client}/lib \ | |||
42 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openldap-client}/lib \ | |||
43 | -lldap -llber | |||
44 | .endif | |||
45 | ||||
46 | ### | |||
47 | ### Support using a MySQL database server for table lookups. | |||
48 | ### | |||
49 | .if !empty(PKG_OPTIONS:Mmysql) | |||
50 | . include "../../mk/mysql.buildlink3.mk" | |||
51 | CCARGS+= -DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql | |||
52 | AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \ | |||
53 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql \ | |||
54 | -lmysqlclient -lz -lm | |||
55 | .endif | |||
56 | ||||
57 | ### | |||
58 | ### Support using a PostgreSQL database server for table lookups. | |||
59 | ### | |||
60 | .if !empty(PKG_OPTIONS:Mpgsql) | |||
61 | . include "../../mk/pgsql.buildlink3.mk" | |||
62 | CCARGS+= -DHAS_PGSQL -I${PGSQL_PREFIX}/include/pgsql | |||
63 | AUXLIBS+= -L${PGSQL_PREFIX}/lib -lpq | |||
64 | .endif | |||
65 | ||||
66 | ### | |||
67 | ### Support using a SQLite database for table lookups. | |||
68 | ### See http://www.treibsand.com/postfix-sqlite/ | |||
69 | ### | |||
70 | .if !empty(PKG_OPTIONS:Msqlite) | |||
71 | . include "../../databases/sqlite3/buildlink3.mk" | |||
72 | CCARGS+= -DHAS_SQLITE -I${SQLITE3_PREFIX}/include/sqlite3 | |||
73 | AUXLIBS+= -L${SQLITE3_PREFIX}/lib -lsqlite3 | |||
74 | .endif | 22 | .endif | |
75 | 23 | |||
76 | ### | 24 | ### | |
77 | ### Cyrus SASL support for SMTP authentication. | 25 | ### Cyrus SASL support for SMTP authentication. | |
78 | ### (Dovecot SASL support is built in by default.) | 26 | ### (Dovecot SASL support is built in by default.) | |
79 | ### | 27 | ### | |
80 | PLIST_VARS+= csasl | 28 | PLIST_VARS+= csasl | |
81 | .if !empty(PKG_OPTIONS:Msasl) | 29 | .if !empty(PKG_OPTIONS:Msasl) | |
82 | . include "../../security/cyrus-sasl/buildlink3.mk" | 30 | . include "../../security/cyrus-sasl/buildlink3.mk" | |
83 | BUILDLINK_INCDIRS.cyrus-sasl= include/sasl | 31 | BUILDLINK_INCDIRS.cyrus-sasl= include/sasl | |
84 | SASLLIBDIR= ${PREFIX}/lib/sasl2 | 32 | SASLLIBDIR= ${PREFIX}/lib/sasl2 | |
85 | PWCHECK_METHOD= auxprop | 33 | PWCHECK_METHOD= auxprop | |
86 | CCARGS+= -DUSE_CYRUS_SASL | 34 | CCARGS+= -DUSE_CYRUS_SASL | |
@@ -88,22 +36,23 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sas | @@ -88,22 +36,23 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sas | |||
88 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | 36 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | |
89 | -lsasl2 | 37 | -lsasl2 | |
90 | PLIST.csasl= yes | 38 | PLIST.csasl= yes | |
91 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.sasl | 39 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.sasl | |
92 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | 40 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | |
93 | MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR} | 41 | MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR} | |
94 | MAKE_DIRS+= ${SASLLIBDIR} | 42 | MAKE_DIRS+= ${SASLLIBDIR} | |
95 | CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf | 43 | CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf | |
96 | .else | 44 | .else | |
97 | CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\" | 45 | CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\" | |
98 | .endif | 46 | .endif | |
99 | 47 | |||
100 | ### | 48 | ### | |
101 | ### Support CDB (Constant Database) map type. | 49 | ### EAI (Email Address Internationalization) support (SMTPUTF8) | |
102 | ### | 50 | ### | |
103 | .if !empty(PKG_OPTIONS:Mcdb) | 51 | .if !empty(PKG_OPTIONS:Meai) | |
104 | . include "../../databases/tinycdb/buildlink3.mk" | 52 | . include "../../textproc/icu/buildlink3.mk" | |
105 | CCARGS+= -DHAS_CDB | 53 | CCARGS+= -DHAS_EAI -I${BUILDLINK_PREFIX.icu}/include | |
106 | AUXLIBS+= -L${BUILDLINK_PREFIX.tinycdb}/lib \ | 54 | AUXLIBS+= -L${BUILDLINK_PREFIX.icu}/lib -licuuc \ | |
107 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib \ | 55 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.icu}/lib | |
108 | -lcdb | 56 | .else | |
57 | CCARGS+= -DNO_EAI | |||
109 | .endif | 58 | .endif |
Postfix SMTP server cdb backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server cdb backend module
POSTFIX_LIB= cdb
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= yes
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.tinycdb}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.tinycdb}/lib -lcdb \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib
.include "../../databases/tinycdb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server LDAP backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server LDAP backend module
POSTFIX_LIB= ldap
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= no
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.openldap-client}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.openldap-client}/lib -lldap -llber \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openldap-client}/lib
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server LMDB backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server LMDB backend module
POSTFIX_LIB= lmdb
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= yes
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.lmdb}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.lmdb}/lib -llmdb \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.}/lib
.include "../../databases/lmdb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server MySQL backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server MySQL backend module
POSTFIX_LIB= mysql
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= no
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.mysql-client}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.mysql-client}/lib -lmysqlclient \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.}/lib
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server PCRE map module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server PCRE map module
POSTFIX_LIB= pcre
POSTFIX_LIBDIR= src/util
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= no
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.pcre}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.pcre}/lib -lpcre \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.}/lib
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server PostgreSQL backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server PostgreSQL backend module
POSTFIX_LIB= pgsql
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= no
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${PGSQL_PREFIX}/include
AUXLIBS_MODULE= -L${PGSQL_PREFIX}/lib -lpq \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.}/lib
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Postfix SMTP server SQLite backend module
# $NetBSD: Makefile,v 1.1 2015/09/07 09:47:02 fhajny Exp $
#
COMMENT= Postfix SMTP server SQLite backend module
POSTFIX_LIB= sqlite
POSTFIX_LIBDIR= src/global
POSTFIX_LIB_DICT= yes
POSTFIX_LIB_MKMAP= no
.include "../../mail/postfix/Makefile.module"
CCARGS+= -I${BUILDLINK_PREFIX.sqlite3}/include
AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3 \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.}/lib
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@@ -1,44 +1,47 @@ | @@ -1,44 +1,47 @@ | |||
1 | $NetBSD: patch-aa,v 1.23 2014/02/09 05:34:13 taca Exp $ | 1 | $NetBSD: patch-aa,v 1.24 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | Make this pkgsrc friendly. | 3 | Make this pkgsrc friendly. | |
4 | 4 | |||
5 | --- postfix-install.orig 2012-05-22 19:40:29.000000000 +0000 | 5 | --- postfix-install.orig 2015-01-29 22:15:30.000000000 +0000 | |
6 | +++ postfix-install | 6 | +++ postfix-install | |
7 | @@ -370,26 +370,6 @@ HTML files. Specify \"no\" if you do not | 7 | @@ -436,26 +436,6 @@ template files main.cf.proto and master. | |
8 | : ${tempdir=`pwd`} | 8 | : ${tempdir=`pwd`} | |
9 | : ${config_directory=`bin/postconf -c conf -h -d config_directory`} | 9 | : ${config_directory=`bin/postconf -c conf -h -d config_directory`} | |
10 | 10 | |||
11 | -# Find out the location of installed configuration files. | 11 | -# Find out the location of installed configuration files. | |
12 | - | 12 | - | |
13 | -test -z "$non_interactive" && for name in install_root tempdir config_directory | 13 | -test -z "$non_interactive" && for name in install_root tempdir config_directory | |
14 | -do | 14 | -do | |
15 | - while : | 15 | - while : | |
16 | - do | 16 | - do | |
17 | - echo | 17 | - echo | |
18 | - eval echo Please specify \$${name}_prompt | ${FMT} | 18 | - eval echo Please specify \$${name}_prompt | ${FMT} | |
19 | - eval echo \$n "$name: [\$$name]\ \$c" | 19 | - eval echo \$n "$name: [\$$name]\ \$c" | |
20 | - read ans | 20 | - read ans | |
21 | - case $ans in | 21 | - case $ans in | |
22 | - "") break;; | 22 | - "") break;; | |
23 | - *) case $ans in | 23 | - *) case $ans in | |
24 | - /*) eval $name=$ans; break;; | 24 | - /*) eval $name=$ans; break;; | |
25 | - *) echo; echo $0: Error: $name should be an absolute path name. 1>&2;; | 25 | - *) echo; echo $0: Error: $name should be an absolute path name. 1>&2;; | |
26 | - esac;; | 26 | - esac;; | |
27 | - esac | 27 | - esac | |
28 | - done | 28 | - done | |
29 | -done | 29 | -done | |
30 | - | 30 | - | |
31 | # In case some systems special-case pathnames beginning with //. | 31 | # In case some systems special-case pathnames beginning with //. | |
32 | 32 | |||
33 | case $install_root in | 33 | case $install_root in | |
34 | @@ -744,10 +724,3 @@ bin/postconf -c $CONFIG_DIRECTORY -e \ | 34 | @@ -847,13 +827,3 @@ bin/postconf -c $CONFIG_DIRECTORY -e \ | |
35 | "sample_directory = $sample_directory" \ | 35 | "shlib_directory = $shlib_directory" \ | |
36 | "readme_directory = $readme_directory" \ | 36 | "meta_directory = $meta_directory" \ | |
37 | || exit 1 | 37 | || exit 1 | |
38 | - | 38 | - | |
39 | -# If Postfix is being installed locally from source code, do the | 39 | -# If Postfix is being installed locally from source code, do the | |
40 | -# post-install processing now. | 40 | -# post-install processing now. | |
41 | - | 41 | - | |
42 | -# The unexpansion above may have side effects on exported variables. | |||
43 | -# It does not matter because bin/postfix below will override them. | |||
44 | - | |||
42 | -test -n "$install_root" || { | 45 | -test -n "$install_root" || { | |
43 | - bin/postfix post-install $post_install_options || exit 1 | 46 | - bin/postfix post-install $post_install_options || exit 1 | |
44 | -} | 47 | -} |
@@ -1,34 +1,26 @@ | @@ -1,34 +1,26 @@ | |||
1 | $NetBSD: patch-ag,v 1.35 2014/08/25 16:00:54 taca Exp $ | 1 | $NetBSD: patch-ag,v 1.36 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | * Add support for NetBSD 7. | 3 | * Add support for NetBSD 7. | |
4 | * Only define HAS_DB if it hasn't been defined. | 4 | * Only define HAS_DB if it hasn't been defined. | |
5 | 5 | |||
6 | --- src/util/sys_defs.h.orig 2013-09-29 20:51:55.000000000 +0000 | 6 | --- src/util/sys_defs.h.orig 2015-07-18 13:28:17.000000000 +0000 | |
7 | +++ src/util/sys_defs.h | 7 | +++ src/util/sys_defs.h | |
8 | @@ -31,6 +31,7 @@ | 8 | @@ -45,7 +45,9 @@ | |
9 | || defined(OPENBSD5) \ | |||
10 | || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \ | |||
11 | || defined(NETBSD4) || defined(NETBSD5) || defined(NETBSD6) \ | |||
12 | + || defined(NETBSD7) \ | |||
13 | || defined(EKKOBSD1) || defined(DRAGONFLY) | |||
14 | #define SUPPORTED | |||
15 | #include <sys/types.h> | |||
16 | @@ -44,7 +45,9 @@ | |||
17 | #define DEF_MAILBOX_LOCK "flock, dotlock" | 9 | #define DEF_MAILBOX_LOCK "flock, dotlock" | |
18 | #define HAS_SUN_LEN | 10 | #define HAS_SUN_LEN | |
19 | #define HAS_FSYNC | 11 | #define HAS_FSYNC | |
20 | +#ifndef HAS_DB | 12 | +#ifndef HAS_DB | |
21 | #define HAS_DB | 13 | #define HAS_DB | |
22 | +#endif | 14 | +#endif | |
23 | #define HAS_SA_LEN | 15 | #define HAS_SA_LEN | |
24 | #define NATIVE_DB_TYPE "hash" | 16 | #define NATIVE_DB_TYPE "hash" | |
25 | #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000) | 17 | #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000) | |
26 | @@ -1265,6 +1268,8 @@ extern int h_errno; | 18 | @@ -1267,6 +1269,8 @@ extern int h_errno; | |
27 | #define DEF_SMTP_CACHE_DEMAND 0 | 19 | #define DEF_SMTP_CACHE_DEMAND 0 | |
28 | #endif | 20 | #endif | |
29 | 21 | |||
30 | +#define RECEIVED_ENVELOPE_FROM | 22 | +#define RECEIVED_ENVELOPE_FROM | |
31 | + | 23 | + | |
32 | /* | 24 | /* | |
33 | * We're not going to try to guess like configure does. | 25 | * We're not going to try to guess like configure does. | |
34 | */ | 26 | */ |
@@ -1,43 +1,34 @@ | @@ -1,43 +1,34 @@ | |||
1 | $NetBSD: patch-ai,v 1.33 2015/07/22 00:25:37 taca Exp $ | 1 | $NetBSD: patch-ai,v 1.34 2015/09/07 09:47:01 fhajny Exp $ | |
2 | 2 | |||
3 | Make this pkgsrc friendly. | 3 | Make this pkgsrc friendly. | |
4 | 4 | |||
5 | --- makedefs.orig 2015-07-19 14:24:10.000000000 +0000 | 5 | --- makedefs.orig 2015-07-19 14:24:25.000000000 +0000 | |
6 | +++ makedefs | 6 | +++ makedefs | |
7 | @@ -187,6 +187,8 @@ case "$SYSTEM.$RELEASE" in | 7 | @@ -372,13 +372,6 @@ case "$SYSTEM.$RELEASE" in | |
8 | ;; | |||
9 | NetBSD.6*) SYSTYPE=NETBSD6 | |||
10 | ;; | |||
11 | + NetBSD.7*) SYSTYPE=NETBSD7 | |||
12 | + ;; | |||
13 | BSD/OS.2*) SYSTYPE=BSDI2 | |||
14 | ;; | |||
15 | BSD/OS.3*) SYSTYPE=BSDI3 | |||
16 | @@ -244,13 +246,6 @@ case "$SYSTEM.$RELEASE" in | |||
17 | esac | 8 | esac | |
18 | ;; | 9 | ;; | |
19 | ULTRIX.4*) SYSTYPE=ULTRIX4 | 10 | ULTRIX.4*) SYSTYPE=ULTRIX4 | |
20 | - if [ -f /usr/local/lib/libdb.a ]; then | 11 | - if [ -f /usr/local/lib/libdb.a ]; then | |
21 | - SYSLIBS="$SYSLIBS -ldb" | 12 | - SYSLIBS="$SYSLIBS -ldb" | |
22 | - CCARGS="$CCARGS -DHAS_DB" | 13 | - CCARGS="$CCARGS -DHAS_DB" | |
23 | - if [ -d /usr/local/include/db ]; then | 14 | - if [ -d /usr/local/include/db ]; then | |
24 | - CCARGS="$CCARGS -I/usr/local/include/db" | 15 | - CCARGS="$CCARGS -I/usr/local/include/db" | |
25 | - fi | 16 | - fi | |
26 | - fi | 17 | - fi | |
27 | for l in syslog resolv; do | 18 | for l in syslog resolv; do | |
28 | if [ -f /usr/local/lib/lib$l.a ]; then | 19 | if [ -f /usr/local/lib/lib$l.a ]; then | |
29 | SYSLIBS="$SYSLIBS -l$l" | 20 | SYSLIBS="$SYSLIBS -l$l" | |
30 | @@ -288,33 +283,8 @@ case "$SYSTEM.$RELEASE" in | 21 | @@ -416,33 +409,8 @@ case "$SYSTEM.$RELEASE" in | |
31 | esac;; | 22 | esac;; | |
32 | # Tested with RedHat 3.03 on 20020729. | 23 | # Tested with RedHat 3.03 on 20020729. | |
33 | Linux.1*) SYSTYPE=LINUX1 | 24 | Linux.1*) SYSTYPE=LINUX1 | |
34 | - case "$CCARGS" in | 25 | - case "$CCARGS" in | |
35 | - *-DNO_DB*) ;; | 26 | - *-DNO_DB*) ;; | |
36 | - *-DHAS_DB*) ;; | 27 | - *-DHAS_DB*) ;; | |
37 | - *) SYSLIBS="-ldb";; | 28 | - *) SYSLIBS="-ldb";; | |
38 | - esac | 29 | - esac | |
39 | ;; | 30 | ;; | |
40 | Linux.2*) SYSTYPE=LINUX2 | 31 | Linux.2*) SYSTYPE=LINUX2 | |
41 | - case "$CCARGS" in | 32 | - case "$CCARGS" in | |
42 | - *-DNO_DB*) ;; | 33 | - *-DNO_DB*) ;; | |
43 | - *-DHAS_DB*) ;; | 34 | - *-DHAS_DB*) ;; | |
@@ -51,78 +42,78 @@ Make this pkgsrc friendly. | @@ -51,78 +42,78 @@ Make this pkgsrc friendly. | |||
51 | - # No, we're not going to try db1 db2 db3 etc. | 42 | - # No, we're not going to try db1 db2 db3 etc. | |
52 | - # On a properly installed system, Postfix builds | 43 | - # On a properly installed system, Postfix builds | |
53 | - # by including <db.h> and by linking with -ldb | 44 | - # by including <db.h> and by linking with -ldb | |
54 | - echo "No <db.h> include file found." 1>&2 | 45 | - echo "No <db.h> include file found." 1>&2 | |
55 | - echo "Install the appropriate db*-devel package first." 1>&2 | 46 | - echo "Install the appropriate db*-devel package first." 1>&2 | |
56 | - exit 1 | 47 | - exit 1 | |
57 | - fi | 48 | - fi | |
58 | - SYSLIBS="-ldb" | 49 | - SYSLIBS="-ldb" | |
59 | - ;; | 50 | - ;; | |
60 | - esac | 51 | - esac | |
61 | for name in nsl resolv $GDBM_LIBS | 52 | for name in nsl resolv $GDBM_LIBS | |
62 | do | 53 | do | |
63 | for lib in /usr/lib64 /lib64 /usr/lib /lib | 54 | for lib in /usr/lib64 /lib64 /usr/lib /lib | |
64 | @@ -368,25 +338,6 @@ EOF | 55 | @@ -503,25 +471,6 @@ EOF | |
65 | esac | 56 | : ${PLUGIN_LD="${CC-gcc} -shared"} | |
66 | ;; | 57 | ;; | |
67 | Linux.[34].*) SYSTYPE=LINUX$RELEASE_MAJOR | 58 | Linux.[34].*) SYSTYPE=LINUX$RELEASE_MAJOR | |
68 | - case "$CCARGS" in | 59 | - case "$CCARGS" in | |
69 | - *-DNO_DB*) ;; | 60 | - *-DNO_DB*) ;; | |
70 | - *-DHAS_DB*) ;; | 61 | - *-DHAS_DB*) ;; | |
71 | - *) if [ -f /usr/include/db.h ] | 62 | - *) if [ -f /usr/include/db.h ] | |
72 | - then | 63 | - then | |
73 | - : we are all set | 64 | - : we are all set | |
74 | - elif [ -f /usr/include/db/db.h ] | 65 | - elif [ -f /usr/include/db/db.h ] | |
75 | - then | 66 | - then | |
76 | - CCARGS="$CCARGS -I/usr/include/db" | 67 | - CCARGS="$CCARGS -I/usr/include/db" | |
77 | - else | 68 | - else | |
78 | - # On a properly installed system, Postfix builds | 69 | - # On a properly installed system, Postfix builds | |
79 | - # by including <db.h> and by linking with -ldb | 70 | - # by including <db.h> and by linking with -ldb | |
80 | - echo "No <db.h> include file found." 1>&2 | 71 | - echo "No <db.h> include file found." 1>&2 | |
81 | - echo "Install the appropriate db*-devel package first." 1>&2 | 72 | - echo "Install the appropriate db*-devel package first." 1>&2 | |
82 | - exit 1 | 73 | - exit 1 | |
83 | - fi | 74 | - fi | |
84 | - SYSLIBS="-ldb" | 75 | - SYSLIBS="-ldb" | |
85 | - ;; | 76 | - ;; | |
86 | - esac | 77 | - esac | |
87 | for name in nsl resolv | 78 | for name in nsl resolv | |
88 | do | 79 | do | |
89 | for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/* | 80 | for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/* | |
90 | @@ -400,24 +351,6 @@ EOF | 81 | @@ -542,24 +491,6 @@ EOF | |
91 | ;; | 82 | ;; | |
92 | GNU.0*|GNU/kFreeBSD.[567]*) | 83 | GNU.0*|GNU/kFreeBSD.[567]*) | |
93 | SYSTYPE=GNU0 | 84 | SYSTYPE=GNU0 | |
94 | - case "$CCARGS" in | 85 | - case "$CCARGS" in | |
95 | - *-DNO_DB*) ;; | 86 | - *-DNO_DB*) ;; | |
96 | - *) if [ -f /usr/include/db.h ] | 87 | - *) if [ -f /usr/include/db.h ] | |
97 | - then | 88 | - then | |
98 | - : we are all set | 89 | - : we are all set | |
99 | - elif [ -f /usr/include/db/db.h ] | 90 | - elif [ -f /usr/include/db/db.h ] | |
100 | - then | 91 | - then | |
101 | - CCARGS="$CCARGS -I/usr/include/db" | 92 | - CCARGS="$CCARGS -I/usr/include/db" | |
102 | - else | 93 | - else | |
103 | - # On a properly installed system, Postfix builds | 94 | - # On a properly installed system, Postfix builds | |
104 | - # by including <db.h> and by linking with -ldb | 95 | - # by including <db.h> and by linking with -ldb | |
105 | - echo "No <db.h> include file found." 1>&2 | 96 | - echo "No <db.h> include file found." 1>&2 | |
106 | - echo "Install the appropriate db*-devel package first." 1>&2 | 97 | - echo "Install the appropriate db*-devel package first." 1>&2 | |
107 | - exit 1 | 98 | - exit 1 | |
108 | - fi | 99 | - fi | |
109 | - SYSLIBS="-ldb" | 100 | - SYSLIBS="-ldb" | |
110 | - ;; | 101 | - ;; | |
111 | - esac | 102 | - esac | |
112 | for name in nsl resolv | 103 | for name in nsl resolv | |
113 | do | 104 | do | |
114 | for lib in /usr/lib64 /lib64 /usr/lib /lib | 105 | for lib in /usr/lib64 /lib64 /usr/lib /lib | |
115 | @@ -448,25 +381,13 @@ EOF | 106 | @@ -590,25 +521,13 @@ EOF | |
116 | HP-UX.A.09.*) SYSTYPE=HPUX9 | 107 | HP-UX.A.09.*) SYSTYPE=HPUX9 | |
117 | SYSLIBS=-ldbm | 108 | SYSLIBS=-ldbm | |
118 | CCARGS="$CCARGS -DMISSING_USLEEP" | 109 | CCARGS="$CCARGS -DMISSING_USLEEP" | |
119 | - if [ -f /usr/lib/libdb.a ]; then | 110 | - if [ -f /usr/lib/libdb.a ]; then | |
120 | - CCARGS="$CCARGS -DHAS_DB" | 111 | - CCARGS="$CCARGS -DHAS_DB" | |
121 | - SYSLIBS="$SYSLIBS -ldb" | 112 | - SYSLIBS="$SYSLIBS -ldb" | |
122 | - fi | 113 | - fi | |
123 | ;; | 114 | ;; | |
124 | HP-UX.B.10.*) SYSTYPE=HPUX10 | 115 | HP-UX.B.10.*) SYSTYPE=HPUX10 | |
125 | CCARGS="$CCARGS `nm /usr/lib/libc.a 2>/dev/null | | 116 | CCARGS="$CCARGS `nm /usr/lib/libc.a 2>/dev/null | | |
126 | (grep usleep >/dev/null || echo '-DMISSING_USLEEP')`" | 117 | (grep usleep >/dev/null || echo '-DMISSING_USLEEP')`" | |
127 | - if [ -f /usr/lib/libdb.a ]; then | 118 | - if [ -f /usr/lib/libdb.a ]; then | |
128 | - CCARGS="$CCARGS -DHAS_DB" | 119 | - CCARGS="$CCARGS -DHAS_DB" |