@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.
Search Criteria
Package Details: nessus-agent 10.4.0-1
Package Actions
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: | 4 |
Popularity: | 0.48 |
First Submitted: | 2022-03-30 18:50 (UTC) |
Last Updated: | 2023-05-25 22:29 (UTC) |
Dependencies (2)
Required by (0)
Sources (2)
noraj commented on 2023-03-01 23:06 (UTC)
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
oliverlinn commented on 2022-11-14 14:52 (UTC) (edited on 2022-11-14 14:52 (UTC) by oliverlinn)
Hello,
the package needs an update. The following changes in the PKGBUILD need to be applied to install Version 10.2.1:
pkgver=10.2.1
source=("NessusAgent-${pkgver}-fc20.${arch}.rpm::https://www.tenable.com/downloads/api/v1/public/pages/${pkgname}s/downloads/17749/download?i_agree_to_tenable_license_agreement=true"
LICENSE)
b2sums=('0ccf286ed446e5542dbb2cedcf1b5774455e0e1484b50580e1f68876ded6c9e6a437e47b4cc262d286ac1354336064fc4397e81f42e74e1fb041f7e014af319f'
'2c68d4f30686a711fbf5c77b70d9b307f9fdcc8095cea79d8c310edfeea87563d94b9106fce35fc53685e6703afb729b9d81f504a1983c367621605690ea03e1')
Cheers
Pinned Comments
noraj commented on 2022-03-30 18:51 (UTC)
Experimental package, kindly adapted from the nessus package by neale