pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/netcat Added support for installation to DESTDIR.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ea47dcac2a9b
branches: trunk
changeset: 528933:ea47dcac2a9b
user: heinz <heinz%pkgsrc.org@localhost>
date: Sun May 20 15:38:33 2007 +0000
description:
Added support for installation to DESTDIR.
diffstat:
net/netcat/Makefile | 31 +++++++++++++++++--------------
1 files changed, 17 insertions(+), 14 deletions(-)
diffs (54 lines):
diff -r 36910f1fffb3 -r ea47dcac2a9b net/netcat/Makefile
--- a/net/netcat/Makefile Sun May 20 15:26:49 2007 +0000
+++ b/net/netcat/Makefile Sun May 20 15:38:33 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2006/11/12 20:58:51 rillig Exp $
+# $NetBSD: Makefile,v 1.30 2007/05/20 15:38:33 heinz Exp $
DISTNAME= nc110
PKGNAME= netcat-1.10
@@ -15,6 +15,7 @@
HOMEPAGE= http://www.securityfocus.com/tools/137
COMMENT= Read and write data across network connections
+PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
@@ -41,21 +42,23 @@
@cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} ${MAKE} ${EXTRA_PROGS}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/nc ${DESTDIR:Q}${PREFIX:Q}/sbin
.for i in ${EXTRA_PROGS}
- ${INSTALL_PROGRAM} ${WRKSRC}/data/${i} ${PREFIX}/sbin/nc-${i}
+ ${INSTALL_PROGRAM} ${WRKSRC}/data/${i} \
+ ${DESTDIR:Q}${PREFIX:Q}/sbin/nc-${i}
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/${EXAMPLE_DIR}
- @( \
- cd ${WRKSRC}/data; \
- ${RM} -f PLIST.data; \
- for i in README Makefile *.c *.d; \
- do \
- ${INSTALL_DATA} $$i ${PREFIX}/${EXAMPLE_DIR}; \
- ${ECHO} ${EXAMPLE_DIR}/$$i >> PLIST.data; \
- done; \
- ${ECHO} "@dirrm ${EXAMPLE_DIR}" >> PLIST.data; \
+ ${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}
+ @( \
+ cd ${WRKSRC}/data; \
+ ${RM} -f PLIST.data; \
+ for i in README Makefile *.c *.d; \
+ do \
+ ${INSTALL_DATA} $$i ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}; \
+ ${ECHO} ${EXAMPLE_DIR}/$$i >> PLIST.data; \
+ done; \
+ ${ECHO} "@dirrm ${EXAMPLE_DIR}" >> PLIST.data; \
)
- ${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/${PKGMANDIR}/man1/nc.1
+ ${INSTALL_MAN} ${FILESDIR}/nc.1 \
+ ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/nc.1
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index