1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/sysutils/gather/Makefile
Sunpoet Po-Chuan Hsieh 5cf42c2028 - Update to 0.4.0
Changes:
- die when failing to eval configs
- script command added
- archive command added
- plot command added (gnuplot is required)

PR:		ports/151678
Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com> (maintainer)
Approved by:	pgollucci (mentor, implicit)
2010-10-25 16:06:32 +00:00

61 lines
1.5 KiB
Makefile

# 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.0
CATEGORIES= sysutils
MASTER_SITES= GOOGLE_CODE
MAINTAINER= to.my.trociny@gmail.com
COMMENT= Utility to store and display system statistics
PROJECTHOST= gatherit
USE_PERL5= yes
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>