From df96e4dc21b0e8cd514f35747f845d590217f597 Mon Sep 17 00:00:00 2001 From: heinz Date: Thu, 21 Jan 2010 23:40:18 +0000 Subject: Added support for installation to DESTDIR. --- net/tsocks/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'net/tsocks') 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" -- cgit v1.2.3