summaryrefslogtreecommitdiff
path: root/sysutils/log_analysis/Makefile
blob: 9f1369c27ab35c66b16fe825f1b9047828dc8c09 (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
45
46
# Created by: petef@FreeBSD.org
# $FreeBSD$

PORTNAME=	log_analysis
PORTVERSION=	0.46
CATEGORIES=	sysutils
MASTER_SITES=	http://userpages.umbc.edu/~mabzug1/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utility that extracts a summary of useful data from logs

LICENSE=	GPLv3

OPTIONS_DEFINE=	DOCS EXAMPLES TK

USES=		perl5
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	PERL="${PERL}"

MAN1=		log_analysis.1
PORTDOCS=	*
PORTEXAMPLES=	*
PLIST_FILES=	bin/log_analysis \
		%%DATADIR%%/AUTHORS \
		%%DATADIR%%/Tk/resizebutton.pm
PLIST_DIRS=	%%DATADIR%%/Tk \
		%%DATADIR%%

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MTK}
RUN_DEPENDS+=	p5-Tk>0:${PORTSDIR}/x11-toolkits/p5-Tk
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/Tutorial ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/sample-* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>