forked from ports/contrib
nmap: added optional dependencies: cairo gobject-introspection python3-build
This commit is contained in:
parent
4839fec1b0
commit
aea635fbc8
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF37tggFZru1KMfUFiSWbd8xGDAiP98sOm5iFOCDFV+amjdSsSdtFMw9+b8iUOezSwkZpd4mJlHPZUmLYJG5RUsAA=
|
||||
SHA256 (Pkgfile) = 233e0b63a8a718fcb31d03e6d340ed161adb9bbd0db13c036160a3a482e2a34e
|
||||
RWSagIOpLGJF33AFr4TnVLxL3eSbu+qhWMhhB6quwemCEKdy84TgG6pXielgSecAebzu4P2KPi7o4sCcE31h9CRENRAXdKGOnAM=
|
||||
SHA256 (Pkgfile) = a7624fe1319e633c04b52ffe54441192f396c9a352064b67ecd82c024ae4be8e
|
||||
SHA256 (.footprint) = 626625254b83a1303ef176a942d220cd7d249feee925c3c47fa19f7b2a5bef41
|
||||
SHA256 (nmap-7.95.tar.bz2) = e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778
|
||||
|
17
nmap/Pkgfile
17
nmap/Pkgfile
@ -2,6 +2,7 @@
|
||||
# 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
|
||||
@ -12,10 +13,15 @@ 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
|
||||
|
||||
./configure --prefix=/usr \
|
||||
PYTHON=/usr/bin/python3 \
|
||||
./configure $PKGMK_NMAP \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib \
|
||||
--with-libpcap=/usr \
|
||||
--with-libpcre=/usr \
|
||||
@ -23,12 +29,13 @@ build () {
|
||||
--with-libssh2=/usr \
|
||||
--with-liblua=/usr \
|
||||
--disable-nls \
|
||||
--without-ndiff \
|
||||
--without-nmap-update \
|
||||
--without-zenmap
|
||||
--without-nmap-update
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
find $PKG -iname '*readme*' -exec rm -fr '{}' \+
|
||||
find $PKG \( \
|
||||
-iname '*readme*' -o \
|
||||
-iname 'uninstall_ndiff' \)\
|
||||
-exec rm -fr '{}' \+
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user