diff options
author | jlam <jlam> | 2001-08-16 04:45:52 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-08-16 04:45:52 +0000 |
commit | 8580b74962497b1b71e436f01cda63bbcfb50de1 (patch) | |
tree | bd5e00592b148987b5e3e551ae60835a53d95738 /misc | |
parent | f114fccca95572af83149a5c785f9ca8815bf2c0 (diff) | |
download | pkgsrc-8580b74962497b1b71e436f01cda63bbcfb50de1.tar.gz |
Use FILES_SUBST{,_SED} instead of a separate listing of variables to
substitute by sed for INSTALL/DEINSTALL.
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 |