[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / parallel / ganglia-monitor-core

File: [cvs.NetBSD.org] / pkgsrc / parallel / ganglia-monitor-core / Makefile (download)

Revision 1.18, Sat Jan 12 11:36:33 2008 UTC (11 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.17: +2 -2 lines

db4 update related revision bump

# $NetBSD: Makefile,v 1.18 2008/01/12 11:36:33 adam Exp $
#

DISTNAME=		ganglia-3.0.1
PKGNAME=		ganglia-monitor-core-3.0.1
PKGREVISION=		7
CATEGORIES=		net parallel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=ganglia/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		jschauma@NetBSD.org
HOMEPAGE=		http://ganglia.sourceforge.net/
COMMENT=		Ganglia cluster monitor, monitoring daemon

GNU_CONFIGURE=		YES

CONFIGURE_ARGS+=	--with-gmetad
USE_LIBTOOL=		yes
CONFIG_GUESS_OVERRIDE?=		\
	config.guess */config.guess */*/config.guess */*/*/config.guess
CONFIG_SUB_OVERRIDE?=		\
	config.sub */config.sub */*/config.sub */*/*/config.sub

PATCH_ETC=		mans/gmetad.1 mans/gmond.1			\
			gmetad/cmdline.c gmetad/conf.c 			\
			gmond/cmdline.c gmond/g25_config.h		\
			ganglia.html

EGDIR=			${PREFIX}/share/examples/ganglia
CONF_FILES=		${EGDIR}/gmond.conf ${PKG_SYSCONFDIR}/gmond.conf
CONF_FILES+=		${EGDIR}/gmetad.conf ${PKG_SYSCONFDIR}/gmetad.conf

RCD_SCRIPTS=		gmond gmetad

pre-patch:
	${MKDIR} ${WRKSRC}/srclib/libmetrics/netbsd
	${MKDIR} ${WRKSRC}/srclib/libmetrics/dragonfly
	${CP} ${FILESDIR}/dfly-metrics.c ${WRKSRC}/srclib/libmetrics/dragonfly/metrics.c
	${CP} ${FILESDIR}/dfly-Makefile.am ${WRKSRC}/srclib/libmetrics/dragonfly/Makefile.am
	${CP} ${FILESDIR}/dfly-Makefile.in ${WRKSRC}/srclib/libmetrics/dragonfly/Makefile.in

post-patch:
.for pfile in ${PATCH_ETC}
	${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' 		\
		${WRKSRC}/${pfile} > ${WRKSRC}/${pfile}.tmp &&		\
		${MV}  ${WRKSRC}/${pfile}.tmp ${WRKSRC}/${pfile}
.endfor

post-install:
	${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_MAN} ${WRKSRC}/mans/gmetric.1 ${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_MAN} ${WRKSRC}/mans/gmond.1 ${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_MAN} ${WRKSRC}/mans/gstat.1 ${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/gmetad/gmetad.conf ${EGDIR}/
	${PREFIX}/sbin/gmond -t > ${EGDIR}/gmond.conf

BUILDLINK_DEPENDS.apr+=	apr>=0.9.7.2.0.55nb3

.include "../../devel/apr0/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../databases/rrdtool/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"

.include "../../mk/bsd.pkg.mk"