diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rpm/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/misc/rpm/Makefile b/misc/rpm/Makefile index ee51917b1fc..fcb582c6d2e 100644 --- a/misc/rpm/Makefile +++ b/misc/rpm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2001/07/14 06:35:11 jlam Exp $ +# $NetBSD: Makefile,v 1.30 2001/08/16 04:45:52 jlam Exp $ # DISTNAME= rpm-2.5.4 @@ -12,21 +12,23 @@ COMMENT= The Red Hat Package Manager BUILD_USES_MSGFMT= yes -CONFLICTS+= rpm2cpio-* +CONFLICTS+= rpm2cpio-* GNU_CONFIGURE= yes USE_GMAKE= yes USE_BUILDLINK_ONLY= yes -DEINSTALL_FILE= ${WRKDIR}/DEINSTALL -INSTALL_FILE= ${WRKDIR}/INSTALL +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +FILES_SUBST= CAT=${CAT:Q} +FILES_SUBST+= MKDIR=${MKDIR:Q} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} pre-install: ${INSTALL_DATA_DIR} ${PREFIX}/include/rpm - ${SED} -e "s|@CAT@|${CAT}|g" \ - ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} - ${SED} -e "s|@MKDIR@|${MKDIR}|g" \ - ${PKGDIR}/INSTALL > ${INSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} post-install: PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL |