diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 19:21:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 19:21:37 +0000 |
commit | 0bb78c6c9d3855e92497417696475484322d451c (patch) | |
tree | c5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/vmware-module3/Makefile | |
parent | 9bd3464e7e916d97f1e733a71b79c48999897987 (diff) | |
download | pkgsrc-0bb78c6c9d3855e92497417696475484322d451c.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'emulators/vmware-module3/Makefile')
-rw-r--r-- | emulators/vmware-module3/Makefile | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/emulators/vmware-module3/Makefile b/emulators/vmware-module3/Makefile index 971bb21e119..b274f7c1b11 100644 --- a/emulators/vmware-module3/Makefile +++ b/emulators/vmware-module3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2007/10/11 10:22:56 jnemeth Exp $ +# $NetBSD: Makefile,v 1.24 2008/03/03 19:21:38 jlam Exp $ DISTNAME= vmware-netbsd-3.2.1.8 PKGNAME= vmware-module-3.2.1.8 @@ -14,6 +14,8 @@ CONFLICTS= vmware-module-1.* ONLY_FOR_PLATFORM= NetBSD-*-i386 +PKG_DESTDIR_SUPPORT= user-destdir + NO_CONFIGURE= yes NO_SRC_ON_FTP= already there @@ -42,24 +44,34 @@ do-build: .endfor do-install: - ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/linuxrtc ${PREFIX}/etc/rc.conf.d - ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmmon ${PREFIX}/etc/rc.conf.d - ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmnet ${PREFIX}/etc/rc.conf.d - ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmnetif ${PREFIX}/etc/rc.conf.d - ${INSTALL_DATA} ${WRKSRC}/source/linuxrtc/linuxrtc.o ${PREFIX}/lkm - ${INSTALL_DATA} ${WRKSRC}/source/vmmon/vmmon.o ${PREFIX}/lkm - ${INSTALL_DATA} ${WRKSRC}/source/vmnet/vmnet.o ${PREFIX}/lkm - ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/vmnet_post.sh ${PREFIX}/lkm - ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/linuxrtc_post.sh ${PREFIX}/lkm - ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/vmmon_post.sh ${PREFIX}/lkm + ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/linuxrtc \ + ${DESTDIR}${PREFIX}/etc/rc.conf.d + ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmmon \ + ${DESTDIR}${PREFIX}/etc/rc.conf.d + ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmnet \ + ${DESTDIR}${PREFIX}/etc/rc.conf.d + ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmnetif \ + ${DESTDIR}${PREFIX}/etc/rc.conf.d + ${INSTALL_DATA} ${WRKSRC}/source/linuxrtc/linuxrtc.o \ + ${DESTDIR}${PREFIX}/lkm + ${INSTALL_DATA} ${WRKSRC}/source/vmmon/vmmon.o \ + ${DESTDIR}${PREFIX}/lkm + ${INSTALL_DATA} ${WRKSRC}/source/vmnet/vmnet.o \ + ${DESTDIR}${PREFIX}/lkm + ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/vmnet_post.sh \ + ${DESTDIR}${PREFIX}/lkm + ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/linuxrtc_post.sh \ + ${DESTDIR}${PREFIX}/lkm + ${INSTALL_SCRIPT} ${WRKSRC}/share/lkm/vmmon_post.sh \ + ${DESTDIR}${PREFIX}/lkm @cd ${WRKSRC}/rc.d && for f in linuxrtc vmmon vmnet vmnetif; do \ ${SED} -e 's,@PREFIX@,${PREFIX},' < $$f > $$f.patched; \ - ${INSTALL_SCRIPT} $$f.patched ${PREFIX}/etc/rc.d/$$f; \ + ${INSTALL_SCRIPT} $$f.patched ${DESTDIR}${PREFIX}/etc/rc.d/$$f; \ done ${SED} -e 's,@VMWARE_PREFIX@,${PREFIX},' \ < ${WRKSRC}/rc.conf.d/vmware > ${WRKSRC}/rc.conf.d/vmware.patched ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmware.patched \ - ${PREFIX}/etc/rc.conf.d/vmware + ${DESTDIR}${PREFIX}/etc/rc.conf.d/vmware .include "../../mk/bsd.pkg.mk" |