summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2010-01-21 23:40:18 +0000
committerheinz <heinz@pkgsrc.org>2010-01-21 23:40:18 +0000
commitdf96e4dc21b0e8cd514f35747f845d590217f597 (patch)
tree46db6a980e8218762c2c66634e9a78135c4b5ff0 /net
parent86f04a46d05c7e59f44f7168b5045d81537df6ef (diff)
downloadpkgsrc-df96e4dc21b0e8cd514f35747f845d590217f597.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"