summaryrefslogtreecommitdiff
path: root/sysutils/gather/Makefile
blob: 41656a33beb3e1e08827bdd6a9f459b65624864b (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:	gather
# Date created:				14 February 2010
# Whom:					Mikolaj Golub <to.my.trociny@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	gather
PORTVERSION=	0.4.1
CATEGORIES=	sysutils
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	trociny@FreeBSD.org
COMMENT=	Utility to store and display system statistics

LICENSE=	BSD

PROJECTHOST=	gatherit

USES=		perl5

CONFLICTS_INSTALL=	harvest-[0-9]*

DATADIR=	/var/db/gather
MAKE_ENV+=	CONFDIR=${PREFIX}/etc/gather DATADIR=${DATADIR}

SUB_FILES=	pkg-message

MAN1=		gather.1

.if !defined(NOPORTDOCS)
PORTDOCS=	Changelog README
.endif
.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES=	*
.endif

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/gather ${PREFIX}/bin/
	@${INSTALL_MAN} ${WRKSRC}/gather.1 ${PREFIX}/man/man1
.if !exists(${PREFIX}/etc/gather)
	@${MKDIR} ${PREFIX}/etc/gather
.endif
	@${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg.sample
.if !exists(${CONFDIR}/gather.cfg)
	@${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg
.endif
	@${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map.sample
.if !exists(${PREFIX}/etc/gather/gather.cfg)
	@${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map
.endif
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
	@${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>