Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PACKAGE REQUEST] nmap #29

Open
DyonR opened this issue Aug 13, 2020 · 4 comments
Open

[PACKAGE REQUEST] nmap #29

DyonR opened this issue Aug 13, 2020 · 4 comments

Comments

@DyonR
Copy link

DyonR commented Aug 13, 2020

nmap is a default Slackware package and I was able to install it manually using upgradepkg using the command line of Unraid.
However, I think it would be a nice addition to NerdPack:
Nmap:
https://mirrors.slackware.com/slackware/slackware64-current/slackware64/n/nmap-7.80-x86_64-3.txz

I believe this is a dependency that is required, since I got an error running nmap before installing this:
https://mirrors.slackware.com/slackware/slackware64-current/slackware64/l/libnl-1.1.4-x86_64-3.txz

@kubedzero
Copy link
Contributor

@dmacias72 Is there any way to force Nerd Pack to install a prerequisite dependency during the install of another? In this example, if a user were to enable/install nmap, are there any utilities in Nerd Pack that could check for dependencies and install those at the same time?

If not, then the best option we have to add this in is to just add both packages into the 6.8/6.9 directories in this repo and force it on the user to debug/install libnl when nmap fails to execute. @DyonR you could submit a pull request to do that

@kubedzero
Copy link
Contributor

Ah! I found that functionality while poking around the code: https://github.com/dmacias72/unRAID-NerdPack/blob/master/source/NerdPack/usr/local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js#L159 defines some packages to check the box of other packages, forcing installation of them as well (as far as I can tell)

@dmacias72
Copy link
Owner

There's no way to really determine the dependencies automatically. So it's hard-coded into the javascript. But I'd like to make it independent with a json array that can be updated separately instead of having to update the whole plugin.

@techie2000
Copy link
Contributor

In the absence of nmap in Nerd Pack, I employ a user script that runs on First Array Start Only to d/l nmap and the dependency I found:

#!/bin/bash
cd /tmp
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/n/nmap-7.12-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/patches/packages/openssl-1.0.2u-x86_64-1_slack14.2.txz
upgradepkg --install-new nmap-7.12-x86_64-1.txz
upgradepkg --install-new openssl-1.0.2u-x86_64-1_slack14.2.txz

I THINK you could put the .txz files in /extra and they would get installed on each boot...but I'm not certain on that one.

Of course, I could leave the openssl pice to the Dev Pack, but I like to keep my (known) dependencies in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants