summaryrefslogtreecommitdiff
path: root/net/tor/Makefile
diff options
context:
space:
mode:
authorhauke <hauke>2012-06-14 14:50:45 +0000
committerhauke <hauke>2012-06-14 14:50:45 +0000
commit8a6f28cda19eadf7ecbcfe0de90f8136a47beb27 (patch)
tree030e1630a919af66ba8bd2388dd7246d00bb407b /net/tor/Makefile
parent469367e08c6a5b1a3d28162a0074da531b72b8dc (diff)
downloadpkgsrc-8a6f28cda19eadf7ecbcfe0de90f8136a47beb27.tar.gz
Properly substitute absolute path /etc/tor in torify(1). While here,
update the package. Patch from Blair Sadewitz, submitted in PR pkg/46598.
Diffstat (limited to 'net/tor/Makefile')
-rw-r--r--net/tor/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/tor/Makefile b/net/tor/Makefile
index b0552c39cc5..3031b5081d1 100644
--- a/net/tor/Makefile
+++ b/net/tor/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.85 2011/12/17 12:39:43 drochner Exp $
+# $NetBSD: Makefile,v 1.86 2012/06/14 14:50:45 hauke Exp $
#
-DISTNAME= tor-0.2.2.35
+DISTNAME= tor-0.2.2.36
CATEGORIES= net security
MASTER_SITES= http://www.torproject.org/dist/
# MASTER_SITES redirects to https, and ftp(1) cannot handle that.
@@ -56,6 +56,12 @@ CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
FILES_SUBST+= PKG_HOME=${PKG_HOME}
FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_MESSAGE.fix-paths= Fixing absolute paths.
+SUBST_FILES.fix-paths= contrib/torify.in
+SUBST_SED.fix-paths= -e 's,"/etc/tor,"${PKG_SYSCONFDIR},g'
+
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
CHECK_PORTABILITY_SKIP+=contrib/*