Skip to content

Instantly share code, notes, and snippets.

@syzdek
Created August 21, 2017 19:58
Show Gist options
  • Save syzdek/1e4c154b8667269a5c565a14c2f825ee to your computer and use it in GitHub Desktop.
Save syzdek/1e4c154b8667269a5c565a14c2f825ee to your computer and use it in GitHub Desktop.
Simple build script to build TomSellers' nmap repository
#!/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