2006-03-15 10:39:34 +00:00
|
|
|
# Ports collection makefile for: grok
|
|
|
|
# Date created: 07 March 2006
|
2007-09-21 21:24:58 +00:00
|
|
|
# Whom: Wesley Shields <wxs@atarininja.org>
|
2006-03-15 10:39:34 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= grok
|
2007-09-21 21:24:58 +00:00
|
|
|
PORTVERSION= 20070915
|
2006-03-15 10:39:34 +00:00
|
|
|
CATEGORIES= sysutils
|
2007-04-09 20:53:25 +00:00
|
|
|
MASTER_SITES= http://www.semicomplete.com/files/grok/ \
|
2007-02-25 07:20:48 +00:00
|
|
|
http://www.atarininja.org/~wxs/distfiles/
|
2006-03-15 10:39:34 +00:00
|
|
|
|
2008-02-04 15:35:12 +00:00
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
2006-03-15 10:39:34 +00:00
|
|
|
COMMENT= An expert system for real-time log analysis
|
|
|
|
|
2006-04-06 08:34:20 +00:00
|
|
|
RUN_DEPENDS= ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
|
2006-03-15 10:39:34 +00:00
|
|
|
${SITE_PERL}/Parse/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
|
2007-02-25 07:20:48 +00:00
|
|
|
${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI
|
2006-03-15 10:39:34 +00:00
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_RC_SUBR= grok.sh
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= PERL=${PERL}
|
|
|
|
|
2007-09-21 21:24:58 +00:00
|
|
|
PORTDOCS= CHANGELIST
|
|
|
|
PORTEXAMPLES= line-to-byte-offset.conf
|
2006-03-15 10:39:34 +00:00
|
|
|
MAN1= grok.1
|
|
|
|
|
|
|
|
do-install:
|
2007-09-21 21:24:58 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/grok ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/grok_patfind.pl ${PREFIX}/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/grok.conf ${PREFIX}/etc/grok.conf.sample
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/grok.1 ${MANPREFIX}/man/man1
|
2006-03-15 10:39:34 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/grok.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/grok.conf.sample ${PREFIX}/etc/grok.conf ; \
|
|
|
|
fi
|
2007-09-21 21:24:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${INSTALL} -d ${EXAMPLESDIR}/
|
|
|
|
@cd ${WRKSRC}/examples/ && \
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
|
|
|
.endif
|
2006-03-15 10:39:34 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|