contrib/nmap/Pkgfile

42 lines
1016 B
Plaintext

# Description: Utility for network exploration or security auditing
# URL: https://nmap.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libpcap libpcre libssh2 lua
# Optional: cairo gobject-introspection python3-build
name=nmap
version=7.95
release=1
source=(https://nmap.org/dist/$name-$version.tar.bz2)
build () {
cd $name-$version
prt-get isinst cairo gobject-introspection python3-build || PKGMK_NMAP+=' --without-zenmap'
prt-get isinst python3-build || PKGMK_NMAP+=' --without-ndiff'
rm -rf liblua libpcap libpcre macosx mwin32 libssh2 libz
autoreconf -fiv
PYTHON=/usr/bin/python3 \
./configure $PKGMK_NMAP \
--prefix=/usr \
--libexecdir=/usr/lib \
--with-libpcap=/usr \
--with-libpcre=/usr \
--with-zlib=/usr \
--with-libssh2=/usr \
--with-liblua=/usr \
--disable-nls \
--without-nmap-update
make
make DESTDIR=$PKG install
find $PKG \( \
-iname '*readme*' -o \
-iname 'uninstall_ndiff' \)\
-exec rm -fr '{}' \+
}