INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with ${PREFIX}/${PKGMANDIR}. Fixes PR 35265, although I did not use the patch provided therein.
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2007/01/07 09:14:00 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= colorize_0.3.0
|
|
PKGNAME= colorize-0.3.0
|
|
PKGREVISION= 1
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://nrg.martos.bme.hu/release/colorize/download/bz2/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= zuntum@NetBSD.org
|
|
HOMEPAGE= http://nrg.martos.bme.hu/release/colorize/
|
|
COMMENT= Log colorize perl script
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
NO_BUILD= yes
|
|
|
|
USE_TOOLS+= gunzip perl:run
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
SUBST_CLASSES+= color
|
|
SUBST_STAGE.color= pre-configure
|
|
SUBST_MESSAGE.color= Fixing hard-coded paths.
|
|
SUBST_FILES.color= colorize.pl examples/*.sh
|
|
SUBST_SED.color+= -e "s,/usr/bin/perl,${LOCALBASE}/bin/perl,"
|
|
SUBST_SED.color+= -e "s,/etc/colorizerc,${PKG_SYSCONFDIR}/colorizerc,"
|
|
SUBST_SED.color+= -e "s,/bin/bash,"${SH:Q}","
|
|
|
|
post-extract:
|
|
${GUNZIP_CMD} ${WRKSRC}/colorize.pl.1.gz
|
|
${GUNZIP_CMD} ${WRKSRC}/examples/colorize-fifo.sh.gz
|
|
${GUNZIP_CMD} ${WRKSRC}/examples/colorize-tail.sh.gz
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${PREFIX}/bin/colorize
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/colorize
|
|
${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/share/examples/colorize
|
|
${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 ${PREFIX}/${PKGMANDIR}/man1/colorize.1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/colorize
|
|
cd ${WRKSRC} && ${INSTALL_DATA} README TIPS ${PREFIX}/share/doc/colorize
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-fifo.sh \
|
|
${PREFIX}/share/examples/colorize
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-tail.sh \
|
|
${PREFIX}/share/examples/colorize
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Xlog.tar.gz ${PREFIX}/share/examples/colorize
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|