summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-11-29 18:21:06 -0800
committerKhem Raj <raj.khem@gmail.com>2021-12-01 12:24:21 -0800
commit6e9faaa57889b16ff5b4b32a7c48fb8474c39c42 (patch)
tree602b3fe6a5f4c35cda821fa02c9e7f9b7936d773 /meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
parent4bb47113046fd8a71b45c9db35f2fd5bf76fd9e8 (diff)
downloadmeta-openembedded-6e9faaa57889b16ff5b4b32a7c48fb8474c39c42.tar.gz
influxdb: Upgrade to 1.8.10
Changes are here [1] License-Update: Updated copyright info [2] Fix sh interpreter path [1] https://dl.influxdata.com/platform/nightlies/1.8/CHANGELOG.md [2] https://github.com/influxdata/influxdb/commit/809ac4f0d5280a2391ed1af84e2a331d37525913#diff-c693279643b8cd5d248172d9c22cb7cf4ed163a3c98c8a3f69c2717edd3eacb7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb')
-rw-r--r--meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb64
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
new file mode 100644
index 0000000000..0832ac209e
--- /dev/null
+++ b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
@@ -0,0 +1,64 @@
1DESCRIPTION = "InfluxDB is a time series database designed to handle high write and query loads."
2HOMEPAGE = "https://www.influxdata.com/products/influxdb-overview/"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=f39a8d10930fb37bd59adabb3b9d0bd6"
6
7RDEPENDS:${PN} = "bash"
8RDEPENDS:${PN}-dev = "bash"
9
10GO_IMPORT = "github.com/influxdata/influxdb"
11
12GO_INSTALL = "\
13 ${GO_IMPORT}/cmd/influx \
14 ${GO_IMPORT}/cmd/influxd \
15"
16
17SRC_URI = "\
18 git://${GO_IMPORT};protocol=https;branch=1.8;destsuffix=${BPN}-${PV}/src/${GO_IMPORT} \
19 file://influxdb \
20 file://influxdb.conf \
21"
22
23SRC_URI:append:mipsarch = " file://0001-patch-term-module-for-mips-ispeed-ospeed-termios-abs.patch;patchdir=src/${GO_IMPORT}"
24
25SRCREV = "688e697c51fd5353725da078555adbeff0363d01"
26
27inherit go-mod pkgconfig systemd update-rc.d useradd
28
29USERADD_PACKAGES = "${PN}"
30USERADD_PARAM:${PN} = "--system -d /var/lib/influxdb -m -s /bin/nologin influxdb"
31
32do_install:prepend() {
33 rm ${B}/src/${GO_IMPORT}/build.py
34 rm ${B}/src/${GO_IMPORT}/build.sh
35 rm ${B}/src/${GO_IMPORT}/Dockerfile*
36 sed -i -e "s#usr/bin/sh#bin/sh#g" ${B}/src/${GO_IMPORT}/scripts/ci/run_perftest.sh
37}
38
39do_install:append() {
40 install -d ${D}${sysconfdir}/influxdb
41 install -m 0644 ${WORKDIR}/influxdb.conf ${D}${sysconfdir}/influxdb
42 chown -R root.influxdb ${D}${sysconfdir}/influxdb
43
44 install -d ${D}${sysconfdir}/init.d
45 install -m 0755 ${WORKDIR}/influxdb ${D}${sysconfdir}/init.d/influxdb
46
47 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ] ; then
48 install -d ${D}${sysconfdir}/logrotate.d
49 install -m 0644 ${S}/src/${GO_IMPORT}/scripts/logrotate ${D}${sysconfdir}/logrotate.d/influxdb
50 fi
51
52 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ] ; then
53 install -d ${D}${systemd_unitdir}/system
54 install -m 0644 ${S}/src/${GO_IMPORT}/scripts/influxdb.service ${D}${systemd_system_unitdir}/influxdb.service
55 fi
56
57 # TODO chown
58}
59
60INITSCRIPT_PACKAGES = "${PN}"
61INITSCRIPT_NAME = "influxdb"
62INITSCRIPT_PARAMS = "defaults"
63
64SYSTEMD_SERVICE:${PN} = "influxdb.service"