@jnbrains: As I already said, the web server is optional.
or just put the file in the same folder as the PKGBUILD
Git Clone URL: | https://aur.archlinux.org/nessus.git (read-only, click to copy) |
---|---|
Package Base: | nessus |
Description: | Nessus vulnerability scanner |
Upstream URL: | https://www.tenable.com/downloads/nessus |
Keywords: | scanner security vulnerability |
Licenses: | custom |
Submitter: | r4um |
Maintainer: | noraj |
Last Packager: | noraj |
Votes: | 71 |
Popularity: | 0.003653 |
First Submitted: | 2007-03-11 15:14 (UTC) |
Last Updated: | 2024-09-12 19:58 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 19 Next › Last »
@jnbrains: As I already said, the web server is optional.
or just put the file in the same folder as the PKGBUILD
Thanks noraj,
It would be easier to replace steps 4 through 8 with a simple modification in the PKGBUILD file, using: source=("file://Nessus-x.x.x-fc20.x86_64.rpm" instead of source=("http://localhost:8000/Nessus-${pkgver}-fc20.x86_64.rpm" and you won't need to deal with web server of any kind.
P.S. You will still need to deal with the checksum. (or 'SKIP')
@hotty. As I already said, the web server is optional.
or just put the file in the same folder as the PKGBUILD
DLAGENTS
is useless, here, it is only used to spoof the user agent.
Using a local webserver to "download" a file is complicated when there is an easier way using DLAGENTS. The user has to download the binary and the PKGBUILD manually but no webserver needed.
Take a look at how "oracle-sqldeveloper" or "ttf-ms-win10" is handled.
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=oracle-sqldeveloper
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ttf-ms-win10
Tenable does not allow to host the package on a third-party server or to redistribute it in any way. You'll have to download it and serve it yourself.
git clone <https://aur.archlinux.org/nessus.git>
cd nessus
Nessus-x.x.x-fc20.x86_64.rpm
from https://www.tenable.com/downloads/nessusmakepkg -sic
Examples of quick web server:
ruby -run -ehttpd . -p8000
python -m http.server 8000
python -m SimpleHTTPServer 8000
php -S 127.0.0.1:8000
I'm not sure Tenable allows to host the rpm package on a third-party server. The package download should be left to the user.
Quick work around:
Download "Nessus-8.3.1-fc20.x86_64.rpm" from here. MAKE SURE YOU DOWNLOAD THIS EXACT PACKAGE: https://www.tenable.com/downloads/nessus
Make a new folder and put the RPM file in the new folder
If you have python2.7 installed use this
python -m SimpleHTTPServer
If you have python3 installed use this
python -m http.server
http://localhost:8000
You should see a directory listing of the folder you created with a link for the RPM to download it.
So this line:
source=("Nessus-${pkgver}-fc20.x86_64.rpm::http://101s.nappy.link/files/302GMRUTGq2pchPBvU/Nessus-8.3.1-fc20.x86_64.rpm"
Change to this:
source=("http://localhost:8000/Nessus-8.3.1-fc20.x86_64.rpm"
==> ERROR: Failure while downloading http://101s.nappy.link/files/302GMRUTGq2pchPBvU/Nessus-8.3.1-fc20.x86_64.rpm Aborting...
==> ERROR: Failure while downloading http://101s.nappy.link/files/W2xNjqCaSXvH73onxP/Nessus-8.2.3-fc20.x86_64.rpm
Aborting...
Error downloading sources: nessus
The new file hoster links dies too soon. The problem is that the rpm file can't be downloaded automatically from Teenable, so I must download it manually and then upload it on a file hoster. I'm looking for a free file hoster, with direct/hot link, a file upload around 100MB, no captcha and a file retention superior than 30 days.
Pinned Comments
noraj commented on 2022-05-30 21:23 (UTC) (edited on 2023-10-30 18:09 (UTC) by noraj)
⚠️⚠️⚠️
When the download link is dead just report as outdated, it's not an error it's just a new version is available.
⚠️⚠️⚠️