TimescaleDB is an open-source database designed to make SQL scalable
for time-series data.  It is engineered up from PostgreSQL, providing
automatic partitioning across time and space (partitioning key), as
well as full SQL support.

This package builds the Apache licensed PostgreSQL extension, only.

Signed-off-by: Björn Esser <b.es...@pengutronix.de>
---
 rules/timescaledb.in   | 15 ++++++++++
 rules/timescaledb.make | 68 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)
 create mode 100644 rules/timescaledb.in
 create mode 100644 rules/timescaledb.make

diff --git a/rules/timescaledb.in b/rules/timescaledb.in
new file mode 100644
index 000000000..1419e02bb
--- /dev/null
+++ b/rules/timescaledb.in
@@ -0,0 +1,15 @@
+## SECTION=system_libraries
+
+config TIMESCALEDB
+       tristate
+       select HOST_CMAKE
+       select HOST_POSTGRESQL
+       select POSTGRESQL
+       prompt "timescaledb"
+       help
+         TimescaleDB is an open-source database designed to make SQL scalable
+         for time-series data.  It is engineered up from PostgreSQL, providing
+         automatic partitioning across time and space (partitioning key), as
+         well as full SQL support.
+
+         This package builds the Apache licensed PostgreSQL extension, only.
diff --git a/rules/timescaledb.make b/rules/timescaledb.make
new file mode 100644
index 000000000..14a994b98
--- /dev/null
+++ b/rules/timescaledb.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Bjoern Esser <b...@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TIMESCALEDB) += timescaledb
+
+#
+# Paths and names
+#
+TIMESCALEDB_VERSION    := 1.4.2
+TIMESCALEDB_MD5                := d3c1282031bc2c5a314eb217f4a49796
+TIMESCALEDB            := timescaledb-$(TIMESCALEDB_VERSION)
+TIMESCALEDB_SUFFIX     := tar.gz
+TIMESCALEDB_URL                := 
https://github.com/timescale/timescaledb/archive/$(TIMESCALEDB_VERSION).$(TIMESCALEDB_SUFFIX)
+TIMESCALEDB_SOURCE     := $(SRCDIR)/$(TIMESCALEDB).$(TIMESCALEDB_SUFFIX)
+TIMESCALEDB_DIR                := $(BUILDDIR)/$(TIMESCALEDB)
+TIMESCALEDB_LICENSE    := Apache-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+TIMESCALEDB_CONF_TOOL  := cmake
+TIMESCALEDB_CONF_OPT   := \
+       $(CROSS_CMAKE_USR) \
+       -DCMAKE_PROGRAM_PATH="$(PTXDIST_SYSROOT_HOST)" \
+       -DPG_BINDIR="/usr/bin" \
+       -DPG_INCLUDEDIR="$(PTXDIST_SYSROOT_TARGET)/usr/include" \
+       
-DPG_INCLUDEDIR_SERVER="$(PTXDIST_SYSROOT_TARGET)/usr/include/postgresql/server"
 \
+       -DPG_LIBDIR="$(PTXDIST_SYSROOT_TARGET)/usr/lib" \
+       -DPG_PKGLIBDIR="/usr/lib/postgresql" \
+       -DPG_SHAREDIR="/usr/share/postgresql" \
+       -DUSE_OPENSSL=0 \
+       -DAPACHE_ONLY=1
+
+# -DAPACHE_ONLY=1   is needed to build a free/libre version of TimescaleDB.
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/timescaledb.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, timescaledb)
+       @$(call install_fixup, timescaledb,PRIORITY,optional)
+       @$(call install_fixup, timescaledb,SECTION,base)
+       @$(call install_fixup, timescaledb,AUTHOR,"Bjoern Esser 
<b...@pengutronix.de>")
+       @$(call install_fixup, timescaledb,DESCRIPTION,missing)
+
+       @$(call install_tree, timescaledb, 0, 0, -, /usr/lib/postgresql)
+       @$(call install_tree, timescaledb, 0, 0, -, /usr/share/postgresql)
+
+       @$(call install_finish, timescaledb)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to