4 pkgdesc="Open source framework to enable effective information sharing"
6 url="http://dradisframework.org/"
9 depends=('sqlite3' 'sqlite3-ruby' 'ruby-bundler' 'ruby-redcloth' 'ruby-rails' 'ruby-factory_girl' 'ruby-nokogiri' 'ruby-thor' 'ruby-rspec-rails')
11 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2" \
13 md5sums=('94df3099cadc044569718a7bdeecec5e'
14 '5d30b6b5116eb8ede07cd478b47d9f85')
17 cd "$srcdir/$pkgname-2.7"
18 install -d $pkgdir/{usr/bin,opt/$pkgname}
19 cp -aR {readme.txt,*.sh} \
22 patch -Np0 < $srcdir/Gemfile.patch
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