summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2021-12-15 20:54:00 +0000
committeradam <adam@pkgsrc.org>2021-12-15 20:54:00 +0000
commit51e9ba31a8ca744d63beb475f1375ccbc0eefe7a (patch)
tree48901e2cf4b1e5230f70321a9fbd10917c1dc5df
parent6760018cccd37b61917fe725b7309f0f478fd739 (diff)
downloadpkgsrc-51e9ba31a8ca744d63beb475f1375ccbc0eefe7a.tar.gz
postfix: fix install on macOS
-rw-r--r--mail/postfix/Makefile6
-rw-r--r--mail/postfix/options.mk5
2 files changed, 7 insertions, 4 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 14078abfeb3..80b028ad689 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.332 2021/12/08 16:05:29 adam Exp $
+# $NetBSD: Makefile,v 1.333 2021/12/15 20:54:00 adam Exp $
PKGREVISION= 1
.include "../../mail/postfix/Makefile.common"
@@ -68,7 +68,9 @@ do-install:
.if !empty(PKG_OPTIONS:Msasl)
${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR}
.endif
- cd ${WRKSRC} && ${SH} ./postfix-install -non-interactive \
+ cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/lib \
+ DYLD_LIBRARY_PATH=${WRKSRC}/lib \
+ ${SH} ./postfix-install -non-interactive \
${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}"
${INSTALL_DATA} ${WRKDIR}/mailer.conf \
${DESTDIR}${EXAMPLEDIR}/mailer.conf
diff --git a/mail/postfix/options.mk b/mail/postfix/options.mk
index a9e407a78fb..2759aefc0b1 100644
--- a/mail/postfix/options.mk
+++ b/mail/postfix/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.42 2021/08/14 08:58:20 taca Exp $
+# $NetBSD: options.mk,v 1.43 2021/12/15 20:54:00 adam Exp $
# Global and legacy options
@@ -64,6 +64,7 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.icu}/lib -licuuc \
CCARGS+= -DNO_EAI
post-install:
- cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/lib bin/postconf \
+ cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/lib \
+ DYLD_LIBRARY_PATH=${WRKSRC}/lib bin/postconf \
-c ${DESTDIR}${EXAMPLEDIR} smtputf8_enable=no
.endif