updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / nessus-client / PKGBUILD
blobebb4afbe5fe213a9a68cbfda22b4a82f993d06c7
1 # Contributer: Pranay Kanwar <pranay.kanwar@gmail.com>
3 pkgname=nessus-client
4 pkgver=4.0.2
5 pkgrel=1
6 pkgdesc="Nessus client for nessus security scanner."
7 depends=('glib' 'glib2' 'openssl' 'libpng' 'fontconfig' 'xorg-server')
8 makedepends=('rpmextract')
9 url="http://www.nessus.org"
10 license='custom'
11 arch=(i686 x86_64)
13 source=(NessusClient-$pkgver-fc11.i586.rpm
14         nessusclient.install
15             LICENSE)
17 md5sums=('03a636493f2942747d617f73cb89b92f'
18          '14329de05281b36d4974fe5c93990164'
19          '64f80876ba31ebfd74d87e8c043996cb')
21 [ "$CARCH" = "x86_64" ] && source[0]=NessusClient-$pkgver-fc11.x86_64.rpm
22 [ "$CARCH" = "x86_64" ] && md5sums[0]='bad5d0a23decf11fa5477bc981694fb2'
24 build() {
25     cd $startdir/src
27     echo -n "==> Extracting files from the rpm..."
28     if [ "$CARCH" = "i686" ]; then
29          rpmextract.sh NessusClient-$pkgver-fc11.i586.rpm &> /dev/null
30     else
31          rpmextract.sh NessusClient-$pkgver-fc11.$CARCH.rpm &> /dev/null
32     fi
33     echo done.
34                  
35     echo -n "==> Patching files..." 
36     patch_files=(opt/nessus/bin/NessusClient)
37     
38     for elem in $(seq 0 $((${#patch_files[@]}-1)))
39     do 
40         sed -i 's/libcrypto.so.8/libcrypto.so\x00\x00/' "${patch_files[$elem]}"
41         sed -i 's/libssl.so.8/libssl.so\x00\x00/' "${patch_files[$elem]}"
42     done
43     echo "done."
45     mv opt $startdir/pkg
46     mv usr $startdir/pkg
47     mkdir -p $startdir/pkg/usr/share/licenses/nessus-client
48     cp $startdir/src/LICENSE $startdir/pkg/usr/share/licenses/nessus-client