View | Details | Raw Unified | Return to bug 283803
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 289-295 _metronome:*:345: Link Here
289
ngircd:*:346:
289
ngircd:*:346:
290
eturnal:*:347:
290
eturnal:*:347:
291
davfs2:*:348:
291
davfs2:*:348:
292
# free: 349
292
tempo:*:349:
293
_sabnzbd:*:350:
293
_sabnzbd:*:350:
294
sonarr:*:351:
294
sonarr:*:351:
295
radarr:*:352:
295
radarr:*:352:
(-)b/UIDs (-1 / +1 lines)
Lines 295-301 _metronome:*:345:345::0:0:Metronome Daemon:/nonexistent:/usr/sbin/nologin Link Here
295
ngircd:*:346:346::0:0:ngIRCd Daemon:/var/empty:/usr/sbin/nologin
295
ngircd:*:346:346::0:0:ngIRCd Daemon:/var/empty:/usr/sbin/nologin
296
eturnal:*:347:347::0:0:eturnal User:/var/spool/eturnal:/bin/sh
296
eturnal:*:347:347::0:0:eturnal User:/var/spool/eturnal:/bin/sh
297
davfs2:*:348:348::0:0:Davfs2 Daemon:/nonexistent:/usr/sbin/nologin
297
davfs2:*:348:348::0:0:Davfs2 Daemon:/nonexistent:/usr/sbin/nologin
298
# free: 349
298
tempo:*:349:349::0:0:Tempo Daemon:/nonexistent:/usr/sbin/nologin
299
_sabnzbd:*:350:350::0:0:sabnzb Daemon:/nonexistent:/usr/sbin/nologin
299
_sabnzbd:*:350:350::0:0:sabnzb Daemon:/nonexistent:/usr/sbin/nologin
300
sonarr:*:351:351::0:0:Sonarr PVR:/nonexistent:/usr/sbin/nologin
300
sonarr:*:351:351::0:0:Sonarr PVR:/nonexistent:/usr/sbin/nologin
301
radarr:*:352:352::0:0:Radarr Daemon:/nonexistent:/usr/sbin/nologin
301
radarr:*:352:352::0:0:Radarr Daemon:/nonexistent:/usr/sbin/nologin
(-)b/sysutils/tempo/Makefile (+53 lines)
Added Link Here
1
PORTNAME=	tempo
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	2.6.1
4
CATEGORIES=	sysutils
5
MASTER_SITES+=	https://raw.githubusercontent.com/${GH_ACCOUNT}/${PORTNAME}/${DISTVERSIONFULL}/
6
PKGNAMEPREFIX=	grafana-
7
DISTFILES=	go.mod
8
9
MAINTAINER=	daniel@morante.net
10
COMMENT=	High volume, minimal dependency distributed tracing backend
11
WWW=		https://github.com/grafana/tempo
12
13
LICENSE=	AGPLv3
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
16
USES=		go:modules
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	grafana
19
GH_PROJECT=	tempo
20
21
USE_RC_SUBR=	tempo
22
23
GO_MODULE=	github.com/${GH_ACCOUNT}/${GH_PROJECT}
24
GO_TARGET=	./cmd/tempo ./cmd/tempo-query ./cmd/tempo-cli ./cmd/tempo-vulture
25
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
26
27
LD_FLAG_STRING=	-s \
28
		${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \
29
		${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \
30
		${LD_FLAG_X_PREFIX}.Branch=HEAD \
31
		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER} \
32
		${LD_FLAG_X_PREFIX}.BuildDate=$$(date -u +"%Y-%m-%dT%H:%M:%SZ")
33
LD_FLAG_X_PREFIX=	-X github.com/grafana/tempo/pkg/util/build
34
BUILD_USER?=	${USER}
35
36
TEMPO_USER?=	tempo
37
TEMPO_GROUP?=	tempo
38
TEMPO_DATADIR?=	/var/db/${PORTNAME}
39
40
SUB_LIST=	TEMPO_USER=${TEMPO_USER} \
41
		TEMPO_GROUP=${TEMPO_GROUP} \
42
		TEMPO_DATADIR=${TEMPO_DATADIR} \
43
44
USERS=		${TEMPO_USER}
45
GROUPS=		${TEMPO_GROUP}
46
47
PLIST_SUB=	${SUB_LIST}
48
49
post-install:
50
	@${CP} ${WRKSRC}/example/docker-compose/shared/tempo.yaml ${STAGEDIR}${PREFIX}/etc/tempo.yaml.sample
51
	@${MKDIR} ${STAGEDIR}${TEMPO_DATADIR}
52
53
.include <bsd.port.mk>
(-)b/sysutils/tempo/distinfo (+5 lines)
Added Link Here
1
TIMESTAMP = 1735843421
2
SHA256 (go/sysutils_tempo/grafana-tempo-v2.6.1_GH0/go.mod) = 16764341886c2531d9cbba50cbbc30c80676a2010c494cfed439b1f80c89b61e
3
SIZE (go/sysutils_tempo/grafana-tempo-v2.6.1_GH0/go.mod) = 17886
4
SHA256 (go/sysutils_tempo/grafana-tempo-v2.6.1_GH0/grafana-tempo-v2.6.1_GH0.tar.gz) = ff53e3eb7ed70e378b06a70295677d4f05d40554b33b8bd91d5c351c18d3b55f
5
SIZE (go/sysutils_tempo/grafana-tempo-v2.6.1_GH0/grafana-tempo-v2.6.1_GH0.tar.gz) = 36372210
(-)b/sysutils/tempo/files/patch-example_docker-compose_shared_tempo.yaml (+30 lines)
Added Link Here
1
--- example/docker-compose/shared/tempo.yaml.orig	2024-10-22 18:23:02 UTC
2
+++ example/docker-compose/shared/tempo.yaml
3
@@ -36,22 +36,22 @@ metrics_generator:
4
   registry:
5
     external_labels:
6
       source: tempo
7
-      cluster: docker-compose
8
+      cluster: freebsd
9
   storage:
10
-    path: /var/tempo/generator/wal
11
+    path: /var/db/tempo/generator/wal
12
     remote_write:
13
       - url: http://prometheus:9090/api/v1/write
14
         send_exemplars: true
15
   traces_storage:
16
-    path: /var/tempo/generator/traces
17
+    path: /var/db/tempo/generator/traces
18
 
19
 storage:
20
   trace:
21
     backend: local                     # backend configuration to use
22
     wal:
23
-      path: /var/tempo/wal             # where to store the wal locally
24
+      path: /var/db/tempo/wal             # where to store the wal locally
25
     local:
26
-      path: /var/tempo/blocks
27
+      path: /var/db/tempo/blocks
28
 
29
 overrides:
30
   defaults:
(-)b/sysutils/tempo/files/tempo.in (+71 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: tempo
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
7
# Add the following lines to /etc/rc.conf to enable tempo
8
# tempo_enable="YES"
9
#
10
# tempo_enable (bool):
11
#     Set it to YES to enable grafana
12
#     Set to NO by default
13
# tempo_user (string):
14
#     Set user that grafana will run under
15
#     Default is "%%tempo_USER%%"
16
# tempo_group (string):
17
#     Set group that own grafana files
18
#     Default is "%%tempo_GROUP%%"
19
# tempo_config (string)
20
#     Set full path to config file
21
#     Default is "%%PREFIX%%/etc/tempo.yaml"
22
# tempo_logfile (string)
23
#     Set full path to log file
24
#     Default is "/var/log/tempo/tempo.log"
25
# tempo_loglevel (string)
26
#     Set log level. Only log messages with the given severity or above.
27
#     Valid levels: [debug, info, warn, error]
28
#     Default is "warn"
29
# tempo_args (string)
30
#     Set additional command line arguments
31
#     Default is ""
32
33
. /etc/rc.subr
34
35
name=tempo
36
rcvar=tempo_enable
37
38
load_rc_config $name
39
40
: ${tempo_enable:="NO"}
41
: ${tempo_user:="%%TEMPO_USER%%"}
42
: ${tempo_group:="%%TEMPO_GROUP%%"}
43
: ${tempo_config:="%%PREFIX%%/etc/tempo.yaml"}
44
: ${tempo_logfile:="/var/log/tempo/tempo.log"}
45
: ${tempo_loglevel:="warn"}
46
47
pidfile="/var/run/${name}/${name}.pid"
48
required_files="${tempo_config}"
49
50
procname="%%PREFIX%%/bin/tempo"
51
command="/usr/sbin/daemon"
52
command_args="-p ${pidfile} -t ${name} -o ${tempo_logfile} \
53
	${procname} \
54
	-config.file=${tempo_config} \
55
	-log.level=${tempo_loglevel} \
56
	${tempo_args}"
57
58
start_precmd="tempo_start_precmd"
59
60
tempo_start_precmd()
61
{
62
	if [ ! -d "/var/run/${name}" ]; then
63
		install -d -m 0750 -o ${tempo_user} -g ${tempo_group} "/var/run/${name}"
64
	fi
65
66
	if [ ! -d "/var/log/tempo" ]; then
67
		install -d -m 0750 -o ${tempo_user} -g ${tempo_group} "/var/log/tempo"
68
	fi
69
}
70
71
run_rc_command "$1"
(-)b/sysutils/tempo/pkg-descr (+3 lines)
Added Link Here
1
Grafana Tempo is an open source, easy-to-use and high-scale distributed tracing
2
backend. Tempo is cost-efficient, requiring only object storage to operate, and
3
is deeply integrated with Grafana, Prometheus, and Loki.
(-)b/sysutils/tempo/pkg-plist (-1 / +12 lines)
Added Link Here
0
- 
1
bin/tempo
2
bin/tempo-query
3
bin/tempo-cli
4
bin/tempo-vulture
5
@sample etc/tempo.yaml.sample
6
@owner %%TEMPO_USER%%
7
@group %%TEMPO_GROUP%%
8
@mode 750
9
@dir %%TEMPO_DATADIR%%
10
@mode
11
@group
12
@owner

Return to bug 283803