2018-09-21 16:48:08 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2018/09/21 14:48:08 bacon Exp $
|
2005-02-07 15:39:27 +01:00
|
|
|
#
|
|
|
|
|
2016-06-17 14:09:08 +02:00
|
|
|
DISTNAME= ganglia-web-3.7.2
|
2018-09-21 16:48:08 +02:00
|
|
|
PKGREVISION= 2
|
2016-02-16 14:05:23 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/web/webfrontend/}
|
2005-02-07 15:39:27 +01:00
|
|
|
CATEGORIES= www parallel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ganglia/}
|
|
|
|
|
2009-02-16 14:53:45 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-02-07 15:39:27 +01:00
|
|
|
HOMEPAGE= http://ganglia.sourceforge.net/
|
|
|
|
COMMENT= PHP based frontend for the Ganglia Cluster Monitor
|
2016-02-16 14:05:23 +01:00
|
|
|
LICENSE= modified-bsd
|
2005-02-07 15:39:27 +01:00
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
DEPENDS+= ganglia-monitor-core>=3.7.1:../../parallel/ganglia-monitor-core
|
2005-02-07 15:39:27 +01:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
2005-02-07 15:39:27 +01:00
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
MESSAGE_SUBST+= DOCROOT=${DOCROOT}
|
2005-02-07 15:39:27 +01:00
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
PKG_SYSCONFSUBDIR= ganglia
|
|
|
|
DOCROOT= share/ganglia
|
|
|
|
EGDIR= share/examples/ganglia
|
|
|
|
|
|
|
|
# Should match parallel/ganglia-monitor-core
|
|
|
|
GANGLIA_VARBASE?= ${VARBASE}/db
|
|
|
|
GWEB_DIR?= ${GANGLIA_VARBASE}/ganglia
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+= ${GWEB_DIR}/dwoo ${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+= ${GWEB_DIR}/dwoo/cache ${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+= ${GWEB_DIR}/dwoo/compiled ${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
PKG_SYSCONFDIR_PERMS= ${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/filters ${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
|
|
|
|
CONF_FILES+= ${EGDIR}/conf.php ${PKG_SYSCONFDIR}/conf.php
|
|
|
|
CONF_FILES+= ${EGDIR}/apache.conf ${PKG_SYSCONFDIR}/apache.conf
|
|
|
|
CONF_FILES+= ${EGDIR}/nginx.conf ${PKG_SYSCONFDIR}/nginx.conf
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/default.json ${PKG_SYSCONFDIR}/default.json ${WWW_USER} ${WWW_GROUP} 0644
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/event_color.json ${PKG_SYSCONFDIR}/event_color.json ${WWW_USER} ${WWW_GROUP} 0644
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/events.json ${PKG_SYSCONFDIR}/events.json ${WWW_USER} ${WWW_GROUP} 0644
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/view_default.json ${PKG_SYSCONFDIR}/view_default.json ${WWW_USER} ${WWW_GROUP} 0644
|
2009-02-16 14:53:45 +01:00
|
|
|
|
2009-11-10 15:56:35 +01:00
|
|
|
SUBST_CLASSES+= prefix
|
|
|
|
SUBST_STAGE.prefix= pre-configure
|
|
|
|
SUBST_MESSAGE.prefix= Fixing PREFIX
|
2016-02-16 14:05:23 +01:00
|
|
|
SUBST_FILES.prefix= conf_default.php.in eval_conf.php conf/conf.php conf/apache.conf conf/nginx.conf
|
|
|
|
SUBST_VARS.prefix= PREFIX PKG_SYSCONFDIR PKG_SYSCONFBASE VARBASE DOCROOT EGDIR
|
|
|
|
|
|
|
|
REPLACE_SH+= nagios/*.sh
|
|
|
|
|
|
|
|
MAKE_FLAGS+= GCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
MAKE_FLAGS+= GDESTDIR=${PREFIX}/${DOCROOT}
|
|
|
|
MAKE_FLAGS+= GMETAD_ROOTDIR=${GANGLIA_VARBASE}/ganglia
|
|
|
|
MAKE_FLAGS+= GWEB_STATEDIR=${GWEB_DIR}
|
2009-11-10 15:56:35 +01:00
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
INSTALLATION_DIRS+= ${DOCROOT} ${EGDIR}
|
2009-11-10 15:56:35 +01:00
|
|
|
|
2016-02-16 14:05:23 +01:00
|
|
|
post-extract:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/conf.php ${WRKSRC}/conf
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/apache.conf ${WRKSRC}/conf
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/nginx.conf ${WRKSRC}/conf
|
2005-02-07 15:39:27 +01:00
|
|
|
|
|
|
|
do-install:
|
2016-02-16 14:05:23 +01:00
|
|
|
cd ${WRKSRC} && ${PAX} -rw -pp *.php *.html *.css api css \
|
|
|
|
docs dwoo graph.d img js lib nagios templates test \
|
|
|
|
${DESTDIR}${PREFIX}/${DOCROOT}
|
|
|
|
cd ${WRKSRC}/conf && ${PAX} -rw -pp * ${DESTDIR}${PREFIX}/${EGDIR}
|
2005-02-07 15:39:27 +01:00
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
2005-02-07 15:39:27 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|