1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Update checklibs.sh for libpcap VERSION.txt name change

This commit is contained in:
dmiller
2023-07-20 15:59:08 +00:00
parent 7ae5c4d927
commit 6a6ac5cc75

View File

@@ -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"