pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/squidpurge user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f02877e51e00
branches:  trunk
changeset: 395232:f02877e51e00
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 18:56:23 2009 +0000

description:
user-destdir support

diffstat:

 www/squidpurge/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r f8f5e135bac4 -r f02877e51e00 www/squidpurge/Makefile
--- a/www/squidpurge/Makefile   Tue Jul 07 18:56:04 2009 +0000
+++ b/www/squidpurge/Makefile   Tue Jul 07 18:56:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/02/22 19:30:06 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2009/07/07 18:56:23 joerg Exp $
 #
 
 DISTNAME=      purge-${PURGEVERSION}-src
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.wa.apana.org.au/~dean/squidpurge/
 COMMENT=       Squid cache tool to list, extract or purge objects
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 PURGEVERSION=  20040201
 
 WRKSRC=                ${WRKDIR}/purge
@@ -18,9 +20,10 @@
 USE_TOOLS+=    gmake
 USE_LANGUAGES= c++
 
+INSTALLATION_DIRS=     bin share/doc/squidpurge
+
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/purge ${PREFIX}/bin/squidpurge
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/squidpurge
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/squidpurge
+       ${INSTALL_PROGRAM} ${WRKSRC}/purge ${DESTDIR}${PREFIX}/bin/squidpurge
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/squidpurge
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index