aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/grok/Makefile
blob: f20b18d0f3c4a057b3647f8ef8a7aa70bd672bca (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
38
39
40
41
42
43
44
# $FreeBSD$

PORTNAME=   grok
PORTVERSION=    1.20110708.1
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= sysutils
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= wxs@FreeBSD.org
COMMENT=    Expert system for real-time log analysis

BROKEN=     Unfetchable (google code has gone away)

OPTIONS_DEFINE= DOCS

BUILD_DEPENDS=  gperf>=3.0.3:devel/gperf
LIB_DEPENDS=    libpcre.so:devel/pcre \
        libevent.so:devel/libevent2 \
        libtokyocabinet.so:databases/tokyocabinet
RUN_DEPENDS:=   ${BUILD_DEPENDS}

MAKE_ENV+=  GPERF=${LOCALBASE}/bin/gperf \
        EXTRA_CFLAGS=-I${LOCALBASE}/include \
        EXTRA_LDFLAGS=-L${LOCALBASE}/lib

USES=       gmake pkgconfig
USE_LDCONFIG=   yes

SUB_FILES=  pkg-message

PROJECTHOST=    semicomplete
PORTDOCS=   CHANGELIST INSTALL

post-patch:
    @${REINPLACE_CMD} 's|PREFIX=|PREFIX?=|; s|-g root|-g wheel|; ' \
        ${WRKSRC}/Makefile

post-install:
    ${INSTALL_MAN} ${WRKSRC}/grok.1 ${STAGEDIR}${PREFIX}/man/man1
    @${INSTALL} -d ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>