diff options
-rw-r--r-- | net/tor/Makefile | 12 | ||||
-rw-r--r-- | net/tor/distinfo | 8 | ||||
-rw-r--r-- | net/tor/options.mk | 23 |
3 files changed, 36 insertions, 7 deletions
diff --git a/net/tor/Makefile b/net/tor/Makefile index 63eedc6eea2..a8847e0e22f 100644 --- a/net/tor/Makefile +++ b/net/tor/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.47 2007/10/25 14:58:29 obache Exp $ +# $NetBSD: Makefile,v 1.48 2007/11/16 05:30:13 bjs Exp $ # -DISTNAME= tor-0.1.2.17 -PKGREVISION= 1 +DISTNAME= tor-0.1.2.18 CATEGORIES= net security MASTER_SITES= http://tor.eff.org/dist/ @@ -63,7 +62,14 @@ post-install: ${PREFIX}/share/examples/tor/tor-tsocks.conf BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a + .include "../../devel/libevent/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" .include "../../security/openssl/buildlink3.mk" + +## We include this after other b3.mk files since we use PTHREAD_TYPE. +## +.include "options.mk" + .include "../../mk/bsd.pkg.mk" diff --git a/net/tor/distinfo b/net/tor/distinfo index 37879622878..3df1e15a305 100644 --- a/net/tor/distinfo +++ b/net/tor/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.25 2007/09/11 15:53:57 obache Exp $ +$NetBSD: distinfo,v 1.26 2007/11/16 05:30:13 bjs Exp $ -SHA1 (tor-0.1.2.17.tar.gz) = 01092fb75c407b5c1d7f33db069cf7641973d94d -RMD160 (tor-0.1.2.17.tar.gz) = 7ec316cdcc57ab5e817af1dcda913438b332f7e3 -Size (tor-0.1.2.17.tar.gz) = 1251636 bytes +SHA1 (tor-0.1.2.18.tar.gz) = ff2160d30cfcb8cd7b735236dcb641b4bcb3fbeb +RMD160 (tor-0.1.2.18.tar.gz) = e0ccd51288f7b41b5c4a21e49ce712066ce66a58 +Size (tor-0.1.2.18.tar.gz) = 1257011 bytes SHA1 (patch-ac) = adcc070e4d522143c4d882bd13436cd2b71f289b SHA1 (patch-ad) = 72a68cbd00a5febdff82ba9268bdad2b47ea8159 SHA1 (patch-ae) = 82977c38f18942de883a17d285ad9addd95e02f7 diff --git a/net/tor/options.mk b/net/tor/options.mk new file mode 100644 index 00000000000..85bac1c8ab8 --- /dev/null +++ b/net/tor/options.mk @@ -0,0 +1,23 @@ +PKG_OPTIONS_VAR= PKG_OPTIONS.tor +PKG_SUPPORTED_OPTIONS= threads + +.if !empty(PTHREAD_TYPE:Mnative) +PKG_SUGGESTED_OPTIONS+= threads +.endif +.include "../../mk/bsd.options.mk" + + +### +### This enables new code for threaded operation on NetBSD, OpenBSD, etc. +### I used {PTHREAD,RESOLV}_AUTO_VARS here for consistency's sake, as +### I don't trust configure scripts to do this properly on all platforms. +### +.if !empty(PKG_OPTIONS:Mthreads) +CONFIGURE_ARGS+= --enable-eventdns +CONFIGURE_ARGS+= --enable-threads +PTHREAD_OPTS+= require +PTHREAD_AUTO_VARS= yes +USE_FEATURES.openssl+= threads +.else +CONFIGURE_ARGS+= --disable-threads +.endif |