[arch-commits] Commit in timescaledb/repos (3 files)
George Rawlinson
grawlinson at archlinux.org
Fri Jun 18 00:58:47 UTC 2021
Date: Friday, June 18, 2021 @ 00:58:46
Author: grawlinson
Revision: 965088
archrelease: copy trunk to testing-x86_64
Added:
timescaledb/repos/testing-x86_64/
timescaledb/repos/testing-x86_64/PKGBUILD
(from rev 965087, timescaledb/trunk/PKGBUILD)
timescaledb/repos/testing-x86_64/timescaledb.install
(from rev 965087, timescaledb/trunk/timescaledb.install)
---------------------+
PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++
timescaledb.install | 15 +++++++++++
2 files changed, 79 insertions(+)
Copied: timescaledb/repos/testing-x86_64/PKGBUILD (from rev 965087, timescaledb/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-06-18 00:58:46 UTC (rev 965088)
@@ -0,0 +1,64 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Felix Fung <fylixeoi at gmail.com>
+
+pkgname=timescaledb
+_versions=(
+ 2.1.0 # first version to work with current postgresql version
+ 2.1.1
+ 2.2.0
+ 2.2.1
+ 2.3.0 # current ts version
+)
+pkgver="${_versions[-1]}"
+pkgrel=2
+pkgdesc="An open-source time-series database optimized for fast ingest and complex queries"
+arch=('x86_64')
+url="https://www.timescale.com/"
+license=('Apache' 'custom:Timescale')
+depends=('postgresql' 'postgresql-libs' 'openssl')
+makedepends=('gcc' 'cmake' 'git')
+install=timescaledb.install
+source=("$pkgname::git+https://github.com/timescale/timescaledb")
+sha512sums=('SKIP')
+
+prepare() {
+ mkdir build
+}
+
+build() {
+ for version in "${_versions[@]}"; do
+ cd "$srcdir/$pkgname"
+ git checkout "$version"
+ BUILD_DIR="$srcdir/build/$version" ./bootstrap \
+ -DWARNINGS_AS_ERRORS=OFF -DREGRESS_CHECKS=OFF
+
+ # build package or past shared library
+ cd "$srcdir/build/$version"
+ if [ "$version" == "${_versions[-1]}" ]; then
+ make
+ else
+ make timescaledb timescaledb-tsl
+ fi
+ done
+}
+
+package() {
+ cd "$pkgname"
+ # install licenses from latest version
+ git checkout "${_versions[-1]}"
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
+ LICENSE LICENSE-APACHE tsl/LICENSE-TIMESCALE
+
+ # install package or past shared library
+ for version in "${_versions[@]}"; do
+ cd "$srcdir/build/$version"
+ if [ "$version" == "${_versions[-1]}" ]; then
+ make DESTDIR="$pkgdir/" install
+ else
+ install -vDm644 -t "$pkgdir/usr/lib/postgresql" \
+ "src/$pkgname-$version.so" \
+ "tsl/src/$pkgname-tsl-$version.so"
+ fi
+ done
+}
Copied: timescaledb/repos/testing-x86_64/timescaledb.install (from rev 965087, timescaledb/trunk/timescaledb.install)
===================================================================
--- testing-x86_64/timescaledb.install (rev 0)
+++ testing-x86_64/timescaledb.install 2021-06-18 00:58:46 UTC (rev 965088)
@@ -0,0 +1,15 @@
+post_install() {
+ echo "To use TimescaleDB as PostgreSQL extension,"
+ echo "put in /var/lib/postgres/data/postgresql.conf:"
+ echo "'shared_preload_libraries = \"timescaledb\"'"
+ echo "If multiple libraries are required, separate them with comma."
+ echo "Then restart postgresql:"
+ echo "$ systemctl restart postgresql"
+}
+
+post_remove() {
+ echo "Remove 'timescaledb' from 'shared_preload_libraries'"
+ echo "In /var/lib/postgres/data/postgresql.conf"
+ echo "Then restart postgresql:"
+ echo "$ systemctl restart postgresql"
+}
More information about the arch-commits
mailing list