aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sec/Makefile
blob: 2b28ac71f233d13fa97dfdca8507483a2c28aa4f (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
PORTNAME=	sec
DISTVERSION=	2.9.1
CATEGORIES=	sysutils
MASTER_SITES=	SF/simple-evcorr/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ecu@200ok.org
COMMENT=	Simple event (logs) correlator
WWW=		https://simple-evcorr.github.io/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		perl5 shebangfix
USE_RC_SUBR=	sec

SHEBANG_FILES=	sec

SUB_LIST=	PERL=${PERL}

NO_BUILD=	yes
NO_ARCH=	yes

PORTDOCS=	ChangeLog README

PORTCONTRIB=	convert.pl itostream.c swatch2sec.pl

PLIST_FILES=	bin/sec \
		man/man8/sec.8.gz \
		${PORTCONTRIB:S|^|share/sec/|}

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/sec.man ${STAGEDIR}${MANPREFIX}/man/man8/sec.8
	@${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${PORTCONTRIB} ${STAGEDIR}${DATADIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>