diff --git a/cross/influxdb2-client/Makefile b/cross/influxdb2-client/Makefile new file mode 100644 index 00000000000..12c15d80a87 --- /dev/null +++ b/cross/influxdb2-client/Makefile @@ -0,0 +1,32 @@ +PKG_NAME = influxdb2-client +PKG_VERS = 2.7.3 +PKG_EXT = tar.gz +PKG_DIST_SITE = https://dl.influxdata.com/influxdb/releases +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)-linux-$(PKG_DIST_ARCH).$(PKG_EXT) + +DEPENDS = + +HOMEPAGE = https://www.influxdata.com/products/influxd/ +COMMENT = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package is the CLI client which connects to the database. +LICENSE = Apache-2.0/MIT + +INSTALL_TARGET = influxdb2-client_install + +UNSUPPORTED_ARCHS = $(32bit_ARCHS) + +PKG_DIST_ARCH_LIST = amd64 arm64 + +include ../../mk/spksrc.archs.mk + +ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = amd64 +else ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = arm64 +endif + +include ../../mk/spksrc.install-resources.mk + +.PHONY: influxdb2-client_install +influxdb2-client_install: + install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin + install -m 755 $(WORK_DIR)/influx $(STAGING_INSTALL_PREFIX)/bin diff --git a/cross/influxdb2-client/PLIST b/cross/influxdb2-client/PLIST new file mode 100644 index 00000000000..05d6b35a441 --- /dev/null +++ b/cross/influxdb2-client/PLIST @@ -0,0 +1 @@ +bin:bin/influx diff --git a/cross/influxdb2-client/digests b/cross/influxdb2-client/digests new file mode 100644 index 00000000000..37712c021e0 --- /dev/null +++ b/cross/influxdb2-client/digests @@ -0,0 +1,6 @@ +influxdb2-client-2.7.3-linux-amd64.tar.gz SHA1 c4731c4f6e785ab558eca2991ea05bbcb987e5ed +influxdb2-client-2.7.3-linux-amd64.tar.gz SHA256 a266f304547463b6bc7886bf45e37d252bcc0ceb3156ab8d78c52561558fbfe6 +influxdb2-client-2.7.3-linux-amd64.tar.gz MD5 10327ca140e882d330de3876e3e88af6 +influxdb2-client-2.7.3-linux-arm64.tar.gz SHA1 9cfdbaa671f2a96418ec0b099485a01f0073cd03 +influxdb2-client-2.7.3-linux-arm64.tar.gz SHA256 d5d09f5279aa32d692362cd096d002d787b3983868487e6f27379b1e205b4ba2 +influxdb2-client-2.7.3-linux-arm64.tar.gz MD5 34d565f6100295ce62ad791dd4cf43cf diff --git a/cross/influxdb2/Makefile b/cross/influxdb2/Makefile new file mode 100644 index 00000000000..1bf553d7863 --- /dev/null +++ b/cross/influxdb2/Makefile @@ -0,0 +1,33 @@ +PKG_NAME = influxdb2 +PKG_VERS = 2.7.4 +PKG_EXT = tar.gz +PKG_DIST_SITE = https://dl.influxdata.com/influxdb/releases +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)_linux_$(PKG_DIST_ARCH).$(PKG_EXT) + +DEPENDS = + +HOMEPAGE = https://www.influxdata.com/products/influxdb/ +COMMENT = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package is the database daemon which includes a web UI. +LICENSE = Apache-2.0/MIT + +INSTALL_TARGET = influxdb2_install + +UNSUPPORTED_ARCHS = $(32bit_ARCHS) + +PKG_DIST_ARCH_LIST = amd64 arm64 + +include ../../mk/spksrc.archs.mk + +ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = amd64 +else ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = arm64 +endif + +include ../../mk/spksrc.install-resources.mk + +.PHONY: influxdb2_install +influxdb2_install: + install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin + install -m 755 $(WORK_DIR)/$(PKG_DIR)/usr/bin/influxd $(STAGING_INSTALL_PREFIX)/bin diff --git a/cross/influxdb2/PLIST b/cross/influxdb2/PLIST new file mode 100644 index 00000000000..c0689ee1b7d --- /dev/null +++ b/cross/influxdb2/PLIST @@ -0,0 +1 @@ +bin:bin/influxd diff --git a/cross/influxdb2/digests b/cross/influxdb2/digests new file mode 100644 index 00000000000..15bda62638e --- /dev/null +++ b/cross/influxdb2/digests @@ -0,0 +1,6 @@ +influxdb2-2.7.4_linux_amd64.tar.gz SHA1 7990961fc4ca66ad76e4c14798868be308a0a292 +influxdb2-2.7.4_linux_amd64.tar.gz SHA256 2a2ccca52e42fb483c93ac3672cb264ffb804fc0be33209e5d954dd755146288 +influxdb2-2.7.4_linux_amd64.tar.gz MD5 704766d07383e439727f6f6731f2c123 +influxdb2-2.7.4_linux_arm64.tar.gz SHA1 3152e617faf43928889214a192e1a117f2f40d77 +influxdb2-2.7.4_linux_arm64.tar.gz SHA256 bf7386a1279f3d7eb96dd5b54e80c7d2a541facf60689e78913ae2f8f4503616 +influxdb2-2.7.4_linux_arm64.tar.gz MD5 63e8de49918eff95d2a78c3f13e05fa6 diff --git a/spk/influxdb/Makefile b/spk/influxdb/Makefile new file mode 100644 index 00000000000..a970c528845 --- /dev/null +++ b/spk/influxdb/Makefile @@ -0,0 +1,42 @@ +SPK_NAME = influxdb +SPK_VERS = 2.7.4 +SPK_REV = 1 +SPK_ICON = src/influxdb.png + +DEPENDS = cross/influxdb2 cross/influxdb2-client + +MAINTAINER = SynoCommunity +DESCRIPTION = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package includes both the database and CLI client +STARTABLE = yes +DISPLAY_NAME = InfluxDB +CHANGELOG = "1. Created initial package" + +HOMEPAGE = https://www.influxdata.com/products/influxdb/ +LICENSE = Apache-2.0/MIT + +# There does not exist a 32 bit package +UNSUPPORTED_ARCHS = $(32bit_ARCHS) + +# WIZARDS_DIR = src/wizard/ + +include ../../mk/spksrc.common.mk + +SPK_COMMANDS = bin/influx bin/influxd + +SERVICE_USER = auto +SERVICE_SETUP = src/service-setup.sh +SERVICE_PORT = 8186 +SERVICE_PORT_TITLE = InfluxDB API + +# Admin link for in DSM UI +ADMIN_PORT = $(SERVICE_PORT) + +POST_STRIP_TARGET = influxdb_extra_install + +include ../../mk/spksrc.spk.mk + +# Install src/config.yml to var +.PHONY: influxdb_extra_install +influxdb_extra_install: + install -m 755 -d $(STAGING_DIR)/var + install -m 644 src/config.yml $(STAGING_DIR)/var/config.yml diff --git a/spk/influxdb/src/config.yml b/spk/influxdb/src/config.yml new file mode 100644 index 00000000000..8aecc4894eb --- /dev/null +++ b/spk/influxdb/src/config.yml @@ -0,0 +1,5 @@ +http-bind-address: ":8186" +reporting-disabled: true +bolt-path: "/var/packages/influxdb/var/.influxdbv2/influxd.bolt" +engine-path: "/var/packages/influxdb/var/.influxdbv2/engine" +sqlite-path: "/var/packages/influxdb/var/.influxdbv2/influxd.sqlite" \ No newline at end of file diff --git a/spk/influxdb/src/influxdb.png b/spk/influxdb/src/influxdb.png new file mode 100644 index 00000000000..8ce7a22879c Binary files /dev/null and b/spk/influxdb/src/influxdb.png differ diff --git a/spk/influxdb/src/service-setup.sh b/spk/influxdb/src/service-setup.sh new file mode 100644 index 00000000000..297d876f570 --- /dev/null +++ b/spk/influxdb/src/service-setup.sh @@ -0,0 +1,9 @@ +INFLUXD_CONFIG_PATH=${SYNOPKG_PKGVAR}/config.yml +INFLUXD=${SYNOPKG_PKGDEST}/bin/influxd + +export INFLUXD_CONFIG_PATH=${INFLUXD_CONFIG_PATH} + +SERVICE_COMMAND="${INFLUXD}" +SVC_BACKGROUND=yes +SVC_WRITE_PID=yes +SVC_CWD="${SYNOPKG_PKGVAR}"