1 # Contributer: Pranay Kanwar <pranay.kanwar@gmail.com>
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"
13 source=(NessusClient-$pkgver-fc11.i586.rpm
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'
27 echo -n "==> Extracting files from the rpm..."
28 if [ "$CARCH" = "i686" ]; then
29 rpmextract.sh NessusClient-$pkgver-fc11.i586.rpm &> /dev/null
31 rpmextract.sh NessusClient-$pkgver-fc11.$CARCH.rpm &> /dev/null
35 echo -n "==> Patching files..."
36 patch_files=(opt/nessus/bin/NessusClient)
38 for elem in $(seq 0 $((${#patch_files[@]}-1)))
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]}"
47 mkdir -p $startdir/pkg/usr/share/licenses/nessus-client
48 cp $startdir/src/LICENSE $startdir/pkg/usr/share/licenses/nessus-client