--- b/mail/spamd/Makefile +++ b/mail/spamd/Makefile @@ -12,8 +12,6 @@ COMMENT= Traps spammers with a very slow smtp-login and return 4xx error LICENSE= BSD2CLAUSE -BROKEN_SSL= openssl111 - USE_RC_SUBR?= obspamd obspamlogd USES= ssl @@ -53,8 +51,24 @@ SUB_FILES= pkg-install \ OPTIONS_DEFINE= DOCS +.include + +.if ${SSL_DEFAULT:Mlibressl*} CFLAGS+= -I${OPENSSLINC} +CPPFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} +.else # SSL_DEFAULT +BUILD_DEPENDS+= ${NONEXISTENT}:security/libressl:stage +CFLAGS+= -I${WRKDIR}/libressl/include +CPPFLAGS+= -I${WRKDIR}/libressl/include +LDFLAGS+= -L${WRKDIR}/libressl/lib + +# Don't use COPYTREE_SHARE here as it hard links files, and the original files +# are owned by root, which creates problems of its own. +pre-configure: + @cd `${MAKE} -V STAGEDIR -C ${PORTSDIR}/security/libressl`${PREFIX}\ + && ${FIND} -E . ! -name *.so\* | ${CPIO} -dump ${WRKDIR}/libressl >/dev/null 2>&1 +.endif # SSL_DEFAULT do-install: .if !defined(CPANEL) @@ -76,4 +90,4 @@ do-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}/ -.include +.include