updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / dradis / PKGBUILD
blob71d11521cc7c9013737f9eaa34ae5f9586e994d3
1 pkgname=dradis
2 pkgver=2.7.0
3 pkgrel=2
4 pkgdesc="Open source framework to enable effective information sharing"
5 arch=('i686' 'x86_64')
6 url="http://dradisframework.org/"
7 license=('GPL2')
8 options=('!emptydirs')
9 depends=('sqlite3' 'sqlite3-ruby' 'ruby-bundler' 'ruby-redcloth' 'ruby-rails' 'ruby-factory_girl' 'ruby-nokogiri' 'ruby-thor' 'ruby-rspec-rails')
10 install='install'
11 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2" \
12         "Gemfile.patch")
13 md5sums=('94df3099cadc044569718a7bdeecec5e'
14          '5d30b6b5116eb8ede07cd478b47d9f85')
16 package() {
17         cd "$srcdir/$pkgname-2.7"
18         install -d $pkgdir/{usr/bin,opt/$pkgname}
19         cp -aR {readme.txt,*.sh} \
20                 $pkgdir/opt/$pkgname/
22         patch -Np0 < $srcdir/Gemfile.patch
23         cp -R server/ \
24                 $pkgdir/opt/$pkgname/
25         
26         #Fix location of "server" dir
27         sed -i 's|cd server|cd /opt/dradis/server|g' start.sh reset.sh
28         install -Dm755 start.sh \
29                 $pkgdir/usr/bin/$pkgname-start
31         install -Dm755 reset.sh \
32                 $pkgdir/usr/bin/$pkgname-reset
33         mv $pkgdir/opt/$pkgname/server/config/database.yml.template $pkgdir/opt/$pkgname/server/config/database.yml
34         
35