From d90b6ef65405b94929d4acaf6e1d71c853f4c94b Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Thu, 2 Jun 2022 20:25:27 -0400 Subject: [PATCH] move nmap.sh to Makefile --- Makefile | 8 ++++++++ dotfiles/misc/nmap.sh | 30 ------------------------------ 2 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 dotfiles/misc/nmap.sh diff --git a/Makefile b/Makefile index 02780fc..e5ed23a 100644 --- a/Makefile +++ b/Makefile @@ -160,6 +160,14 @@ arch-yay: audacious-skins: 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: # creates an 8GB empty file in the root dir # that way when the alarm bells go off you can delete it to save a diff --git a/dotfiles/misc/nmap.sh b/dotfiles/misc/nmap.sh deleted file mode 100644 index 200006f..0000000 --- a/dotfiles/misc/nmap.sh +++ /dev/null @@ -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