1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-10 15:36:33 +00:00

Make NMAP_MODIFICATIONS into a directory with discrete patch files.

This commit is contained in:
david
2012-04-10 00:47:51 +00:00
parent 5d24d23600
commit 75856fd1dd
5 changed files with 284 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
Download libpcap-X.Y.tar.gz from http://www.tcpdump.org/#latest-release
and verify the signature.
cd
# Make a copy of this directory.
cp -r ~/nmap/NMAP_MODIFICATIONS .
tar xzvf libpcap-X.Y.tar.gz
cd nmap
rsync -rv --delete ~/libpcap-X.Y/ ~/nmap/libpcap/
git add -A libpcap
cd libpcap
./configure
make grammar.c scanner.c scanner.h tokdefs.h
git add grammar.c scanner.c scanner.h tokdefs.h
cd ..
# Apply patches.
git apply -p0 --directory=libpcap/ ~/NMAP_MODIFICATIONS/000*
cd libpcap
autoconf
cd ..
git add -u libpcap
mv ~/NMAP_MODIFICATIONS libpcap/
git add libpcap/NMAP_MODIFICATIONS
git commit -m "Upgrade libpcap to X.Y."