pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net DESTDIR support
details: https://anonhg.NetBSD.org/pkgsrc/rev/3d9c5f19faae
branches: trunk
changeset: 571403:3d9c5f19faae
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Feb 11 21:33:29 2010 +0000
description:
DESTDIR support
diffstat:
net/ipcheck/Makefile | 6 ++++--
net/iperf/Makefile | 6 ++++--
net/iplog/Makefile | 9 ++++++---
3 files changed, 14 insertions(+), 7 deletions(-)
diffs (89 lines):
diff -r 0ef204969581 -r 3d9c5f19faae net/ipcheck/Makefile
--- a/net/ipcheck/Makefile Thu Feb 11 21:22:17 2010 +0000
+++ b/net/ipcheck/Makefile Thu Feb 11 21:33:29 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2010/02/10 19:17:43 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2010/02/11 21:33:29 joerg Exp $
#
DISTNAME= ipcheck.233
@@ -11,6 +11,8 @@
HOMEPAGE= http://ipcheck.sourceforge.net/
COMMENT= Python client for the dyndns service
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_SUFX= #none
@@ -21,7 +23,7 @@
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/ipcheck.py ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/ipcheck.py ${DESTDIR}${PREFIX}/bin
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 0ef204969581 -r 3d9c5f19faae net/iperf/Makefile
--- a/net/iperf/Makefile Thu Feb 11 21:22:17 2010 +0000
+++ b/net/iperf/Makefile Thu Feb 11 21:33:29 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2009/05/21 11:37:58 zafer Exp $
+# $NetBSD: Makefile,v 1.17 2010/02/11 21:34:34 joerg Exp $
DISTNAME= iperf-2.0.2
CATEGORIES= net
@@ -8,6 +8,8 @@
HOMEPAGE= http://dast.nlanr.net/Projects/Iperf/
COMMENT= TCP and UDP bandwidth performance measurement tool
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
@@ -27,7 +29,7 @@
post-install:
for f in ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif; do \
- ${INSTALL_DATA} $$f ${PREFIX}/share/doc/html/${PKGBASE}; \
+ ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/doc/html/${PKGBASE}; \
done
.include "../../mk/bsd.pkg.mk"
diff -r 0ef204969581 -r 3d9c5f19faae net/iplog/Makefile
--- a/net/iplog/Makefile Thu Feb 11 21:22:17 2010 +0000
+++ b/net/iplog/Makefile Thu Feb 11 21:33:29 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/02/05 23:10:25 joerg Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/11 21:36:18 joerg Exp $
#
DISTNAME= iplog-2.2.3
@@ -10,6 +10,8 @@
HOMEPAGE= http://ojnk.sourceforge.net/
COMMENT= Iplog is a tool using pcap to log IP traffic
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
GNU_CONFIGURE= YES
@@ -17,13 +19,14 @@
EGDIR= ${PREFIX}/share/examples/iplog
+INSTALLATION_DIRS+= ${EGDIR}
+
post-patch:
cd ${WRKSRC}/src && ${SED} s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g \
< iplog.h > iplog.h.patched && ${MV} iplog.h.patched iplog.h
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${EGDIR}/iplog.conf
+ ${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${DESTDIR}${EGDIR}/iplog.conf
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index