pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/tsocks Added support for installation to DESTDIR.
details: https://anonhg.NetBSD.org/pkgsrc/rev/a76e033e03ba
branches: trunk
changeset: 569969:a76e033e03ba
user: heinz <heinz%pkgsrc.org@localhost>
date: Thu Jan 21 23:40:18 2010 +0000
description:
Added support for installation to DESTDIR.
diffstat:
net/tsocks/Makefile | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 45c16901668a -r a76e033e03ba net/tsocks/Makefile
--- a/net/tsocks/Makefile Thu Jan 21 23:32:10 2010 +0000
+++ b/net/tsocks/Makefile Thu Jan 21 23:40:18 2010 +0000
@@ -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 @@
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_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"
Home |
Main Index |
Thread Index |
Old Index