| @@ -1,22 +1,22 @@ | | | @@ -1,22 +1,22 @@ |
1 | # $NetBSD: Makefile,v 1.2 2019/05/20 09:23:00 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2019/05/20 10:08:01 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= prometheus-2.9.2 | | 3 | DISTNAME= prometheus-2.9.2 |
4 | MASTER_SITES= ${MASTER_SITE_GITHUB:=prometheus/} | | 4 | MASTER_SITES= ${MASTER_SITE_GITHUB:=prometheus/} |
5 | CATEGORIES= databases | | 5 | CATEGORIES= databases |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://github.com/prometheus/prometheus | | 9 | HOMEPAGE= https://prometheus.io/ |
10 | COMMENT= The Prometheus monitoring system and time series database | | 10 | COMMENT= The Prometheus monitoring system and time series database |
11 | LICENSE= apache-2.0 | | 11 | LICENSE= apache-2.0 |
12 | | | 12 | |
13 | GO_DIST_BASE= ${DISTNAME} | | 13 | GO_DIST_BASE= ${DISTNAME} |
14 | GO_SRCPATH= github.com/prometheus/prometheus | | 14 | GO_SRCPATH= github.com/prometheus/prometheus |
15 | | | 15 | |
16 | PKG_SYSCONFSUBDIR= prometheus | | 16 | PKG_SYSCONFSUBDIR= prometheus |
17 | | | 17 | |
18 | USE_TOOLS+= pax | | 18 | USE_TOOLS+= pax |
19 | BUILD_DEFS+= VARBASE PKG_SYSCONFDIR | | 19 | BUILD_DEFS+= VARBASE PKG_SYSCONFDIR |
20 | | | 20 | |
21 | SUBST_CLASSES+= paths | | 21 | SUBST_CLASSES+= paths |
22 | SUBST_FILES.paths+= cmd/prometheus/main.go | | 22 | SUBST_FILES.paths+= cmd/prometheus/main.go |
| @@ -29,25 +29,25 @@ EXAMPLE_FILES= prometheus.yml | | | @@ -29,25 +29,25 @@ EXAMPLE_FILES= prometheus.yml |
29 | EXAMPLE_FILES+= consoles/index.html.example consoles/node-cpu.html \ | | 29 | EXAMPLE_FILES+= consoles/index.html.example consoles/node-cpu.html \ |
30 | consoles/node-disk.html consoles/node-overview.html \ | | 30 | consoles/node-disk.html consoles/node-overview.html \ |
31 | consoles/node.html consoles/prometheus-overview.html \ | | 31 | consoles/node.html consoles/prometheus-overview.html \ |
32 | consoles/prometheus.html | | 32 | consoles/prometheus.html |
33 | EXAMPLE_FILES+= console_libraries/menu.lib console_libraries/prom.lib | | 33 | EXAMPLE_FILES+= console_libraries/menu.lib console_libraries/prom.lib |
34 | INSTALLATION_DIRS+= ${PREFIX}/${EXAMPLE_DIR} | | 34 | INSTALLATION_DIRS+= ${PREFIX}/${EXAMPLE_DIR} |
35 | | | 35 | |
36 | .for f in ${EXAMPLE_FILES} | | 36 | .for f in ${EXAMPLE_FILES} |
37 | CONF_FILES+= ${EXAMPLE_DIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 37 | CONF_FILES+= ${EXAMPLE_DIR}/${f} ${PKG_SYSCONFDIR}/${f} |
38 | .endfor | | 38 | .endfor |
39 | | | 39 | |
40 | do-install: | | 40 | do-install: |
41 | ${INSTALL_DATA} ${WRKSRC}/documentation/examples/prometheus.yml ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} | | 41 | ${INSTALL_DATA} ${WRKSRC}/documentation/examples/prometheus.yml ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} |
42 | ${RUN} cd ${WRKDIR} && ${PAX} -rw bin ${DESTDIR}${PREFIX} | | 42 | cd ${WRKDIR} && ${PAX} -rw bin ${DESTDIR}${PREFIX} |
43 | ${RUN} cd ${WRKSRC} && \ | | 43 | cd ${WRKSRC} && \ |
44 | ${PAX} -rw consoles ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} && \ | | 44 | ${PAX} -rw consoles ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} && \ |
45 | ${PAX} -rw console_libraries ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} | | 45 | ${PAX} -rw console_libraries ${DESTDIR}${PREFIX}/${EXAMPLE_DIR} |
46 | | | 46 | |
47 | post-install: | | 47 | post-install: |
48 | .for f in ${EXAMPLE_FILES} | | 48 | .for f in ${EXAMPLE_FILES} |
49 | ${CHMOD} ${NONBINMODE} ${DESTDIR}${PREFIX}/${EXAMPLE_DIR}/${f} | | 49 | ${CHMOD} ${NONBINMODE} ${DESTDIR}${PREFIX}/${EXAMPLE_DIR}/${f} |
50 | .endfor | | 50 | .endfor |
51 | | | 51 | |
52 | .include "../../lang/go/go-package.mk" | | 52 | .include "../../lang/go/go-package.mk" |
53 | .include "../../mk/bsd.pkg.mk" | | 53 | .include "../../mk/bsd.pkg.mk" |