Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Splashy < splash at open-web dot fr>
- # Modification by daneel
- pkgname=diaspora-git
- pkgver=20100920
- pkgrel=1
- pkgdesc="An open source social network"
- arch=('i686' 'x86_64')
- url="http://www.joindiaspora.com/"
- license=('"AGPL3"')
- depends=('ruby1.8' 'mongodb' 'openssl' 'imagemagick' 'rubygems1.8' 'libffi' 'libxslt')
- makedepends=('git')
- source=()
- md5sums=()
- _gitroot="git://github.com/diaspora/diaspora.git"
- _gitname="diaspora"
- build() {
- msg "Connecting to the GIT server...."
- if [[ -d ${srcdir}/${_gitname} ]] ; then
- cd $srcdir/${_gitname}
- git pull origin
- msg "The local files are updated..."
- else
- git clone ${_gitroot}
- fi
- msg "GIT checkout done."
- msg "Start making..."
- cd $srcdir/diaspora
- su root -c "gem-1.8 install bundler"
- su root -c "/opt/ruby1.8/bin/bundle install"
- cd $pkgdir
- mkdir opt
- mv $srcdir/diaspora opt
- msg "Please add mongodb in /etc/rc.conf then launch:"
- msg "cd /opt/diaspora"
- msg "sudo /opt/ruby1.8/bin/rake db:seed:tom"
- msg "sudo /opt/ruby1.8/bin/bundle exec /opt/ruby1.8/bin/thin start"
- msg "Go to http://localhost:3000/ then login with user tom and password evankorth"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement