diff options
author | heinz <heinz@pkgsrc.org> | 2008-01-12 23:43:53 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2008-01-12 23:43:53 +0000 |
commit | c05a759fd361cbccc496c53f19add09e52876c3a (patch) | |
tree | 38cb617d93d1e3b700fc3834bc11f388924f5417 /misc/rpm | |
parent | 4a360572ad90d84f0283875c18f9e9e62f334b46 (diff) | |
download | pkgsrc-c05a759fd361cbccc496c53f19add09e52876c3a.tar.gz |
The package supports installation to DESTDIR.
Diffstat (limited to 'misc/rpm')
-rw-r--r-- | misc/rpm/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/rpm/Makefile b/misc/rpm/Makefile index 6dd79320af6..4fe6b39374c 100644 --- a/misc/rpm/Makefile +++ b/misc/rpm/Makefile @@ -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 @@ MAINTAINER= pkgsrc-users@NetBSD.org 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_ARGS+= --datadir=${PREFIX}/${PKGLOCALEDIR} 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 @@ post-configure: 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 |