Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

tychoish

By: a guest on Jan 3rd, 2011  |  syntax: Bash  |  size: 1.20 KB  |  views: 93  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=cassandra
  2. pkgver=0.6.8
  3. pkgrel=1
  4. pkgdesc="Cassandra NoSQL database"
  5. arch=('any')
  6. url="http://cassandra.apache.org/"
  7. license=('APACHE')
  8. groups=()
  9. depends=('java-runtime')
  10. makedepends=()
  11. optdepends=()
  12. provides=()
  13. conflicts=()
  14. replaces=()
  15. backup=()
  16. options=()
  17. # install=
  18. source=("http://www.apache.org/dyn/closer.cgi?path=/$pkgname/$pkgver/apache-$pkgname-$pkgver-bin.tar.gz")
  19. noextract=()
  20. md5sums=('a1a15b00e78fd3148c37d45900e08829')
  21.  
  22. build() {
  23.   cd "$srcdir/apache-$pkgname-$pkgver"
  24.  
  25.   mkdir -p $pkgdir/var/{lib,log}/cassandra
  26.   mkdir -p $pkgdir/usr/bin
  27.   mkdir -p $pkgdir/usr/share/cassandra
  28.  
  29.   sed -i 's/`dirname $0`\/../\/usr\/share\/cassandra/' bin/cassandra.in.sh
  30.  
  31.   chown http:http $pkgdir/var/{lib,log}/cassandra
  32.  
  33.   cp -a {lib,conf,interface} $pkgdir/usr/share/cassandra/
  34.  
  35.   install bin/cassandra.in.sh $pkgdir/usr/share/cassandra
  36.   install bin/cassandra $pkgdir/usr/bin/
  37.   install bin/cassandra-cli $pkgdir/usr/bin/
  38.   install bin/clustertool $pkgdir/usr/bin/
  39.   install bin/nodetool $pkgdir/usr/bin/
  40.   install bin/json2sstable $pkgdir/usr/bin/
  41.   install bin/sstablekeys $pkgdir/usr/bin/
  42.   install bin/sstable2json $pkgdir/usr/bin/
  43.   install bin/stop-server $pkgdir/usr/bin/
  44. }