blob: e313ac2e8ee8ffc55657e2919e157669aab5e453 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: noraj <printf %s 'YWxleGFuZHJlLnphbm5pQGV1cm9wZS5jb20='|base64 -d>
# Contributor: neale
pkgname=nessus-agent
_pkgname=nessus_agent
pkgver=10.7.3
pkgrel=1
pkgdesc="Nessus vulnerability scanner agent"
arch=('x86_64')
depends=('gnupg')
makedepends=('inetutils')
license=('custom')
options=(!strip debug)
url="https://www.tenable.com/downloads/nessus-agents"
install="$pkgname.install"
source=("NessusAgent-$pkgver-fc38.$arch.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/24288/download?i_agree_to_tenable_license_agreement=true"
LICENSE)
b2sums=('e28c6c1c3deb0fe63cd3a73fff2bdbc94ac3e0cfc0ac40fe9b31635d7ce81135beb0bd5819351dd5ed07cad63a35cd66b68a2b4b8e0501096403b38a894f6707'
'2c68d4f30686a711fbf5c77b70d9b307f9fdcc8095cea79d8c310edfeea87563d94b9106fce35fc53685e6703afb729b9d81f504a1983c367621605690ea03e1')
conflicts=('nessus') # due to /etc/ld.so.conf.d/nessus.conf
package() {
mkdir -p "$pkgdir/etc/ld.so.conf.d" "$pkgdir/usr/share" "$pkgdir/opt/$pkgname" \
"$pkgdir/usr/lib"
cp -a usr/lib "$pkgdir/usr"
# path to libraries
echo /opt/${_pkgname}/lib > "$pkgdir/etc/ld.so.conf.d/nessus.conf"
# main files
cp -a opt/${_pkgname}/{bin,com,etc,lib,sbin,var} "$pkgdir/opt/$pkgname"
# license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|