Package Details: nessus-agent 10.6.1-1

Git Clone URL: https://aur.archlinux.org/nessus-agent.git (read-only, click to copy)
Package Base: nessus-agent
Description: Nessus vulnerability scanner agent
Upstream URL: https://www.tenable.com/downloads/nessus-agents
Keywords: scanner security vulnerability
Licenses: custom
Conflicts: nessus
Submitter: noraj
Maintainer: noraj
Last Packager: noraj
Votes: 5
Popularity: 0.52
First Submitted: 2022-03-30 18:50 (UTC)
Last Updated: 2024-04-05 20:03 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Pinned Comments

noraj commented on 2022-03-30 18:51 (UTC)

Experimental package, kindly adapted from the nessus package by neale

Latest Comments

1 2 Next › Last »

BlueWilson commented on 2024-03-05 20:05 (UTC)

As before, an update for 10.5.1 is in need:

Tested this, with success:

pkgver=10.5.1
source=("NessusAgent-$pkgver-fc38.$arch.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/21856/download?i_agree_to_tenable_license_agreement=true"
        LICENSE)
b2sums=('a5402500e4e62c3f6975a6a1cf8b84332533858a5c651182a8e49897a219cae86cfe91a6dd4f94d2ed3ccc3b03df4ee07d088d1094ca27c6d78b0dbc8548d93d'

noraj commented on 2023-03-01 23:06 (UTC)

@jadoublet Don't comment each time the link expires, just report the package as out of date. It's not useful to create a fork, I just have to bump the package it's trivial. It's not useful either that get_nessus_link.py generates ab2sum as updpkgsums updates it automatically.

jadoublet commented on 2023-03-01 21:33 (UTC)

@noraj, I don't have access to contribute to your repo but I cloned your repo and made some changes that you can review here. This includes updates to not only PKGBUILD and .SRCINFO but also to get_nessus_link.py that also prints out b2sum of the new agent file that can be used in PKGBUILD and .SRCINFO.

jadoublet commented on 2023-03-01 17:36 (UTC)

Failed to download package .. 404 not found

curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/17927/download?i_agree_to_tenable_license_agreement=true
    Aborting...
 -> error downloading sources: nessus-agent 
     context: exit status 1

the-sj commented on 2022-12-05 22:44 (UTC)

Hi Noraj,

Thx, post_install() is working with yay. Guess removing the symlink should be added to:

--- a/nessus-agent.install
+++ b/nessus-agent.install
@@ -38,7 +38,7 @@ post_install() {
     ${NESSUS_PREFIX}/sbin/nessusd -R
   }

-  # Fix path for /usr/lib/systemd/system/nessusagent.service
+  #FIXME: Fix path for /usr/lib/systemd/system/nessusagent.service
   ln -s /opt/nessus-agent/ /opt/nessus_agent

   if [ "$NESSUS_PRODUCT" = "agent" ]; then
@@ -85,6 +85,10 @@ post_remove() {
   test -f ${NESSUS_PREFIX}/sbin/nessusd || { \
     rm -f ${NESSUS_PREFIX}/var/nessus/plugins-code.db
     rm -f ${NESSUS_PREFIX}/var/nessus/plugins-desc.db
+    
+    #FIXME: Fix path for /usr/lib/systemd/system/nessusagent.service
+    rm /opt/nessus_agent
+
   }
 }

I will try to fix the original problem at upstream. No promise ;-)

Thx and rgds, SJ

noraj commented on 2022-12-05 18:48 (UTC)

Fixed the symlink, moved it to the post_install()

the-sj commented on 2022-12-05 15:27 (UTC)

Hi Noraj,

So, I think it has something to do with the context package() is running in. All write operations run inside $pkgdir. Only the symlink action is absolute. Not sure, but as far as I remeber there is an other option for doing "post-install" actions. Creating the symlink can not be part of the "package()" build thing, imho. What do you think @noraj?, Rgds, SJ

the-sj commented on 2022-12-05 15:22 (UTC)

Hi noraj,

yay f.e. can not create the symlink, if there is no sudo, since you do not run yay as root. But I am wondering, why the rest is still working w/o sudo...

noraj commented on 2022-11-30 20:34 (UTC)

Hi the-sj,

it seems you only added sudo to the script? Why would that be needed? makepkg or any helper already ask you for privilege elevation.

the-sj commented on 2022-11-28 14:17 (UTC) (edited on 2022-11-28 14:18 (UTC) by the-sj)

Hi noraj,

Could you please fix the symlink workaround?

diff --git a/PKGBUILD b/PKGBUILD
index 6c99c7e..e761678 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,6 +34,6 @@ package() {
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

   # Fix path for /usr/lib/systemd/system/nessusagent.service
-  ln -s /opt/$pkgname/ /opt/${_pkgname}
+  sudo ln -s /opt/$pkgname/ /opt/${_pkgname}
 }

Rgds, SJ