summaryrefslogtreecommitdiff
path: root/security/stunnel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/stunnel/Makefile')
-rw-r--r--security/stunnel/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index c28be601c62..4046552c47d 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -1,16 +1,16 @@
-# $NetBSD: Makefile,v 1.55 2006/06/16 09:23:22 rillig Exp $
+# $NetBSD: Makefile,v 1.56 2006/10/14 11:12:19 obache Exp $
-DISTNAME= stunnel-4.07
-PKGREVISION= 3
+DISTNAME= stunnel-4.15
CATEGORIES= security
MASTER_SITES= ftp://ftp.fu-berlin.de/unix/security/stunnel/ \
ftp://stunnel.mirt.net/stunnel/ \
http://www.stunnel.org/download/stunnel/src/
-MAINTAINER= pkgsrc-users@NetBSD.org
+MAINTAINER= shaun@inerd.com
HOMEPAGE= http://www.stunnel.org/
COMMENT= Universal SSL tunnel
+USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} \
--with-cert-dir=${SSLCERTS:Q} \
@@ -19,6 +19,8 @@ CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} \
--sysconfdir=${PKG_SYSCONFDIR:Q} \
--localstatedir=${VARBASE:Q}
+PTHREAD_OPTS?= optional
+
PKG_SYSCONFSUBDIR= stunnel
RCD_SCRIPTS= stunnel
@@ -28,6 +30,16 @@ USE_TOOLS+= perl:run
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+= --with-threads=fork
+.else
+CONFIGURE_ARGS+= --with-threads=pthread
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
+.endif
+
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"