diff options
author | noraj | 2022-12-05 19:48:00 +0100 |
---|---|---|
committer | noraj | 2022-12-05 19:48:00 +0100 |
commit | c2608e39b5ecd73e94d505b7fb023a8137923150 (patch) | |
tree | 4b317465f01eef1d98330151102895fa5b954fe5 | |
parent | 80afd4655a98e55a240e8ee13dc3500383f12e66 (diff) | |
download | aur-c2608e39b5ecd73e94d505b7fb023a8137923150.tar.gz |
fix symlink + add conflict
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | nessus-agent.install | 3 |
3 files changed, 7 insertions, 5 deletions
@@ -1,13 +1,14 @@ pkgbase = nessus-agent pkgdesc = Nessus vulnerability scanner agent pkgver = 10.3.0 - pkgrel = 1 + pkgrel = 2 url = https://www.tenable.com/downloads/nessus-agents install = nessus-agent.install arch = x86_64 license = custom makedepends = inetutils depends = gnupg + conflicts = nessus options = !strip options = debug source = NessusAgent-10.3.0-fc34.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/17927/download?i_agree_to_tenable_license_agreement=true @@ -4,7 +4,7 @@ pkgname=nessus-agent _pkgname=nessus_agent pkgver=10.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="Nessus vulnerability scanner agent" arch=('x86_64') depends=('gnupg') @@ -17,6 +17,7 @@ source=("NessusAgent-$pkgver-fc34.$arch.rpm::https://www.tenable.com/downloads/a LICENSE) b2sums=('71a532c43601e8f0b9ae3665fbef72cac5791825157764ddcef93c95949e46080128842930cc80b2901d59e1fd67a523625ed1502bff35d5bf20f8698736a042' '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" \ @@ -32,8 +33,5 @@ package() { # license install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - # Fix path for /usr/lib/systemd/system/nessusagent.service - ln -s /opt/$pkgname/ /opt/${_pkgname} } diff --git a/nessus-agent.install b/nessus-agent.install index bf4b43409d76..51164dd06366 100644 --- a/nessus-agent.install +++ b/nessus-agent.install @@ -38,6 +38,9 @@ post_install() { ${NESSUS_PREFIX}/sbin/nessusd -R } + # Fix path for /usr/lib/systemd/system/nessusagent.service + ln -s /opt/nessus-agent/ /opt/nessus_agent + if [ "$NESSUS_PRODUCT" = "agent" ]; then echo " - First, link this agent to the Nessus Manager with the '$NESSUS_PREFIX/sbin/nessuscli agent' command." echo " Type '$NESSUS_PREFIX/sbin/nessuscli agent help' for more info." |