2001-01-14 19:24:21 +00:00
|
|
|
# ex:ts=8
|
2000-12-30 16:46:49 +00:00
|
|
|
# New ports collection makefile for: logtool
|
2001-01-14 19:24:21 +00:00
|
|
|
# Date created: Dec 30, 2000
|
2000-12-30 16:46:49 +00:00
|
|
|
# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= logtool
|
2003-05-09 12:23:23 +00:00
|
|
|
PORTVERSION= 1.2.2
|
2000-12-30 16:46:49 +00:00
|
|
|
CATEGORIES= sysutils
|
2003-05-09 12:23:23 +00:00
|
|
|
MASTER_SITES= http://xjack.org/logtool/download/
|
2000-12-30 16:46:49 +00:00
|
|
|
|
2003-05-09 12:23:23 +00:00
|
|
|
MAINTAINER= sergei@kolobov.com
|
|
|
|
COMMENT= Parse ASCII logfiles into ANSI, CSV, HTML formats
|
2000-12-30 16:46:49 +00:00
|
|
|
|
2003-05-09 12:23:23 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GETOPT_LONG= yes
|
2000-12-30 16:46:49 +00:00
|
|
|
|
2003-05-09 12:23:23 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/${PORTNAME}
|
2001-01-14 19:24:21 +00:00
|
|
|
|
2003-05-09 12:23:23 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2000-12-30 16:46:49 +00:00
|
|
|
|
2001-02-23 01:49:49 +00:00
|
|
|
MAN1= logtool.1
|
2003-05-09 12:23:23 +00:00
|
|
|
DOCS= CREDITS Changes README TODO doc/logtool.txt
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/src && ${GMAKE} INCLUDES="${CPPFLAGS}"
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/logtool ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
|
|
|
|
@${RM} ${EXAMPLESDIR}/logtool.conf.in
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/* ${EXAMPLESDIR}/scripts
|
2001-01-12 18:47:04 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-03-04 03:49:03 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-05-09 12:23:23 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2001-01-12 18:47:04 +00:00
|
|
|
.endif
|
2003-05-09 12:23:23 +00:00
|
|
|
@${SED} -e 's!PREFIX!${PREFIX}!' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
${CAT} ${PKGMESSAGE}
|
2001-01-12 18:47:04 +00:00
|
|
|
|
2000-12-30 16:46:49 +00:00
|
|
|
.include <bsd.port.mk>
|