mirror of
https://github.com/nmap/nmap.git
synced 2026-09-04 09:32:16 +00:00
Update checklibs.sh for libpcap VERSION.txt name change
This commit is contained in:
parent
7ae5c4d927
commit
6a6ac5cc75
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ check_libpcre() {
|
|||
|
||||
check_libpcap() {
|
||||
PCAP_SOURCE="https://www.tcpdump.org/release/"
|
||||
PCAP_VERSION=$(cat $NDIR/libpcap/VERSION)
|
||||
PCAP_VERSION=$(cat $NDIR/libpcap/VERSION 2>/dev/null || cat $NDIR/libpcap/VERSION.txt)
|
||||
PCAP_LATEST=$(curl -s $PCAP_SOURCE | perl -lne 'if(/libpcap-([\d.]+).tar.gz/){print $1}' | newest)
|
||||
if [ "$PCAP_VERSION" != "$PCAP_LATEST" ]; then
|
||||
echo "Newer version of libpcap available"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue