diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-16 15:01:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-16 15:01:09 +0000 |
commit | bc0fb401440b07d8af23dcfadc2648e9bba7c65d (patch) | |
tree | cfbc216ac04e53386e040a1857c62c5c32488209 | |
parent | 7afe85a68de8d1a3c457bcf949d0d2fb4371cfc9 (diff) | |
download | aports-bc0fb401440b07d8af23dcfadc2648e9bba7c65d.tar.bz2 aports-bc0fb401440b07d8af23dcfadc2648e9bba7c65d.tar.xz |
testing/postgresql-bdr: use tarball instead of git commit
-rw-r--r-- | testing/postgresql-bdr/APKBUILD | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/testing/postgresql-bdr/APKBUILD b/testing/postgresql-bdr/APKBUILD index 7b1fec3326..6ed6488bcd 100644 --- a/testing/postgresql-bdr/APKBUILD +++ b/testing/postgresql-bdr/APKBUILD @@ -1,25 +1,22 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=postgresql-bdr -_gitcommit=633ebfc -_giturl="git://git.postgresql.org/git/2ndquadrant_bdr.git" -_gittag=633ebfc -pkgver=9.4.1 -[ -z "${_gittag}" ] && _suffix="_src" || _suffix="${_gittag}" -pkgrel=1 +pkgver=9.4.1_p1 +_ver=${pkgver/_p/_bdr} +pkgrel=0 pkgdesc="A sophisticated object-relational DBMS with bidirectional replication support (BDR)" url="https://wiki.postgresql.org/wiki/BDR_Administration" arch="x86_64" license="BSD" -depends="postgresql-client" +depends="postgresql-bdr-client" install="$pkgname.pre-upgrade" depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev" makedepends="$depends_dev perl bison flex-dev" -subpackages="$pkgname-dev $pkgname-dbg libpq $pkgname-client +subpackages="$pkgname-dev $pkgname-dbg $pkgname-libpq $pkgname-client $pkgname-contrib" patches="initdb.patch postgresql-bdr-osxflags.patch " -source="http://distfiles.alpinelinux.org/distfiles/$pkgname-$pkgver-$_suffix.tar.bz2 +source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/postgresql-bdr-$_ver.tar.bz2 $patches $pkgname.initd $pkgname.confd @@ -27,22 +24,7 @@ source="http://distfiles.alpinelinux.org/distfiles/$pkgname-$pkgver-$_suffix.tar pgbdr-restore.confd " -_builddir="$srcdir"/$pkgname-$pkgver - -snapshot() { - mkdir -p "$srcdir" - cd "${SRCDEST:-$srcdir}" - if ! [ -d $pkgname.git ]; then - git clone --bare $_giturl $pkgname.git || return 1 - cd $pkgname.git - else - cd $pkgname.git - git fetch || return 1 - fi - git archive --prefix=$pkgname-$pkgver/ -o "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar $_gittag - rm "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar.bz2 - bzip2 "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar -} +_builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" @@ -116,21 +98,21 @@ contrib() { || return 1 } -md5sums="16e4d6f9814829c0790d79da64c08e53 postgresql-bdr-9.4.1-633ebfc.tar.bz2 +md5sums="b87f65b71b23027ab0ef98d951af4254 postgresql-bdr-9.4.1_bdr1.tar.bz2 00f0fc07fb8447f7e174c4cee0661722 initdb.patch 8dec4e9dc132304b5d33586acbcdbf90 postgresql-bdr-osxflags.patch 901e76a1b9eedd08893f1aee23637f16 postgresql-bdr.initd 199747784fcba0a92e55283b90993d78 postgresql-bdr.confd d2a51db4436e550d56bb1e96699faef4 pgbdr-restore.initd bf45384752b320b369f1425939763178 pgbdr-restore.confd" -sha256sums="dc195f62989cad265d6dc62c8f2a0f72fe50f6a845ba3ea8c790449de3d756fe postgresql-bdr-9.4.1-633ebfc.tar.bz2 +sha256sums="0940c30ae0a2d011f54bb4fb652ed6291d2344a32448f8138f70b27a54708f36 postgresql-bdr-9.4.1_bdr1.tar.bz2 36a65229bf31b20a95ff2e2cac1a6ece0c61afdcd0b544759ad12f34d1b98a39 initdb.patch d6f0f3eebca1c524c746c54be289e9816b00ad27fbfa834c2caee76c47daf155 postgresql-bdr-osxflags.patch c173ffd6c3ce4348fdcee8c8511a2e09af3bed350a3cdef6cadc1700e79063b4 postgresql-bdr.initd 70ac7bf24556c16e6324b4efe76fba425bb09a2f7e74afbb5f988333eb8df724 postgresql-bdr.confd d73701e9a5fff2d7088ee50d7c7fc8a2fa19f651237d8b880c579e0e09515609 pgbdr-restore.initd 31414d8b57c4cd2116b6014de3f1329875151910753fbd616daec4554866d02f pgbdr-restore.confd" -sha512sums="893a837acd644aedda0eaa32c4f3efe8f37b1116ab79d675c9ea1510a36bfcf44effdb03c19365ddffb7314e3b4e9cba999589765be70f6a6648ac639b5f2d61 postgresql-bdr-9.4.1-633ebfc.tar.bz2 +sha512sums="4365514dc4f6bb9ec86edc966e71e87fe3eacf48a2d2f187bdf21360bbe61952422918d8f616680f0910f4812aa14af090ae69a377b081e4cc70988ca931fc2a postgresql-bdr-9.4.1_bdr1.tar.bz2 6f7fdceb1a5aba3f00894ae88afdf25e5f9c7a0ffc00b11211011a6415ea73639d6a67f516cab66c6487484bab26ded3c93471d6d41ac0d3822926c22274f2ba initdb.patch 1973863bfc208ce20ca2dd82557ebbd4fcddd1219d6a80f2e83550d0110d39f034cb829cca3ee9208f513a24b032267b94559c740ddddb10a4f24c630194eb5e postgresql-bdr-osxflags.patch 861e4f5091cb2b3c80ce0afddb09275ed7e130c717235cdb7a3e58599424f13c11855e158e584b7342df18d47f7a7d71e945b8899337f82a3ea814a11fff39c0 postgresql-bdr.initd |