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

@ -160,6 +160,14 @@ arch-yay:
audacious-skins: audacious-skins:
curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o /usr/share/audacious/Skins/Sailor_Moon_Gang.wsz curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o /usr/share/audacious/Skins/Sailor_Moon_Gang.wsz
# nmap 7.80 is the last Free nmap release
nmap:
mkdir -p ~/src
cd ~/src
curl "https://nmap.org/dist/nmap-7.80.tar.bz2" | bzip2 -cd | tar -x
./configure
make
spacer: spacer:
# creates an 8GB empty file in the root dir # creates an 8GB empty file in the root dir
# that way when the alarm bells go off you can delete it to save a # that way when the alarm bells go off you can delete it to save a

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