openbsd-ports/sysutils/loki/Makefile
lraab d0dbe34444 sysutils/loki: update to 2.7.1
changelog:
* Add single compactor http client for delete and gennumber clients.
  This fixes a bug caused by the accidental introduction of different
  HTTP clients for compactor and gennumber operations that resulted
  in 404s when only the gennumber middlewares were enabled
* Change default deletion mode to filter-only on account of the bug
* Delete can now be performed over GRPC

ok landry@
2022-12-31 02:02:02 +00:00

41 lines
1.3 KiB
Makefile

COMMENT-main = like Prometheus, but for logs
COMMENT-promtail = tails log files and pushes them to Loki
GH_ACCOUNT = grafana
GH_PROJECT = loki
GH_TAGNAME = v2.7.1
CATEGORIES = sysutils
HOMEPAGE = https://grafana.com/oss/loki/
MULTI_PACKAGES = -main -promtail
# AGPLv3 + some bits Apache 2.0
PERMIT_PACKAGE = Yes
MODULES = lang/go
WANTLIB = c pthread
MODGO_FLAGS += -ldflags="-w -X github.com/grafana/loki/pkg/build.Version=${GH_TAGNAME:C/^v//}"
do-build:
cd ${WRKSRC} && ${MODGO_CMD} build ${MODGO_FLAGS} -o bin/loki ./cmd/loki
cd ${WRKSRC} && ${MODGO_CMD} build ${MODGO_FLAGS} -o bin/promtail ./clients/cmd/promtail
cd ${WRKSRC} && ${MODGO_CMD} build ${MODGO_FLAGS} -o bin/logcli ./cmd/logcli
cd ${WRKSRC} && ${MODGO_CMD} build ${MODGO_FLAGS} -o bin/loki-canary ./cmd/loki-canary
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/loki ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/loki
${INSTALL_DATA} ${WRKSRC}/cmd/loki/loki-local-config.yaml \
${PREFIX}/share/examples/loki
${INSTALL_PROGRAM} ${WRKSRC}/bin/promtail ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/promtail
${INSTALL_DATA} ${WRKSRC}/clients/cmd/promtail/promtail-local-config.yaml \
${PREFIX}/share/examples/promtail
${INSTALL_PROGRAM} ${WRKSRC}/bin/logcli ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/loki-canary ${PREFIX}/bin
.include <bsd.port.mk>