diff options
author | jlam <jlam@pkgsrc.org> | 2001-08-16 04:45:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-08-16 04:45:52 +0000 |
commit | b496d8e4c77910d830269f0d47775fc9214500ae (patch) | |
tree | bd5e00592b148987b5e3e551ae60835a53d95738 /misc | |
parent | db03a38c1a0373d947e446c2a4a3df22f26a965d (diff) | |
download | pkgsrc-b496d8e4c77910d830269f0d47775fc9214500ae.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 |