This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 19th, 2010  |  syntax: None  |  size: 1.34 KB  |  views: 85  |  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. # Maintainer: Splashy < splash at open-web dot fr>
  2. # Modification by daneel
  3.  
  4. pkgname=diaspora-git
  5. pkgver=20100920
  6. pkgrel=1
  7. pkgdesc="An open source social network"
  8. arch=('i686' 'x86_64')
  9. url="http://www.joindiaspora.com/"
  10. license=('"AGPL3"')
  11. depends=('ruby1.8' 'mongodb' 'openssl' 'imagemagick' 'rubygems1.8' 'libffi' 'libxslt')
  12. makedepends=('git')
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="git://github.com/diaspora/diaspora.git"
  17. _gitname="diaspora"
  18.  
  19. build() {
  20.        
  21.        
  22.         msg "Connecting to the GIT server...."
  23.  
  24.         if [[ -d ${srcdir}/${_gitname} ]] ; then
  25.                 cd $srcdir/${_gitname}
  26.                 git pull origin
  27.                 msg "The local files are updated..."
  28.         else
  29.                 git clone ${_gitroot}
  30.         fi
  31.  
  32.         msg "GIT checkout done."
  33.         msg "Start making..."
  34.  
  35.         cd $srcdir/diaspora
  36.         su root -c "gem-1.8 install bundler"
  37.         su root -c "/opt/ruby1.8/bin/bundle install"
  38.         cd $pkgdir
  39.         mkdir opt
  40.         mv $srcdir/diaspora opt
  41.  
  42.         msg "Please add mongodb in /etc/rc.conf then launch:"
  43.         msg "cd /opt/diaspora"
  44.         msg "sudo /opt/ruby1.8/bin/rake db:seed:tom"
  45.         msg "sudo /opt/ruby1.8/bin/bundle exec /opt/ruby1.8/bin/thin start"
  46.         msg "Go to http://localhost:3000/ then login with user tom and password evankorth"
  47. }
clone this paste RAW Paste Data