mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- update to version 2.11.5
- rename OPTIONS to match default name of most ports - SASL2 -> SASL - OPENLDAP -> LDAP - install main.cf and master.cf with the @sample macro - rework pkg-install - fix wrong permission for /var/db/postfix [1] - sets WANT_OPENLDAP_SASL option for openldap port when postfix LDAP_SASL option is set [2] - make usage of new ${opt}_DEPENDS notation Changelog: 20150324 Bugfix (introduced: Postfix 2.6): sender_dependent_relayhost_maps ignored the relayhost setting in the case of a DUNNO lookup result. It would use the recipient domain instead. Viktor Dukhovni. Wietse took the pieces of code that enforce the precedence of a sender-dependent relayhost, the global relayhost, and the recipient domain, and put that code together in once place so that it is easier to maintain. File: trivial-rewrite/resolve.c. 20150330 Bitrot: prepare for future changes in OpenSSL API. Viktor Dukhovni. File: tls_dane.c. 20150408 Portability: FreeBSD10 support. Files: makedefs, util/sys_defs.h. Incompatibility: specifying "make makefiles" with "CC=command" will no longer override the default WARN setting. PR: 198215 [1] 198857 [2]
This commit is contained in:
parent
f11c883807
commit
bb7c11a7d5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385965
6 changed files with 64 additions and 83 deletions
|
@ -2,7 +2,7 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= postfix
|
PORTNAME= postfix
|
||||||
PORTVERSION= 2.11.4
|
PORTVERSION= 2.11.5
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= mail ipv6
|
CATEGORIES= mail ipv6
|
||||||
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/ \
|
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/ \
|
||||||
|
@ -26,7 +26,7 @@ PORTSCOUT= limit:^2\.11\.
|
||||||
|
|
||||||
VDAVERSION= 2.10.0
|
VDAVERSION= 2.10.0
|
||||||
CONFLICTS_INSTALL?= courier-0.* opensmtpd-[0-9]* \
|
CONFLICTS_INSTALL?= courier-0.* opensmtpd-[0-9]* \
|
||||||
postfix2?-* postfix21?-* postfix-tls-* \
|
postfix2?-* postfix210-* postfix-3.* \
|
||||||
postfix-current-[23].* postfix-current-base-[23].* \
|
postfix-current-[23].* postfix-current-base-[23].* \
|
||||||
sendmail-8.* sendmail+*-8.* smail-3.* zmailer-2.*
|
sendmail-8.* sendmail+*-8.* smail-3.* zmailer-2.*
|
||||||
|
|
||||||
|
@ -41,36 +41,42 @@ USE_PERL5= build
|
||||||
SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"
|
SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"
|
||||||
|
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
OPTIONS_DEFINE= BDB CDB DOCS INST_BASE LDAP_SASL LMDB MYSQL NIS \
|
OPTIONS_DEFINE= BDB CDB DOCS INST_BASE LDAP LDAP_SASL LMDB MYSQL \
|
||||||
OPENLDAP PCRE PGSQL SASL2 SPF SQLITE TEST TLS VDA
|
NIS PCRE PGSQL SASL SPF SQLITE TEST TLS VDA
|
||||||
|
|
||||||
OPTIONS_RADIO= RG1 RG2
|
OPTIONS_RADIO= RG1 RG2
|
||||||
OPTIONS_RADIO_RG1= DOVECOT DOVECOT2
|
OPTIONS_RADIO_RG1= DOVECOT DOVECOT2
|
||||||
OPTIONS_RADIO_RG2= SASLKRB5 SASLKMIT
|
OPTIONS_RADIO_RG2= SASLKRB5 SASLKMIT
|
||||||
OPTIONS_DEFAULT= PCRE TLS
|
OPTIONS_DEFAULT= PCRE TLS
|
||||||
|
|
||||||
PCRE_DESC= Perl Compatible Regular Expressions
|
BDB_USE= BDB=yes
|
||||||
SASL2_DESC= Cyrus SASLv2 (Simple Auth. and Sec. Layer)
|
CDB_LIB_DEPENDS= libcdb.so:${PORTSDIR}/databases/tinycdb
|
||||||
|
LDAP_USE= OPENLDAP=yes
|
||||||
|
LMDB_LIB_DEPENDS= liblmdb.so:${PORTSDIR}/databases/lmdb
|
||||||
|
MYSQL_USE= MYSQL=yes
|
||||||
|
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
||||||
|
PGSQL_USES= pgsql
|
||||||
|
SASLKMIT_LIB_DEPENDS= libkrb5.so:${PORTSDIR}/security/krb5
|
||||||
|
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
||||||
|
SPF_LIB_DEPENDS= libspf2.so:${PORTSDIR}/mail/libspf2
|
||||||
|
SQLITE_USE= SQLITE=yes
|
||||||
|
TLS_USE= OPENSSL=yes
|
||||||
|
|
||||||
|
CDB_DESC= CDB maps lookups
|
||||||
|
INST_BASE_DESC= Install into /usr and /etc/postfix
|
||||||
|
LDAP_DESC= LDAP maps (uses WITH_OPENLDAP_VER)
|
||||||
|
LDAP_SASL_DESC= LDAP client-to-server SASL auth
|
||||||
|
LMDB_DESC= LMDB maps
|
||||||
|
SPF_DESC= SPF support (via libspf2 1.2.x)
|
||||||
|
TEST_DESC= SMTP/LMTP test server and generator
|
||||||
|
VDA_DESC= VDA (Virtual Delivery Agent 32Bit)
|
||||||
|
|
||||||
|
RG1_DESC= Dovecot SASL authentication methods
|
||||||
DOVECOT_DESC= Dovecot 1.x SASL authentication method
|
DOVECOT_DESC= Dovecot 1.x SASL authentication method
|
||||||
DOVECOT2_DESC= Dovecot 2.x SASL authentication method
|
DOVECOT2_DESC= Dovecot 2.x SASL authentication method
|
||||||
|
RG2_DESC= Kerberos network authentication protocol type
|
||||||
SASLKRB5_DESC= If your SASL req. Kerberos5, select this
|
SASLKRB5_DESC= If your SASL req. Kerberos5, select this
|
||||||
SASLKMIT_DESC= If your SASL req. MIT Kerberos5, select this
|
SASLKMIT_DESC= If your SASL req. MIT Kerberos5, select this
|
||||||
TLS_DESC= SSL and TLS support
|
|
||||||
BDB_DESC= Berkeley DB (uses WITH_BDB_VER)
|
|
||||||
MYSQL_DESC= MySQL maps (uses WITH_MYSQL_VER)
|
|
||||||
PGSQL_DESC= PostgreSQL maps (uses DEFAULT_PGSQL_VER)
|
|
||||||
SQLITE_DESC= SQLite maps
|
|
||||||
OPENLDAP_DESC= OpenLDAP maps (uses WITH_OPENLDAP_VER)
|
|
||||||
LDAP_SASL_DESC= OpenLDAP client-to-server SASL auth
|
|
||||||
CDB_DESC= CDB maps lookups
|
|
||||||
NIS_DESC= NIS maps lookups
|
|
||||||
VDA_DESC= VDA (Virtual Delivery Agent 32Bit)
|
|
||||||
TEST_DESC= SMTP/LMTP test server and generator
|
|
||||||
SPF_DESC= SPF support (via libspf2 1.2.x)
|
|
||||||
INST_BASE_DESC= Install into /usr and /etc/postfix
|
|
||||||
LMDB_DESC= LMDB maps
|
|
||||||
RG1_DESC= Dovecot SASL authentication methods
|
|
||||||
RG2_DESC= Kerberos network authentication protocol type
|
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
@ -139,15 +145,13 @@ POSTFIX_CCARGS+= -DDEF_CONFIG_DIR=\\\"${ETCDIR}\\\" \
|
||||||
_REQUIRE= LOGIN cleanvar
|
_REQUIRE= LOGIN cleanvar
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPCRE}
|
.if ${PORT_OPTIONS:MPCRE}
|
||||||
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
|
||||||
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
|
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
|
||||||
.else
|
.else
|
||||||
POSTFIX_CCARGS+= -DNO_PCRE
|
POSTFIX_CCARGS+= -DNO_PCRE
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSASL2}
|
.if ${PORT_OPTIONS:MSASL}
|
||||||
LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
|
||||||
POSTFIX_CCARGS+= -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl
|
POSTFIX_CCARGS+= -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2 -lpam -lcrypt
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2 -lpam -lcrypt
|
||||||
.endif
|
.endif
|
||||||
|
@ -167,12 +171,10 @@ POSTFIX_AUXLIBS+= -lkrb5 -lhx509 -lcrypto -lcrypt -lcom_err -lasn1 -lroken
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSASLKMIT}
|
.if ${PORT_OPTIONS:MSASLKMIT}
|
||||||
LIB_DEPENDS+= libkrb5.so:${PORTSDIR}/security/krb5
|
|
||||||
POSTFIX_AUXLIBS+= -Wl,--rpath,$${KRB5_HOME:-${LOCALBASE}}/lib -lkrb5 -lcrypto -lcrypt -lcom_err
|
POSTFIX_AUXLIBS+= -Wl,--rpath,$${KRB5_HOME:-${LOCALBASE}}/lib -lkrb5 -lcrypto -lcrypt -lcom_err
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MTLS}
|
.if ${PORT_OPTIONS:MTLS}
|
||||||
USE_OPENSSL= yes
|
|
||||||
POSTFIX_CCARGS+= -DUSE_TLS -I${OPENSSLINC}
|
POSTFIX_CCARGS+= -DUSE_TLS -I${OPENSSLINC}
|
||||||
POSTFIX_AUXLIBS+= -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
|
POSTFIX_AUXLIBS+= -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
|
||||||
.else
|
.else
|
||||||
|
@ -180,7 +182,6 @@ POSTFIX_CCARGS+= -DNO_TLS
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSPF}
|
.if ${PORT_OPTIONS:MSPF}
|
||||||
LIB_DEPENDS+= libspf2.so:${PORTSDIR}/mail/libspf2
|
|
||||||
PATCH_SITES+= ${MASTER_SITE_LOCAL}
|
PATCH_SITES+= ${MASTER_SITE_LOCAL}
|
||||||
PATCH_SITE_SUBDIR= mm
|
PATCH_SITE_SUBDIR= mm
|
||||||
PATCHFILES+= postfix-2.8.0-libspf2-1.2.x-0.patch.gz
|
PATCHFILES+= postfix-2.8.0-libspf2-1.2.x-0.patch.gz
|
||||||
|
@ -190,34 +191,29 @@ POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lspf2
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MBDB}
|
.if ${PORT_OPTIONS:MBDB}
|
||||||
USE_BDB= yes
|
|
||||||
INVALID_BDB_VER= 6
|
INVALID_BDB_VER= 6
|
||||||
POSTFIX_CCARGS+= -I${BDB_INCLUDE_DIR}
|
POSTFIX_CCARGS+= -I${BDB_INCLUDE_DIR}
|
||||||
POSTFIX_AUXLIBS+= -L${BDB_LIB_DIR} -l${BDB_LIB_NAME}
|
POSTFIX_AUXLIBS+= -L${BDB_LIB_DIR} -l${BDB_LIB_NAME}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MMYSQL}
|
.if ${PORT_OPTIONS:MMYSQL}
|
||||||
USE_MYSQL= yes
|
|
||||||
POSTFIX_CCARGS+= -DHAS_MYSQL -I${LOCALBASE}/include/mysql
|
POSTFIX_CCARGS+= -DHAS_MYSQL -I${LOCALBASE}/include/mysql
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient -lz -lcrypt -lm
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient -lz -lcrypt -lm
|
||||||
_REQUIRE+= mysql
|
_REQUIRE+= mysql
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPGSQL}
|
.if ${PORT_OPTIONS:MPGSQL}
|
||||||
USES+= pgsql
|
|
||||||
POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include
|
POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt
|
||||||
_REQUIRE+= postgresql
|
_REQUIRE+= postgresql
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSQLITE}
|
.if ${PORT_OPTIONS:MSQLITE}
|
||||||
USE_SQLITE= yes
|
|
||||||
POSTFIX_CCARGS+= -DHAS_SQLITE -I${LOCALBASE}/include
|
POSTFIX_CCARGS+= -DHAS_SQLITE -I${LOCALBASE}/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsqlite3
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsqlite3
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MOPENLDAP}
|
.if ${PORT_OPTIONS:MLDAP}
|
||||||
USE_OPENLDAP= yes
|
|
||||||
. if defined(WITH_OPENLDAP_VER)
|
. if defined(WITH_OPENLDAP_VER)
|
||||||
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
|
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
|
||||||
. endif
|
. endif
|
||||||
|
@ -225,15 +221,15 @@ POSTFIX_CCARGS+= -DHAS_LDAP -I${LOCALBASE}/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
|
||||||
_REQUIRE+= slapd
|
_REQUIRE+= slapd
|
||||||
. if ${PORT_OPTIONS:MLDAP_SASL}
|
. if ${PORT_OPTIONS:MLDAP_SASL}
|
||||||
. if ! ${PORT_OPTIONS:MSASL2}
|
. if ! ${PORT_OPTIONS:MSASL}
|
||||||
LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
||||||
. endif
|
. endif
|
||||||
|
WANT_OPENLDAP_SASL= yes
|
||||||
POSTFIX_CCARGS+= -I${LOCALBASE}/include/sasl -DUSE_LDAP_SASL
|
POSTFIX_CCARGS+= -I${LOCALBASE}/include/sasl -DUSE_LDAP_SASL
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MCDB}
|
.if ${PORT_OPTIONS:MCDB}
|
||||||
LIB_DEPENDS+= libcdb.so:${PORTSDIR}/databases/tinycdb
|
|
||||||
POSTFIX_CCARGS+= -DHAS_CDB -I${LOCALBASE}/include
|
POSTFIX_CCARGS+= -DHAS_CDB -I${LOCALBASE}/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lcdb
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lcdb
|
||||||
.endif
|
.endif
|
||||||
|
@ -255,7 +251,6 @@ MANTEST= qmqp-sink.1 qmqp-source.1 smtp-sink.1 smtp-source.1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MLMDB}
|
.if ${PORT_OPTIONS:MLMDB}
|
||||||
LIB_DEPENDS+= liblmdb.so:${PORTSDIR}/databases/lmdb
|
|
||||||
POSTFIX_CCARGS+= -DHAS_LMDB -I${LOCALBASE}/include
|
POSTFIX_CCARGS+= -DHAS_LMDB -I${LOCALBASE}/include
|
||||||
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -llmdb
|
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -llmdb
|
||||||
.endif
|
.endif
|
||||||
|
@ -278,10 +273,10 @@ REINPLACE= s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}
|
||||||
s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
|
s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
|
||||||
|
|
||||||
pre-patch:
|
pre-patch:
|
||||||
.if ${PORT_OPTIONS:MSASL2} && ! ${PORT_OPTIONS:MMYSQL} && exists(${LOCALBASE}/lib/libsasl2.a)
|
.if ${PORT_OPTIONS:MSASL} && ! ${PORT_OPTIONS:MMYSQL} && exists(${LOCALBASE}/lib/libsasl2.a)
|
||||||
@if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | ${GREP} -wq "mysql_init"; then \
|
@if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | ${GREP} -wq "mysql_init"; then \
|
||||||
${ECHO_MSG}; \
|
${ECHO_MSG}; \
|
||||||
${ECHO_MSG} "Your SASL2 library it's compiled with MYSQL"; \
|
${ECHO_MSG} "Your SASL library it's compiled with MYSQL"; \
|
||||||
${ECHO_MSG} "If you use MYSQL in ${PORTNAME} consider CTRL+C and"; \
|
${ECHO_MSG} "If you use MYSQL in ${PORTNAME} consider CTRL+C and"; \
|
||||||
${ECHO_MSG} "select MYSQL OPTION in config menu."; \
|
${ECHO_MSG} "select MYSQL OPTION in config menu."; \
|
||||||
${ECHO_MSG} "# make clean config"; \
|
${ECHO_MSG} "# make clean config"; \
|
||||||
|
@ -346,8 +341,6 @@ do-install:
|
||||||
readme_directory=${READMEDIR} \
|
readme_directory=${READMEDIR} \
|
||||||
sendmail_path=${PREFIX}/sbin/sendmail )
|
sendmail_path=${PREFIX}/sbin/sendmail )
|
||||||
|
|
||||||
# == do not overwrite existing config
|
|
||||||
${RM} ${STAGEDIR}${ETCDIR}/main.cf ${STAGEDIR}${ETCDIR}/master.cf
|
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/rmail/rmail ${STAGEDIR}${PREFIX}/bin/rmail
|
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/rmail/rmail ${STAGEDIR}${PREFIX}/bin/rmail
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${STAGEDIR}${PREFIX}/bin/qshape
|
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${STAGEDIR}${PREFIX}/bin/qshape
|
||||||
${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||||
|
@ -356,10 +349,14 @@ do-install:
|
||||||
${INSTALL_MAN} ${MANTEST:S|^|${WRKSRC}/man/man1/|} ${STAGEDIR}${MANPREFIX}/man/man1
|
${INSTALL_MAN} ${MANTEST:S|^|${WRKSRC}/man/man1/|} ${STAGEDIR}${MANPREFIX}/man/man1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-stage:
|
||||||
|
# == do not overwrite existing config
|
||||||
|
${MV} ${STAGEDIR}${ETCDIR}/main.cf ${STAGEDIR}${ETCDIR}/main.cf.sample
|
||||||
|
${MV} ${STAGEDIR}${ETCDIR}/master.cf ${STAGEDIR}${ETCDIR}/master.cf.sample
|
||||||
|
|
||||||
# Fix compressed man pages and strip executables
|
# Fix compressed man pages and strip executables
|
||||||
${REINPLACE_CMD} -i '' -E -e "s|(man[158]/.*.[158]):|\1.gz:|g" ${STAGEDIR}${DAEMONDIR}/postfix-files
|
${SED} -i '' -E -e "s|(man[158]/.*.[158]):|\1.gz:|g" ${STAGEDIR}${DAEMONDIR}/postfix-files
|
||||||
-@${STRIP_CMD} ${STRIP_LIBEXEC:S|^|${STAGEDIR}${PREFIX}/libexec/postfix/|}
|
-@${STRIP_CMD} ${STRIP_LIBEXEC:S|^|${STAGEDIR}${DAEMONDIR}/|}
|
||||||
-@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
|
-@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SHA256 (postfix/postfix-2.11.4.tar.gz) = f4154c1db58c0300897d4c430bd90714ac7855249df59cc8828910fd5ccb031e
|
SHA256 (postfix/postfix-2.11.5.tar.gz) = 0a4cc61f6d6c57eee676d4e78a42b2d29f8b0f406277d350bc0928f51efa3187
|
||||||
SIZE (postfix/postfix-2.11.4.tar.gz) = 4040104
|
SIZE (postfix/postfix-2.11.5.tar.gz) = 4036256
|
||||||
SHA256 (postfix/postfix-2.8.0-libspf2-1.2.x-0.patch.gz) = e5c38e5bc226cab109c02a4e530ab1aefd3bb06f2169f3e052bdf83d2727aacc
|
SHA256 (postfix/postfix-2.8.0-libspf2-1.2.x-0.patch.gz) = e5c38e5bc226cab109c02a4e530ab1aefd3bb06f2169f3e052bdf83d2727aacc
|
||||||
SIZE (postfix/postfix-2.8.0-libspf2-1.2.x-0.patch.gz) = 8191
|
SIZE (postfix/postfix-2.8.0-libspf2-1.2.x-0.patch.gz) = 8191
|
||||||
SHA256 (postfix/postfix-vda-v13-2.10.0.patch) = 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f
|
SHA256 (postfix/postfix-vda-v13-2.10.0.patch) = 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
--- makedefs.orig 2013-10-27 02:32:39.000000000 +0000
|
--- makedefs.orig 2015-04-19 10:19:57 UTC
|
||||||
+++ makedefs 2013-10-27 02:33:48.000000000 +0000
|
+++ makedefs
|
||||||
@@ -155,6 +155,10 @@
|
@@ -161,6 +161,9 @@ case "$SYSTEM.$RELEASE" in
|
||||||
|
FreeBSD.10*) SYSTYPE=FREEBSD10
|
||||||
|
: ${CC=cc}
|
||||||
;;
|
;;
|
||||||
FreeBSD.9*) SYSTYPE=FREEBSD9
|
|
||||||
;;
|
|
||||||
+ FreeBSD.10*) SYSTYPE=FREEBSD10
|
|
||||||
+ ;;
|
|
||||||
+ FreeBSD.11*) SYSTYPE=FREEBSD11
|
+ FreeBSD.11*) SYSTYPE=FREEBSD11
|
||||||
|
+ : ${CC=cc}
|
||||||
+ ;;
|
+ ;;
|
||||||
OpenBSD.2*) SYSTYPE=OPENBSD2
|
DragonFly.*) SYSTYPE=DRAGONFLY
|
||||||
;;
|
;;
|
||||||
OpenBSD.3*) SYSTYPE=OPENBSD3
|
OpenBSD.2*) SYSTYPE=OPENBSD2
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
--- src/util/sys_defs.h.orig 2012-09-24 23:53:56.000000000 +0000
|
--- src/util/sys_defs.h.orig 2015-04-19 10:22:40 UTC
|
||||||
+++ src/util/sys_defs.h 2013-10-27 01:17:14.000000000 +0000
|
+++ src/util/sys_defs.h
|
||||||
@@ -25,7 +25,8 @@
|
@@ -26,6 +26,7 @@
|
||||||
*/
|
|
||||||
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
|
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
|
||||||
|| defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
|
|| defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
|
||||||
- || defined(FREEBSD8) || defined(FREEBSD9) \
|
|| defined(FREEBSD8) || defined(FREEBSD9) || defined(FREEBSD10) \
|
||||||
+ || defined(FREEBSD8) || defined(FREEBSD9) || defined(FREEBSD10) \
|
|
||||||
+ || defined(FREEBSD11) \
|
+ || defined(FREEBSD11) \
|
||||||
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
|
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
|
||||||
|| defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
|
|| defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
|
||||||
|
|
|
@ -57,22 +57,11 @@ yesno() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$2" = "POST-INSTALL" ]; then
|
if [ "$2" = "POST-INSTALL" ]; then
|
||||||
SAMPLES="main.cf master.cf"
|
|
||||||
for file in $SAMPLES
|
|
||||||
do
|
|
||||||
if [ ! -f ${ETCDIR}/$file ]; then
|
|
||||||
cp ${DAEMONDIR}/$file ${ETCDIR}/
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
cmp ${DAEMONDIR}/main.cf ${ETCDIR}/main.cf >/dev/null 2>&1 \
|
|
||||||
|| POSTARG="upgrade-package"
|
|
||||||
|
|
||||||
/bin/sh ${DAEMONDIR}/post-install tempdir=/tmp \
|
/bin/sh ${DAEMONDIR}/post-install tempdir=/tmp \
|
||||||
daemon_directory=${DAEMONDIR} \
|
daemon_directory=${DAEMONDIR} \
|
||||||
html_directory=${READMEDIR} \
|
html_directory=${READMEDIR} \
|
||||||
readme_directory=${READMEDIR} \
|
readme_directory=${READMEDIR} \
|
||||||
set-permissions ${POSTARG}
|
upgrade-package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" -a -f "${MC}" ]; then
|
if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" -a -f "${MC}" ]; then
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
@unexec if cmp -s %D/libexec/postfix/main.cf %%PFETC%%/main.cf; then rm -f %%PFETC%%/main.cf; fi
|
|
||||||
@unexec if cmp -s %D/libexec/postfix/master.cf %%PFETC%%/master.cf; then rm -f %%PFETC%%/master.cf; fi
|
|
||||||
bin/mailq
|
bin/mailq
|
||||||
bin/newaliases
|
bin/newaliases
|
||||||
%%TEST%%bin/qmqp-sink
|
%%TEST%%bin/qmqp-sink
|
||||||
|
@ -8,13 +6,13 @@ bin/qshape
|
||||||
bin/rmail
|
bin/rmail
|
||||||
%%TEST%%bin/smtp-sink
|
%%TEST%%bin/smtp-sink
|
||||||
%%TEST%%bin/smtp-source
|
%%TEST%%bin/smtp-source
|
||||||
%%INST_BASE%%@cwd /
|
%%PFETC%%/LICENSE
|
||||||
etc/postfix/LICENSE
|
%%PFETC%%/TLS_LICENSE
|
||||||
etc/postfix/TLS_LICENSE
|
%%PFETC%%/bounce.cf.default
|
||||||
etc/postfix/bounce.cf.default
|
%%PFETC%%/main.cf.default
|
||||||
etc/postfix/main.cf.default
|
@sample %%PFETC%%/main.cf.sample
|
||||||
etc/postfix/makedefs.out
|
%%PFETC%%/makedefs.out
|
||||||
@cwd %%RESETPREFIX%%
|
@sample %%PFETC%%/master.cf.sample
|
||||||
libexec/postfix/anvil
|
libexec/postfix/anvil
|
||||||
libexec/postfix/bounce
|
libexec/postfix/bounce
|
||||||
libexec/postfix/cleanup
|
libexec/postfix/cleanup
|
||||||
|
@ -140,7 +138,7 @@ sbin/postsuper
|
||||||
sbin/posttls-finger
|
sbin/posttls-finger
|
||||||
sbin/sendmail
|
sbin/sendmail
|
||||||
@dir %%PFETC%%
|
@dir %%PFETC%%
|
||||||
@dir /var/db/postfix
|
@dir(postfix,,700) /var/db/postfix
|
||||||
@dir(postfix,,700) /var/spool/postfix/active
|
@dir(postfix,,700) /var/spool/postfix/active
|
||||||
@dir(postfix,,700) /var/spool/postfix/bounce
|
@dir(postfix,,700) /var/spool/postfix/bounce
|
||||||
@dir(postfix,,700) /var/spool/postfix/corrupt
|
@dir(postfix,,700) /var/spool/postfix/corrupt
|
||||||
|
|
Loading…
Add table
Reference in a new issue