Created
August 21, 2017 19:58
-
-
Save syzdek/1e4c154b8667269a5c565a14c2f825ee to your computer and use it in GitHub Desktop.
Simple build script to build TomSellers' nmap repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "building TomSellers's nmap..." | |
set -x -e | |
pwd | |
git clone https://github.com/TomSellers/nmap.git | |
( cd nmap && git branch build 7c833b933e771923e660 && checkout build ) | |
( cd nmap && ./configure --prefix=/opt/nmap ) | |
( cd nmap/libdnet-stripped && make ) | |
( cd nmap/liblinear && make ) | |
( cd nmap/liblua && make linux LDFLAGS='-lncurses' ) | |
( cd nmap/libnetutil && make ) | |
( cd nmap/libpcap && ./configure --prefix=/opt/nmap && make ) | |
( cd nmap/libpcre && ./configure --prefix=/opt/nmap && make ) | |
( cd nmap/libssh2 && make ) | |
( cd nmap/nbase && make ) | |
( cd nmap && make -j 4 ) | |
cat << EOF | |
Build has finished. To install run: | |
( cd nmap && sudo make install ) | |
EOF | |
# end of script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment