1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00
Files
Rene Ladan 2a7c056120 all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by:            many (*)
Differential Revision:  https://reviews.freebsd.org/D55624
Differential Revision:  https://reviews.freebsd.org/D55642 (merged in from bofh)

many (*)
  acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
  jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
  nobutaka pkubaj se tagattie thj

  Anton Saietskii
  GenericRikka
  Gert Doering
  Jan Bramkamp
  Oleh Hushchenkov
  Oleksandr Kryvulia
  Ralf van der Enden
  Yamagi

  desktop kde python tcltk office
2026-05-07 23:47:29 +02:00

99 lines
2.5 KiB
Makefile

PORTNAME= nmap
DISTVERSION= 7.99
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://nmap.org/dist/ \
LOCAL/ohauer
MAINTAINER?= cy@FreeBSD.org
COMMENT?= Port scanning utility for large networks
WWW= https://nmap.org/
# nmap-6.47 => svn.nmap.org/nmap-releases/nmap-6.47 (r33605)
# https://nmap.org/book/man-legal.html
# Install the nmap modified license because of
# http://insecure.org/news/download-com-fiasco.html
LICENSE= NPSL
LICENSE_NAME= Nmap Public Source License
LICENSE_PERMS= auto-accept dist-mirror pkg-mirror pkg-sell
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpcre2-16.so:devel/pcre2
.if !defined(MASTERDIR)
USES= tar:bzip2 gmake cpe
# XXX limit results if we do a grep in the sources!
EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/mswin32 \
--no-same-owner --no-same-permissions
MAKE_JOBS_UNSAFE= yes
GNU_CONFIGURE= yes
OPTIONS_SUB= yes
OPTIONS_DEFINE= DOCS NLS PCAP SSH2 SSL
OPTIONS_DEFAULT=NLS SSH2 SSL
PCAP_DESC= Build with libpcap from nmap
SSH2_DESC= SSH2 protocol support
NLS_CONFIGURE_ENABLE= nls
PCAP_CONFIGURE_ON= --with-libpcap=included
PCAP_LIB_DEPENDS= libdbus-1.so:devel/dbus
PCAP_USES= localbase:ldflags
PCAP_LDFLAGS= -ldbus-1
SSH2_CONFIGURE_ON= --with-libssh2=included
SSH2_CONFIGURE_OFF= --without-libssh2
SSH2_IMPLIES= SSL
SSL_USES= ssl
SSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE}
SSL_CONFIGURE_OFF= --without-openssl
SSL_CFLAGS= -I${OPENSSLINC}
SSL_VARS= STRIP_FILES+=ncat
DOCS= CHANGELOG HACKING
STRIP_FILES+= nmap nping
CONFIGURE_ARGS+=--without-localdirs \
--without-zenmap \
--without-ndiff \
--with-liblua=included \
--without-nmap-update \
--with-libpcre=${LOCALBASE}
.include <bsd.port.options.mk>
.if defined(SSL_DEFAULT)
.if ${SSL_DEFAULT} == libressl
BROKEN= error: OpenSSL-3.0.0 is the minimum supported version. LibreSSL is not supported
.endif
.endif
.if exists(/usr/lib/libibverbs.a)
# Link with libibverbs is needed by static libpcap
post-patch-PCAP-on:
@${REINPLACE_CMD} -E -e "s|(PCAP_LIBS=['\"].*)(['\"])$$|\1 -libverbs\2|" \
${WRKSRC}/configure \
${WRKSRC}/nping/configure \
${WRKSRC}/ncat/configure
.endif
post-configure:
@${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile
pre-install:
${FIND} ${WRKSRC} -type f \( -name \*.orig -o -name \*.bak \) -delete
post-install:
${STRIP_CMD} ${STRIP_FILES:S|^|${STAGEDIR}${PREFIX}/bin/|}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>