summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorheinz <heinz>2010-01-21 23:40:18 +0000
committerheinz <heinz>2010-01-21 23:40:18 +0000
commitba5b533fb0c43964acecdba9a2b87d6d2a657542 (patch)
tree46db6a980e8218762c2c66634e9a78135c4b5ff0 /net
parent09cb007b22e76a08b44c172f1876568366eca15f (diff)
downloadpkgsrc-ba5b533fb0c43964acecdba9a2b87d6d2a657542.tar.gz
Added support for installation to DESTDIR.
Diffstat (limited to 'net')
-rw-r--r--net/tsocks/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/tsocks/Makefile b/net/tsocks/Makefile
index d3a74766a0c..b646edff672 100644
--- a/net/tsocks/Makefile
+++ b/net/tsocks/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2010/01/21 23:32:10 heinz Exp $
+# $NetBSD: Makefile,v 1.15 2010/01/21 23:40:18 heinz Exp $
#
DISTNAME= tsocks-1.8beta5
@@ -11,6 +11,8 @@ HOMEPAGE= http://tsocks.sourceforge.net/
COMMENT= Transparent SOCKS proxying library
LICENSE= gnu-gpl-v2
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_JOBS_SAFE= no
WRKSRC= ${WRKDIR}/tsocks-1.8
@@ -28,16 +30,17 @@ SUBST_MESSAGE.tsocks= Generating tsocks wrapper script.
SUBST_FILES.tsocks= tsocks
SUBST_SED.tsocks= -e "s|@SH@|${SH}|g" -e "s|@PREFIX@|${PREFIX}|g"
+INSTALLATION_DIRS+= ${EGDIR}
+
post-extract:
${RM} -f ${WRKSRC}/config.cache
${CP} ${FILESDIR}/tsocks.sh ${WRKSRC}/tsocks
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/tsocks ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/tsocks ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.complex.example \
- ${EGDIR}/tsocks.conf.complex
+ ${DESTDIR}${EGDIR}/tsocks.conf.complex
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example \
- ${EGDIR}/tsocks.conf.simple
+ ${DESTDIR}${EGDIR}/tsocks.conf.simple
.include "../../mk/bsd.pkg.mk"