aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Pirogov <vbnet.ru@gmail.com>2020-04-15 16:32:11 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-17 07:31:24 +0000
commit5e5aab879c0d9f1ba8a565d4ca94e25f672d3ff4 (patch)
tree426c2542daf5791c2dfe4489cc3e49389f8628a0
parente4a055de8c354e2a13be7e15f6a48b7bb760a5cb (diff)
downloadaports-5e5aab879c0d9f1ba8a565d4ca94e25f672d3ff4.tar.bz2
aports-5e5aab879c0d9f1ba8a565d4ca94e25f672d3ff4.tar.xz
testing/postgresql-citus: new aport
-rw-r--r--testing/postgresql-citus/APKBUILD35
-rw-r--r--testing/postgresql-citus/postgresql-citus.post-install10
2 files changed, 45 insertions, 0 deletions
diff --git a/testing/postgresql-citus/APKBUILD b/testing/postgresql-citus/APKBUILD
new file mode 100644
index 0000000000..82a063dee2
--- /dev/null
+++ b/testing/postgresql-citus/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
+# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
+pkgname=postgresql-citus
+_projname=citus
+pkgver=9.2.4
+pkgrel=0
+pkgdesc="Scalable PostgreSQL for multi-tenant and real-time analytics workloads"
+url="https://github.com/citusdata/citus"
+arch="all"
+license="AGPL-3.0-only"
+makedepends="autoconf postgresql-dev"
+provides="pg_cron=$pkgver-r$pkgrel"
+install="$pkgname.post-install"
+source="https://github.com/citusdata/citus/archive/v$pkgver/$_projname-$pkgver.tar.gz"
+builddir="$srcdir/$_projname-$pkgver"
+options="!check" # tests requires running postgresql cluster
+
+prepare() {
+ default_prepare
+ autoreconf -fi
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --without-libcurl
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="746b1a31edddea6082e24583e5604dd228bd5ae39d7a37648e5053e26ad70050b2a8b3988a8ab9c493d8084214437e5d881412a5a98fd51ae3ea5d634bc65e98 citus-9.2.4.tar.gz"
diff --git a/testing/postgresql-citus/postgresql-citus.post-install b/testing/postgresql-citus/postgresql-citus.post-install
new file mode 100644
index 0000000000..efc77d8157
--- /dev/null
+++ b/testing/postgresql-citus/postgresql-citus.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cat <<EOF
+*
+* Add the following line to postgresql.conf and restart PostgreSQL:
+* shared_preload_libraries = 'citus'
+*
+EOF
+
+exit 0