Return to Makefile CVS log | Up to [cvs.NetBSD.org] / pkgsrc / databases / prometheus |
File: [cvs.NetBSD.org] / pkgsrc / databases / prometheus / Makefile (download)
Revision 1.30, Fri Aug 14 20:01:40 2020 UTC (3 years, 8 months ago) by bsiegert
Revbump all Go packages after go114 update |
# $NetBSD: Makefile,v 1.30 2020/08/14 20:01:40 bsiegert Exp $ DISTNAME= prometheus-2.20.1 MASTER_SITES= ${MASTER_SITE_GITHUB:=prometheus/} PKGREVISION= 1 CATEGORIES= databases GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://prometheus.io/ COMMENT= The Prometheus monitoring system and time series database LICENSE= apache-2.0 GO_DIST_BASE= ${DISTNAME} GO_SRCPATH= github.com/prometheus/prometheus PKG_SYSCONFSUBDIR= prometheus USE_TOOLS+= pax BUILD_DEFS+= VARBASE PKG_SYSCONFDIR SUBST_CLASSES+= paths SUBST_FILES.paths+= cmd/prometheus/main.go SUBST_STAGE.paths= post-configure SUBST_VARS.paths= PKG_SYSCONFDIR VARBASE SUBST_CLASSES+= webui SUBST_FILES.webui= web/ui/ui.go SUBST_STAGE.webui= post-configure SUBST_VARS.webui= WEBUI_DIR MAKE_DIRS+= ${PKG_SYSCONFDIR}/consoles ${PKG_SYSCONFDIR}/console_libraries EXAMPLE_DIR= share/examples/prometheus EXAMPLE_FILES= prometheus.yml EXAMPLE_FILES+= consoles/index.html.example consoles/node-cpu.html \ consoles/node-disk.html consoles/node-overview.html \ consoles/node.html consoles/prometheus-overview.html \ consoles/prometheus.html EXAMPLE_FILES+= console_libraries/menu.lib console_libraries/prom.lib WEBUI_DIR= ${PREFIX}/share/prometheus INSTALLATION_DIRS+= ${PREFIX}/${EXAMPLE_DIR} ${WEBUI_DIR} .for f in ${EXAMPLE_FILES} CONF_FILES+= ${EXAMPLE_DIR}/${f} ${PKG_SYSCONFDIR}/${f} .endfor do-install: ${INSTALL_DATA} ${WRKSRC}/documentation/examples/prometheus.yml \ ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} cd ${WRKDIR} && ${PAX} -rw bin ${DESTDIR}${PREFIX} .for f in consoles console_libraries cd ${WRKSRC} && ${PAX} -rw ${f} ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} .endfor .for f in static templates cd ${WRKSRC}/web/ui && ${PAX} -rw ${f} ${DESTDIR}${WEBUI_DIR} .endfor post-install: .for f in ${EXAMPLE_FILES} ${CHMOD} ${NONBINMODE} ${DESTDIR}${PREFIX}/${EXAMPLE_DIR}/${f} .endfor .include "../../lang/go/go-package.mk" .include "../../mk/bsd.pkg.mk"