2019-07-16 17:18:28 +02:00
|
|
|
# $NetBSD: options.mk,v 1.41 2019/07/16 15:18:28 triaxx Exp $
|
2004-07-30 23:05:41 +02:00
|
|
|
|
|
|
|
# Global and legacy options
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.postfix
|
2015-09-07 11:47:01 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= sasl tls eai
|
2007-04-29 21:27:35 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= tls
|
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-07-19 21:59:16 +02:00
|
|
|
|
2004-08-07 19:05:00 +02:00
|
|
|
###
|
2005-03-28 09:07:49 +02:00
|
|
|
### STARTTLS support
|
2004-08-07 19:05:00 +02:00
|
|
|
###
|
2004-08-07 18:56:53 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mtls)
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
2005-03-22 11:43:50 +01:00
|
|
|
CCARGS+= -DUSE_TLS
|
2004-07-19 21:59:16 +02:00
|
|
|
AUXLIBS+= -L${BUILDLINK_PREFIX.openssl}/lib \
|
2004-08-27 08:29:06 +02:00
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib \
|
2004-07-19 21:59:16 +02:00
|
|
|
-lssl -lcrypto
|
|
|
|
.else
|
2015-09-07 11:47:01 +02:00
|
|
|
CCARGS+= -DNO_TLS
|
2008-10-16 11:40:20 +02:00
|
|
|
.endif
|
2004-07-19 21:59:16 +02:00
|
|
|
|
|
|
|
###
|
2008-01-16 15:21:39 +01:00
|
|
|
### Cyrus SASL support for SMTP authentication.
|
2008-01-17 14:47:01 +01:00
|
|
|
### (Dovecot SASL support is built in by default.)
|
2004-07-19 21:59:16 +02:00
|
|
|
###
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= csasl
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
2006-04-13 23:45:12 +02:00
|
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
2004-08-07 09:58:32 +02:00
|
|
|
BUILDLINK_INCDIRS.cyrus-sasl= include/sasl
|
2004-07-19 22:34:50 +02:00
|
|
|
SASLLIBDIR= ${PREFIX}/lib/sasl2
|
|
|
|
PWCHECK_METHOD= auxprop
|
2008-01-16 15:21:39 +01:00
|
|
|
CCARGS+= -DUSE_CYRUS_SASL
|
2004-07-19 22:34:50 +02:00
|
|
|
AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sasl}/lib \
|
2004-08-27 08:29:06 +02:00
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \
|
2004-07-19 22:34:50 +02:00
|
|
|
-lsasl2
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.csasl= yes
|
2004-07-19 21:59:16 +02:00
|
|
|
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.sasl
|
|
|
|
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR}
|
2008-01-25 10:42:54 +01:00
|
|
|
MAKE_DIRS+= ${SASLLIBDIR}
|
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
|
2005-03-28 10:53:07 +02:00
|
|
|
.else
|
2008-01-16 15:21:39 +01:00
|
|
|
CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
|
2007-02-20 17:49:29 +01:00
|
|
|
.endif
|
2008-06-03 12:30:51 +02:00
|
|
|
|
|
|
|
###
|
2015-09-07 11:47:01 +02:00
|
|
|
### EAI (Email Address Internationalization) support (SMTPUTF8)
|
2008-06-03 12:30:51 +02:00
|
|
|
###
|
2015-09-07 11:47:01 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Meai)
|
|
|
|
. include "../../textproc/icu/buildlink3.mk"
|
2019-07-16 17:18:28 +02:00
|
|
|
CCARGS+= -I${BUILDLINK_PREFIX.icu}/include
|
2015-09-07 11:47:01 +02:00
|
|
|
AUXLIBS+= -L${BUILDLINK_PREFIX.icu}/lib -licuuc \
|
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.icu}/lib
|
|
|
|
.else
|
|
|
|
CCARGS+= -DNO_EAI
|
2015-09-08 16:03:04 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/lib bin/postconf \
|
|
|
|
-c ${DESTDIR}${EXAMPLEDIR} smtputf8_enable=no
|
2008-06-03 12:30:51 +02:00
|
|
|
.endif
|