Lines 1-9
Link Here
|
1 |
PORTNAME= prometheus |
1 |
PORTNAME= prometheus |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 2.33.5 |
3 |
DISTVERSION= 2.36.0 |
4 |
CATEGORIES= net-mgmt |
4 |
CATEGORIES= net-mgmt |
5 |
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod |
5 |
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod \ |
6 |
DISTFILES= go.mod:gomod |
6 |
https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${DISTVERSIONFULL}/:ui |
|
|
7 |
DISTFILES= go.mod:gomod ${PORTNAME}-web-ui-${DISTVERSION}.tar.gz:ui |
7 |
|
8 |
|
8 |
MAINTAINER= dor.bsd@xm0.uk |
9 |
MAINTAINER= dor.bsd@xm0.uk |
9 |
COMMENT= Systems monitoring and alerting toolkit |
10 |
COMMENT= Systems monitoring and alerting toolkit |
Lines 11-20
COMMENT= Systems monitoring and alerting toolkit
Link Here
|
11 |
LICENSE= APACHE20 |
12 |
LICENSE= APACHE20 |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
|
|
|
15 |
PATCH_DEPENDS= bash:shells/bash |
16 |
|
14 |
USES= cpe gmake go:modules |
17 |
USES= cpe gmake go:modules |
15 |
|
18 |
|
16 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
17 |
GH_TUPLE= ports-assets:net-mgmt_prometheus2:${DISTVERSIONFULL}:assets |
|
|
18 |
USE_RC_SUBR= prometheus |
20 |
USE_RC_SUBR= prometheus |
19 |
|
21 |
|
20 |
GO_MODULE= github.com/prometheus/prometheus |
22 |
GO_MODULE= github.com/prometheus/prometheus |
Lines 58-65
SOURCE_DATE_EPOCH_CMD= date -ur $$(${GREP} TIMESTAMP ${DISTINFO_FILE} | ${SED} -
Link Here
|
58 |
'+%Y%m%d-%T' |
60 |
'+%Y%m%d-%T' |
59 |
|
61 |
|
60 |
post-patch: |
62 |
post-patch: |
61 |
@${LN} -s ${WRKSRC_assets}/web/ui/assets_vfsdata.go \ |
63 |
@${RM} -rf ${WRKSRC}/web/ui/static |
62 |
${WRKSRC}/web/ui/assets_vfadata.go |
64 |
# A symlink isn't good enough here, copy the entire static directory over |
|
|
65 |
@${CP} -a ${WRKDIR}/static ${WRKSRC}/web/ui/static |
66 |
@( cd ${WRKSRC} && ${WRKSRC}/scripts/compress_assets.sh ) |
63 |
|
67 |
|
64 |
post-install: |
68 |
post-install: |
65 |
${MKDIR} ${STAGEDIR}${DESTDIR}${PROMETHEUS_CONSOLES_DIR} |
69 |
${MKDIR} ${STAGEDIR}${DESTDIR}${PROMETHEUS_CONSOLES_DIR} |
Lines 73-80
post-install:
Link Here
|
73 |
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PROMETHEUS_CONSOLES_DIR} ) |
77 |
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PROMETHEUS_CONSOLES_DIR} ) |
74 |
|
78 |
|
75 |
post-install-DOCS-on: |
79 |
post-install-DOCS-on: |
76 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
80 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
77 |
( cd ${WRKSRC}/docs \ |
81 |
@( cd ${WRKSRC}/docs \ |
78 |
&& ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} ) |
82 |
&& ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} ) |
79 |
|
83 |
|
80 |
.include <bsd.port.post.mk> |
84 |
.include <bsd.port.post.mk> |