blob: 05c63b2b550177bcb662e5b319675c56e3f5715f (
plain) (
blame)
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
|
# Created by: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
# $FreeBSD$
PORTNAME= logtool
PORTVERSION= 1.3.1
CATEGORIES= sysutils
MASTER_SITES= http://xjack.org/logtool/download/
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Parse ASCII logfiles into ANSI, CSV, HTML formats
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
DOCS= CHANGES CREDITS README TODO doc/logtool.txt
do-build:
cd ${WRKSRC}/src && ${MAKE_CMD} INCLUDES="${CPPFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/logtool ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}
@${RM} ${STAGEDIR}${EXAMPLESDIR}/logtool.conf.in
${INSTALL_DATA} ${WRKSRC}/scripts/* ${STAGEDIR}${EXAMPLESDIR}/scripts
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
@${SED} -e 's!PREFIX!${PREFIX}!' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
.include <bsd.port.mk>
|