blob: 436ee674b735a00c8859d94f796cf07b2169bfa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.14 2006/06/16 17:48:47 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 man/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}/man/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"
|