aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql-bdr-extension
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@alpinelinux.org>2015-05-04 17:24:30 +0000
committerJeff Bilyk <jbilyk@alpinelinux.org>2015-05-04 17:24:30 +0000
commit9a77d3fa7ad4acce0dc2b607df9a2218142cbb26 (patch)
treed6b3ce913f7769c6f073777f4a75605e8c446e28 /main/postgresql-bdr-extension
parentf5297b280805aa0b0036d7bf8f4bcea12075c80a (diff)
downloadaports-9a77d3fa7ad4acce0dc2b607df9a2218142cbb26.tar.bz2
aports-9a77d3fa7ad4acce0dc2b607df9a2218142cbb26.tar.xz
main/postgresql-{bdr,bdr-extension}: moved from testing
Diffstat (limited to 'main/postgresql-bdr-extension')
-rw-r--r--main/postgresql-bdr-extension/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/postgresql-bdr-extension/APKBUILD b/main/postgresql-bdr-extension/APKBUILD
new file mode 100644
index 0000000000..b9284233d3
--- /dev/null
+++ b/main/postgresql-bdr-extension/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=postgresql-bdr-extension
+pkgver=0.9.0
+pkgrel=0
+pkgdesc="PostgreSQL bidirectional replication (BDR) extension"
+url="https://wiki.postgresql.org/wiki/BDR_Administration"
+arch="all"
+license="GPL"
+depends=
+depends_dev=
+makedepends="$depends_dev postgresql-bdr-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/bdr-$pkgver.tar.bz2"
+
+
+_builddir="$srcdir"/bdr-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-bdr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+ # remove the 2 lines below (and this) if there is no init.d script
+ # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="2c4d9200e5be7ae9c0be3f10efa54f3c bdr-0.9.0.tar.bz2"
+sha256sums="128b5625ea7430f4c73bfb78466cc706309605a7229a8db555927930d2bc6a94 bdr-0.9.0.tar.bz2"
+sha512sums="00497a67969d748cdefac3049939e2d1fbd360d8f2ab86574743dd1e5fa0d3c5b1de2571acf7bc0da24d257c93da9db26d3fb2abd7eb1029effeed189d362ac7 bdr-0.9.0.tar.bz2"