blob: eaeab683b4a51c72285559f10579ca1eed39c74c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
PORTNAME= influxdb
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.10
PORTREVISION= 9
CATEGORIES= databases net-mgmt
MAINTAINER= driesm@FreeBSD.org
COMMENT= Open-source distributed time series database
WWW= https://influxdata.com/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe go:modules
CPE_VENDOR= influxdata
USE_RC_SUBR= influxd
GO_MODULE= github.com/influxdata/influxdb
GO_TARGET= ./cmd/influx ./cmd/influx_inspect ./cmd/influx_stress \
./cmd/influxd
GO_BUILDFLAGS= -ldflags "-X main.version=${DISTVERSION}"
SUB_LIST= INFLUXD_DBDIR=${INFLUXD_DBDIR} \
INFLUXD_GROUP=${INFLUXD_GROUP} \
INFLUXD_LOGDIR=${INFLUXD_LOGDIR} \
INFLUXD_PIDDIR=${INFLUXD_PIDDIR} \
INFLUXD_USER=${INFLUXD_USER}
USERS= ${INFLUXD_USER}
GROUPS= ${INFLUXD_GROUP}
PLIST_SUB= INFLUXD_DBDIR=${INFLUXD_DBDIR} \
INFLUXD_GROUP=${INFLUXD_GROUP} \
INFLUXD_LOGDIR=${INFLUXD_LOGDIR} \
INFLUXD_PIDDIR=${INFLUXD_PIDDIR} \
INFLUXD_USER=${INFLUXD_USER}
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
MANPAGES_USES= gmake
MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
docbook-xml>0:textproc/docbook-xml \
xmlto:textproc/xmlto
INFLUXD_DBDIR= /var/db/${PORTNAME}/
INFLUXD_LOGDIR= /var/log/${PORTNAME}/
INFLUXD_PIDDIR= /var/run/${PORTNAME}/
INFLUXD_USER= influxd
INFLUXD_GROUP= influxd
.include <bsd.port.pre.mk>
.if ${OPSYS} == "FreeBSD"
SUB_LIST+= INFLUXD_LOGCMD="daemon"
.else
SUB_LIST+= INFLUXD_LOGCMD="logger"
.endif
do-build-MANPAGES-on:
@cd ${WRKSRC}/man && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
do-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install:
${MKDIR} ${STAGEDIR}${INFLUXD_DBDIR} \
${STAGEDIR}${INFLUXD_PIDDIR} \
${STAGEDIR}${INFLUXD_LOGDIR}
@${SED} -i .bak -e \
"s|/var/lib/influxdb|/var/db/influxdb|g" \
${WRKSRC}/etc/config.sample.toml
${INSTALL_DATA} \
${WRKSRC}/etc/config.sample.toml \
${STAGEDIR}${PREFIX}/etc/influxd.conf.sample
.include <bsd.port.post.mk>
|