1
0

move nmap.sh to Makefile

This commit is contained in:
dtb
2022-06-02 20:25:27 -04:00
parent a5e74c8552
commit d90b6ef654
2 changed files with 8 additions and 30 deletions

View File

@@ -1,30 +0,0 @@
#!/bin/sh
# builds and installs nmap 7.80 because the fucking pieces of shit that
# maintain nmap decided to make 7.90+ NONFREE.
# i do like nmap and i have nothing personal against the actual maintainers.
# but come ON.
# anyway...
set -e
FILENAME="nmap-7.80.tar.bz2"
ORIGINAL_DIST_BZ2="https://nmap.org/dist/nmap-7.80.tar.bz2"
ARCHIVED_DIST_BZ2="http://web.archive.org/web/20200922062002/https://nmap.org/dist/nmap-7.80.tar.bz2"
cd $HOME/src
curl "$ORIGINAL_DIST_BZ2" >"$FILENAME" || curl "$ARCHIVED_DIST_BZ2" >"$FILENAME"
bzip2 -cd <"$FILENAME" | tar -x
# see, i could do complicated math to determine this based on the filename, or
# i could hard-code this and let it error if i've inexplicably grabbed
# nmap-7.8.1
cd "nmap-7.8.0"
./configure
make
sudo make install