Changeset View
Changeset View
Standalone View
Standalone View
security/stunnel/Makefile
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
LDFLAGS+= -lpthread | LDFLAGS+= -lpthread | ||||
.elif ${PORT_OPTIONS:MFORK} | .elif ${PORT_OPTIONS:MFORK} | ||||
CONFIGURE_ARGS+=--with-threads=fork | CONFIGURE_ARGS+=--with-threads=fork | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--with-threads=pthread | CONFIGURE_ARGS+=--with-threads=pthread | ||||
LDFLAGS+= -lpthread | LDFLAGS+= -lpthread | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MFIPS} && defined(OPENSSL_PORT) && ${OPENSSL_PORT} == security/libressl | .include <bsd.port.pre.mk> | ||||
.if ${PORT_OPTIONS:MFIPS} && ${SSL_DEFAULT} == libressl | |||||
IGNORE= LibreSSL does not support FIPS standard | IGNORE= LibreSSL does not support FIPS standard | ||||
.endif | .endif | ||||
.if defined(OPENSSL_PORT) && ${OPENSSL_PORT} == security/libressl | .if ${SSL_DEFAULT} == libressl | ||||
NO_PACKAGE= The stunnel license restricts distribution when linked to non-OpenSSL non-base SSL-libraries | NO_PACKAGE= The stunnel license restricts distribution when linked to non-OpenSSL non-base SSL-libraries | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
# place files under /var/tmp so that this can be run by an unprivileged | # place files under /var/tmp so that this can be run by an unprivileged | ||||
# user stunnel and group stunnel | # user stunnel and group stunnel | ||||
@${REINPLACE_CMD} -E -e 's|\@prefix\@/var/lib/stunnel/|/var/tmp/stunnel|; \ | @${REINPLACE_CMD} -E -e 's|\@prefix\@/var/lib/stunnel/|/var/tmp/stunnel|; \ | ||||
s|nobody|stunnel|;s|nogroup|stunnel|' \ | s|nobody|stunnel|;s|nogroup|stunnel|' \ | ||||
Show All 20 Lines | |||||
cert: | cert: | ||||
@${ECHO} "" | @${ECHO} "" | ||||
@${ECHO} "**************************************************************************" | @${ECHO} "**************************************************************************" | ||||
@${ECHO} "The new certificate will be saved into ${ETCDIR}/stunnel.pem" | @${ECHO} "The new certificate will be saved into ${ETCDIR}/stunnel.pem" | ||||
@${ECHO} "**************************************************************************" | @${ECHO} "**************************************************************************" | ||||
@${ECHO} "" | @${ECHO} "" | ||||
@(cd ${WRKSRC}/tools/; make install-data-local) | @(cd ${WRKSRC}/tools/; make install-data-local) | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |