Lines 6-55
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= grok |
8 |
PORTNAME= grok |
9 |
PORTVERSION= 20070915 |
9 |
PORTVERSION= 20091103 |
10 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
11 |
MASTER_SITES= http://www.semicomplete.com/files/grok/ \ |
11 |
MASTER_SITES= GOOGLE_CODE |
12 |
http://www.atarininja.org/~wxs/distfiles/ |
|
|
13 |
|
12 |
|
14 |
MAINTAINER= wxs@FreeBSD.org |
13 |
MAINTAINER= wxs@FreeBSD.org |
15 |
COMMENT= An expert system for real-time log analysis |
14 |
COMMENT= An expert system for real-time log analysis |
16 |
|
15 |
|
17 |
RUN_DEPENDS= ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \ |
16 |
BUILD_DEPENDS= gperf>=3.0.3:${PORTSDIR}/devel/gperf \ |
18 |
${SITE_PERL}/Parse/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent \ |
17 |
libevent>=1.3:${PORTSDIR}/devel/libevent \ |
19 |
${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \ |
18 |
pcre>=7.6:${PORTSDIR}/devel/pcre \ |
20 |
${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \ |
19 |
tokyocabinet>=1.4.9:${PORTSDIR}/databases/tokyocabinet |
21 |
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI |
20 |
|
22 |
|
21 |
MAKE_ENV+= GPERF=${LOCALBASE}/bin/gperf \ |
23 |
USE_PERL5= yes |
22 |
EXTRA_CFLAGS=-I${LOCALBASE}/include \ |
24 |
USE_RC_SUBR= grok.sh |
23 |
EXTRA_LDFLAGS=-L${LOCALBASE}/lib |
25 |
NO_BUILD= yes |
24 |
|
|
|
25 |
USE_GMAKE= yes |
26 |
USE_LDCONFIG= yes |
26 |
|
27 |
|
27 |
SUB_FILES= pkg-message |
28 |
SUB_FILES= pkg-message |
28 |
SUB_LIST= PERL=${PERL} |
|
|
29 |
|
29 |
|
30 |
PORTDOCS= CHANGELIST |
30 |
PROJECTHOST= semicomplete |
31 |
PORTEXAMPLES= line-to-byte-offset.conf |
31 |
PORTDOCS= CHANGELIST INSTALL |
32 |
MAN1= grok.1 |
32 |
|
33 |
|
33 |
post-patch: |
34 |
do-install: |
34 |
@${REINPLACE_CMD} 's|PREFIX=|PREFIX?=|; s|-g root|-g wheel|' \ |
35 |
@${INSTALL_SCRIPT} ${WRKSRC}/grok ${PREFIX}/bin |
35 |
${WRKSRC}/Makefile |
36 |
@${INSTALL_SCRIPT} ${WRKSRC}/grok_patfind.pl ${PREFIX}/bin |
|
|
37 |
@${INSTALL_DATA} ${WRKSRC}/grok.conf ${PREFIX}/etc/grok.conf.sample |
38 |
@${INSTALL_MAN} ${WRKSRC}/grok.1 ${MANPREFIX}/man/man1 |
39 |
|
36 |
|
40 |
post-install: |
37 |
post-install: |
41 |
@if [ ! -f ${PREFIX}/etc/grok.conf ]; then \ |
|
|
42 |
${CP} -p ${PREFIX}/etc/grok.conf.sample ${PREFIX}/etc/grok.conf ; \ |
43 |
fi |
44 |
.if !defined(NOPORTDOCS) |
38 |
.if !defined(NOPORTDOCS) |
45 |
@${INSTALL} -d ${DOCSDIR} |
39 |
@${INSTALL} -d ${DOCSDIR} |
46 |
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
40 |
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
47 |
.endif |
41 |
.endif |
48 |
.if !defined(NOPORTEXAMPLES) |
|
|
49 |
@${INSTALL} -d ${EXAMPLESDIR}/ |
50 |
@cd ${WRKSRC}/examples/ && \ |
51 |
${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/ |
52 |
.endif |
53 |
@${CAT} ${PKGMESSAGE} |
42 |
@${CAT} ${PKGMESSAGE} |
54 |
|
43 |
|
55 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |