updated riak to 0.11.0
authorHarvie <tomas@mudrunka.cz>
Fri, 25 Jun 2010 22:59:25 +0000 (00:59 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 25 Jun 2010 22:59:25 +0000 (00:59 +0200)
riak/PKGBUILD
riak/riak.install
riak/riak.rc

index ad052b21e11adec7973c3bb193bd397509c6d087..1038c281424324a7e19b7ac7e1ec9a7d568957f5 100644 (file)
@@ -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/
 }
-
index 3ca66f2d28115fd516b2b4d960e84db96e861ddd..bc59b86fb254ce8d740a21bc797a9580c926db8e 100644 (file)
@@ -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 <<EOS
+==> 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
 }
-
index 47fab96724c37ed5a1f377141f005006b03b3b7a..71d6a2c0fd0d0ec23544586834f5146576b31ff0 100755 (executable)
@@ -35,4 +35,3 @@ esac
 stat_done;
 echo "$err";
 exit 0;
-
This page took 0.147323 seconds and 4 git commands to generate.