Converted to the SUBST framework.
This commit is contained in:
parent
debd58bcce
commit
65f0098548
1 changed files with 7 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.15 2006/06/16 09:17:21 rillig Exp $
|
# $NetBSD: Makefile,v 1.16 2006/06/16 09:20:32 rillig Exp $
|
||||||
|
|
||||||
DISTNAME= logcheck-1.1.1
|
DISTNAME= logcheck-1.1.1
|
||||||
PKGREVISION= 1
|
PKGREVISION= 1
|
||||||
|
@ -19,16 +19,12 @@ CONF_FILES=
|
||||||
CONF_FILES+= ${EGDIR}/logcheck.${f} ${PKG_SYSCONFDIR}/logcheck.${f}
|
CONF_FILES+= ${EGDIR}/logcheck.${f} ${PKG_SYSCONFDIR}/logcheck.${f}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
pre-configure:
|
SUBST_CLASSES+= prefix
|
||||||
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
|
SUBST_STAGE.prefix= pre-configure
|
||||||
${SED} -e "s+/usr/local+${PREFIX}+g" \
|
SUBST_MESSAGE.prefix= Fixing hard-coded paths.
|
||||||
< ${WRKSRC}/Makefile.old > ${WRKSRC}/Makefile
|
SUBST_FILES.prefix= Makefile systems/freebsd/logcheck.sh
|
||||||
${MV} ${WRKSRC}/systems/freebsd/logcheck.sh \
|
SUBST_SED.prefix= -e "s+/usr/local+${PREFIX}+g"
|
||||||
${WRKSRC}/systems/freebsd/logcheck.sh.old
|
SUBST_SED.prefix+= -e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g"
|
||||||
${SED} -e "s+/usr/local+${PREFIX}+g" \
|
|
||||||
-e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g" \
|
|
||||||
${WRKSRC}/systems/freebsd/logcheck.sh.old > \
|
|
||||||
${WRKSRC}/systems/freebsd/logcheck.sh
|
|
||||||
|
|
||||||
pre-install:
|
pre-install:
|
||||||
${INSTALL_DATA_DIR} ${EGDIR}
|
${INSTALL_DATA_DIR} ${EGDIR}
|
||||||
|
|
Loading…
Reference in a new issue