From dcf6fafd86a562602c1b14ab6b09a38bfe71d6f3 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sat, 26 Jun 2010 00:59:25 +0200 Subject: [PATCH] updated riak to 0.11.0 --- riak/PKGBUILD | 13 ++++++------- riak/riak.install | 7 +++++-- riak/riak.rc | 1 - 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/riak/PKGBUILD b/riak/PKGBUILD index ad052b2..1038c28 100644 --- a/riak/PKGBUILD +++ b/riak/PKGBUILD @@ -3,18 +3,18 @@ # You can also contact me on http://blog.harvie.cz/ pkgname=riak -pkgver=0.9.1 +pkgver=0.11.0 pkgrel=1 pkgdesc="NOSQL database engine providing decentralized key-value store, flexible map/reduce engine and HTTP/JSON query interface" arch=(i686 x86_64) license=('Apache 2') url='http://riak.basho.com/' makedepends=(erlang make gcc pacman) -pkgbigver=$( echo $pkgver | grep -o ^... ) #get x.x version from x.x.x version -backup=('etc/riak/app.config' 'etc/riak/vm.args') +pkgbigver=$( echo $pkgver | grep -o ^[0-9]*.[0-9]* ) #get x.x version from x.x.x version +backup=('opt/riak/etc/app.config' 'opt/riak/etc/vm.args') install="${pkgname}.install" source=("http://downloads.basho.com/riak/${pkgname}-${pkgbigver}/${pkgname}-${pkgver}.tar.gz" 'riak.rc') -md5sums=('1f78bb838ae6ded568486b0b56655613' +md5sums=('5792ac2b91ad71ccaee91d1ef9632348' 'd44752424e6331518a854de08fab5156') prefixpath="/opt/${pkgname}" #prefixpath="/usr/lib/erlang" @@ -53,8 +53,8 @@ build() { mkdir -p ${pkgdir}/etc/rc.d ln -s ${prefixpath}/etc ${pkgdir}/etc/riak mkdir -p ${pkgdir}/usr/share/doc/ - cp -r ${srcdir}/riak-0.9.1/doc/man ${pkgdir}/usr/share/ - cp -r ${srcdir}/riak-0.9.1/doc ${pkgdir}/usr/share/doc/riak + cp -r ${srcdir}/riak-${pkgver}/doc/man ${pkgdir}/usr/share/ + cp -r ${srcdir}/riak-${pkgver}/doc ${pkgdir}/usr/share/doc/riak rm -r ${pkgdir}/usr/share/doc/riak/man mkdir -p ${pkgdir}/usr/bin/ @@ -69,4 +69,3 @@ EOF chmod -R 755 ${pkgdir}/usr/bin/ ${pkgdir}/etc/rc.d/ } - diff --git a/riak/riak.install b/riak/riak.install index 3ca66f2..bc59b86 100644 --- a/riak/riak.install +++ b/riak/riak.install @@ -1,7 +1,6 @@ iuser=riak; igroup="$iuser"; ihome="/opt/$iuser"; -#iid="78"; # arg 1: the new package version post_install() { @@ -16,6 +15,11 @@ post_install() { chown -R "$iuser:$igroup" "$ihome" #chmod -R g+rw "$ihome" chmod a+x "$ihome" + + ls /opt/riak/etc/*.pacnew &> /dev/null && cat < WARNING! Riak configuration (or even storage backend) may changed since +==> the last version, you rather check http://basho.com/ for changelog... +EOS } # arg 1: the new package version @@ -35,4 +39,3 @@ pre_remove() { userdel "$iuser" &> /dev/null groupdel "$igroup" &> /dev/null } - diff --git a/riak/riak.rc b/riak/riak.rc index 47fab96..71d6a2c 100755 --- a/riak/riak.rc +++ b/riak/riak.rc @@ -35,4 +35,3 @@ esac stat_done; echo "$err"; exit 0; - -- 2.30.2