diff options
author | tron <tron@pkgsrc.org> | 2008-11-16 10:25:34 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-11-16 10:25:34 +0000 |
commit | 6055ccc1bc5286e8dca4e029cd02beba7481c5c2 (patch) | |
tree | 593330ec6800e2c978b69c0a4c0d80223f04ef03 | |
parent | c390ef9a2f36440795f2f9d73db264142ac4e31f (diff) | |
download | pkgsrc-6055ccc1bc5286e8dca4e029cd02beba7481c5c2.tar.gz |
Add support for user destination directory installation.
Patch provided by Aleksey Cheusov.
-rw-r--r-- | pkgtools/rpm2pkg/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgtools/rpm2pkg/Makefile b/pkgtools/rpm2pkg/Makefile index 2fa71a2383f..919f67de214 100644 --- a/pkgtools/rpm2pkg/Makefile +++ b/pkgtools/rpm2pkg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2008/05/25 20:49:39 tron Exp $ +# $NetBSD: Makefile,v 1.38 2008/11/16 10:25:34 tron Exp $ DISTNAME= rpm2pkg-2.1.1 PKGREVISION= 2 @@ -12,6 +12,8 @@ COMMENT= Convert RPM archives to NetBSD packages CONFLICTS+= suse-base<=6.4 +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} NO_CHECKSUM= YES @@ -32,8 +34,8 @@ do-build: ${FILESDIR}/rpm2pkg.c ${LIBS} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin - ${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${DESTDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 .include "../../archivers/bzip2/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" |