Changeset View
Changeset View
Standalone View
Standalone View
security/stunnel/Makefile
# Created by: Martti Kuparinen <martti.kuparinen@ericsson.com> | # Created by: Martti Kuparinen <martti.kuparinen@ericsson.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= stunnel | PORTNAME= stunnel | ||||
PORTVERSION= 5.23 | PORTVERSION= 5.24 | ||||
CATEGORIES= security | CATEGORIES= security | ||||
MASTER_SITES= https://www.stunnel.org/downloads/%SUBDIR%/ \ | MASTER_SITES= https://www.stunnel.org/downloads/%SUBDIR%/ \ | ||||
http://mirrors.zerg.biz/stunnel/%SUBDIR%/ \ | http://mirrors.zerg.biz/stunnel/%SUBDIR%/ \ | ||||
http://mirrors.go-part.com/stunnel/%SUBDIR%/ \ | http://mirrors.go-part.com/stunnel/%SUBDIR%/ \ | ||||
http://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | http://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | ||||
ftp://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | ftp://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | ||||
http://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | http://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \ | ||||
ftp://ftp.surfnet.nl/pub/networking/stunnel/%SUBDIR%/ \ | ftp://ftp.surfnet.nl/pub/networking/stunnel/%SUBDIR%/ \ | ||||
Show All 17 Lines | |||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
USE_RC_SUBR= stunnel | USE_RC_SUBR= stunnel | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --localstatedir=/var/tmp --enable-static --disable-systemd \ | CONFIGURE_ARGS= --localstatedir=/var/tmp --enable-static --disable-systemd \ | ||||
--with-ssl="${OPENSSLBASE}" | --with-ssl="${OPENSSLBASE}" | ||||
SHEBANG_FILES= src/stunnel3.in | SHEBANG_FILES= src/stunnel3.in | ||||
OPTIONS_DEFINE= IPV6 LIBWRAP FIPS DOCS EXAMPLES | OPTIONS_DEFINE= DOCS EXAMPLES FIPS IPV6 LIBWRAP | ||||
OPTIONS_SINGLE= THREAD | OPTIONS_SINGLE= THREAD | ||||
OPTIONS_SINGLE_THREAD= FORK PTHREAD UCONTEXT | OPTIONS_SINGLE_THREAD= FORK PTHREAD UCONTEXT | ||||
OPTIONS_DEFAULT= PTHREAD | OPTIONS_DEFAULT= PTHREAD | ||||
FIPS_CONFIGURE_ENABLE= fips | |||||
IPV6_CONFIGURE_ENABLE= ipv6 | IPV6_CONFIGURE_ENABLE= ipv6 | ||||
LIBWRAP_CONFIGURE_ENABLE= libwrap | LIBWRAP_CONFIGURE_ENABLE= libwrap | ||||
FIPS_CONFIGURE_ENABLE= fips | |||||
FIPS_DESC= Enable OpenSSL FIPS mode | |||||
FORK_DESC= Use the fork(3) threading model | FORK_DESC= Use the fork(3) threading model | ||||
PTHREAD_DESC= Use the pthread(3) threading model | PTHREAD_DESC= Use the pthread(3) threading model | ||||
UCONTEXT_DESC= Use the ucontext(3) threading model | UCONTEXT_DESC= Use the ucontext(3) threading model | ||||
FIPS_DESC= Enable OpenSSL FIPS mode | |||||
STUNNEL_USER?= stunnel | STUNNEL_USER?= stunnel | ||||
STUNNEL_GROUP?= stunnel | STUNNEL_GROUP?= stunnel | ||||
USERS= ${STUNNEL_USER} | USERS= ${STUNNEL_USER} | ||||
GROUPS= ${STUNNEL_GROUP} | GROUPS= ${STUNNEL_GROUP} | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MLIBWRAP} | .if ${PORT_OPTIONS:MLIBWRAP} | ||||
LDFLAGS+= -lwrap | LDFLAGS+= -lwrap | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MUCONTEXT} | .if ${PORT_OPTIONS:MUCONTEXT} | ||||
CONFIGURE_ARGS+=--with-threads=ucontext | CONFIGURE_ARGS+=--with-threads=ucontext | ||||
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 | |||||
.if ${PORT_OPTIONS:MFIPS} && "${OPENSSL_PORT}" == "security/libressl" | |||||
IGNORE= LibreSSL does not support FIPS standard | |||||
.endif | |||||
.if "${OPENSSL_PORT}" == "security/libressl" | |||||
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|' \ | ||||
${WRKSRC}/tools/stunnel.conf-sample.in | ${WRKSRC}/tools/stunnel.conf-sample.in | ||||
Show All 28 Lines |