Fri Sep 19 19:20:58 2008 UTC ()
Expose libwrap through options.mk (no change to default builds)


(adrianp)
diff -r1.3 -r1.4 pkgsrc/security/stunnel/options.mk

cvs diff -r1.3 -r1.4 pkgsrc/security/stunnel/options.mk (expand / switch to context diff)
--- pkgsrc/security/stunnel/options.mk 2007/08/11 14:41:36 1.3
+++ pkgsrc/security/stunnel/options.mk 2008/09/19 19:20:57 1.4
@@ -1,9 +1,10 @@
-# $NetBSD: options.mk,v 1.3 2007/08/11 14:41:36 schmonz Exp $
+# $NetBSD: options.mk,v 1.4 2008/09/19 19:20:57 adrianp Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.stunnel
-PKG_SUPPORTED_OPTIONS=	inet6 pthread
+PKG_SUPPORTED_OPTIONS=	inet6 pthread libwrap
+PKG_SUGGESTED_OPTIONS=	libwrap
 .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
-PKG_SUGGESTED_OPTIONS+=	pthread
+PKG_SUGGESTED_OPTIONS+=	pthread 
 .endif
 
 .include "../../mk/bsd.options.mk"
@@ -26,4 +27,13 @@
 			LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
 .else
 CONFIGURE_ARGS+=	--with-threads=fork
+.endif
+
+###
+### Support libwrap
+###
+.if !empty(PKG_OPTIONS:Mlibwrap)
+CONFIGURE_ARGS+=	--enable-libwrap
+.else
+CONFIGURE_ARGS+=	--disable-libwrap
 .endif