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

AUR PKGBUILD Cassandra 0.7.4

By: a guest on Apr 19th, 2011  |  syntax: None  |  size: 1.19 KB  |  views: 108  |  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.7.4
  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://apache.mirror.anlx.net/cassandra/$pkgver/apache-$pkgname-$pkgver-bin.tar.gz")
  19. noextract=()
  20. md5sums=('ee0d7ac9b73dedb0a5dca1c34499c2d5')
  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. }