pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/hddtemp DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7f118cce796
branches:  trunk
changeset: 577029:e7f118cce796
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jun 28 10:23:08 2010 +0000

description:
DESTDIR support

diffstat:

 sysutils/hddtemp/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 8cf24b66c83b -r e7f118cce796 sysutils/hddtemp/Makefile
--- a/sysutils/hddtemp/Makefile Mon Jun 28 10:13:01 2010 +0000
+++ b/sysutils/hddtemp/Makefile Mon Jun 28 10:23:08 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/02/22 19:27:11 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2010/06/28 10:23:08 joerg Exp $
 
 DISTNAME=      hddtemp-0.3-beta15
 PKGNAME=       hddtemp-0.3b15
@@ -13,6 +13,7 @@
 
 SITES.hddtemp.db=      http://www.guzu.net/linux/
 
+PKG_DESTDIR_SUPPORT=   user-destdir
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 ONLY_FOR_PLATFORM=     Linux-*-*
 
@@ -24,8 +25,9 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+INSTALLATION_DIRS+=    share/misc
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/misc
-       ${INSTALL_DATA} ${DISTDIR}/hddtemp.db ${PREFIX}/share/misc
+       ${INSTALL_DATA} ${DISTDIR}/hddtemp.db ${DESTDIR}${PREFIX}/share/misc
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index