pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/rpm The package supports installation to DESTDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b8b7a45a6cd
branches:  trunk
changeset: 537642:7b8b7a45a6cd
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Jan 12 23:43:53 2008 +0000

description:
The package supports installation to DESTDIR.

diffstat:

 misc/rpm/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 58530e8f70ed -r 7b8b7a45a6cd misc/rpm/Makefile
--- a/misc/rpm/Makefile Sat Jan 12 23:36:52 2008 +0000
+++ b/misc/rpm/Makefile Sat Jan 12 23:43:53 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2007/05/13 00:55:14 gdt Exp $
+# $NetBSD: Makefile,v 1.66 2008/01/12 23:43:53 heinz Exp $
 
 DISTNAME=      rpm-2.5.4
 PKGREVISION=   6
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://www.rpm.org/
 COMMENT=       The Red Hat Package Manager
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFLICTS+=            rpm2cpio<1.0nb1
 
 NOT_FOR_PLATFORM+=     Interix-*-* # getmntent() is nonpublic; needs porting
@@ -26,6 +28,7 @@
 CONFIGURE_ENV+=                varprefix=${RPM_DB_PREFIX:Q}
 
 MAKE_FLAGS+=           MANDIR=${PREFIX}/${PKGMANDIR}/man8
+MAKE_FLAGS+=           ROOT=${DESTDIR}
 
 RPMDIR=                        ${RPM_DB_PREFIX}/lib/rpm
 FILES_SUBST+=          RPMDIR=${RPMDIR:Q}
@@ -36,11 +39,11 @@
        cd ${WRKSRC}/po && ${MV} cz.po cs.po
 
 pre-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/include/rpm
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/rpm
 
 .if defined(RANLIB)
 post-install:
-       $(RANLIB) ${PREFIX}/lib/librpm.a
+       $(RANLIB) ${DESTDIR}${PREFIX}/lib/librpm.a
 .endif
 
 # The configure script doesn't detect whether libintl.so has any



Home | Main Index | Thread Index | Old Index