diff options
author | Felix Fung | 2018-05-12 22:50:01 -0400 |
---|---|---|
committer | Felix Fung | 2018-05-12 22:50:01 -0400 |
commit | aae2448edc1131f1fa70cd69b16f60a0a4a6e464 (patch) | |
tree | e6a6171ac6765097b36052f4b14a581fc8b68158 | |
download | aur-aae2448edc1131f1fa70cd69b16f60a0a4a6e464.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | timescaledb.install | 19 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..afee4b126e2c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = timescaledb + pkgdesc = An open-source time-series database optimized for fast ingest and complex queries. + pkgver = 0.9 + pkgrel = 2 + url = http://www.timescale.com/ + install = timescaledb.install + arch = i686 + arch = x86_64 + license = Apache + makedepends = gcc + makedepends = cmake>=3.4 + depends = postgresql>=9.6.0 + depends = postgresql-libs>=9.6.0 + source = timescaledb-0.9::git+https://github.com/timescale/timescaledb.git + md5sums = SKIP + +pkgname = timescaledb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e46112de359f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Felix Fung <fylixeoi@gmail.com> + +pkgname=timescaledb +pkgver=0.9 +pkgrel=2 +pkgdesc="An open-source time-series database optimized for fast ingest and complex queries." +arch=('i686' 'x86_64') +url="http://www.timescale.com/" +license=('Apache') +depends=('postgresql>=9.6.0' 'postgresql-libs>=9.6.0') +makedepends=('gcc' 'cmake>=3.4') +install=timescaledb.install +source=("$pkgname-$pkgver::git+https://github.com/timescale/timescaledb.git") +md5sums=(SKIP) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./bootstrap + cd build && make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + make DESTDIR="$pkgdir/" install +} diff --git a/timescaledb.install b/timescaledb.install new file mode 100644 index 000000000000..8d960ff5e8bf --- /dev/null +++ b/timescaledb.install @@ -0,0 +1,19 @@ +post_install() { + echo "================================================================================" + 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" + echo "================================================================================" +} + +post_remove() { + echo "================================================================================" + echo "Remove 'timescaledb' from 'shared_preload_libraries'" + echo "In /var/lib/postgres/data/postgresql.conf" + echo "Then restart postgresql:" + echo "$ systemctl restart postgresql" + echo "================================================================================" +} |