freebsd-ports/security/nmap/Makefile
Olli Hauer a638ec23f1 - update to version 5.61TEST5
small snippet from changelog:
 http://nmap.org/changelog.html

 o Integrated all of your IPv4 OS fingerprint submissions since June 2011 (about 1,900 of them)
   Added about 256 new fingerprints (total 3,572)
 o Integrated all of your service/version detection fingerprints submitted since November 2010
   (signature count increased to 7,423)
 o Integrated your latest IPv6 OS submissions and corrections
 o [NSE] Added 43(!) NSE scripts, bringing the total up to 340
 o [NSE] Added 14 new protocol libraries
 o [CPE] (Common Platform Enumeration) OS classification is now supported for IPv6 OS detection
 o Added a new --script-args-file option
 o [NSE] Added support for decoding EIGRP broadcasts from Cisco routers to broadcast-listener
 o [NSE] Added redirect support to the http library
 o Update to the latest MAC address prefix assignments from IEEE as of March 8, 2012

Test builds sponsored by redports.org

Feature safe: yes
2012-03-10 12:31:25 +00:00

96 lines
2.2 KiB
Makefile

# Ports collection makefile for: nmap
# Date created: Tue Aug 04, 1998
# Whom: David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#
PORTNAME= nmap
DISTVERSION= 5.61TEST5
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/ \
LOCAL/ohauer
MAINTAINER= ohauer@FreeBSD.org
COMMENT= Port scanning utility for large networks
# http://nmap.org/book/man-legal.html
LICENSE= GPLv2
LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre
USE_LUA= 5.1
LUA_COMPS= lua
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-localdirs \
--without-zenmap \
--without-ndiff \
--with-libpcre=${LOCALBASE} \
--with-liblua=${LOCALBASE} \
--without-nmap-update
CONFIGURE_ENV= LUA_INCDIR="${LUA_INCDIR}" LUA_LIBDIR="${LUA_LIBDIR}"
# fix for gcc from ports
.if ${CC} != "cc"
GCCLIBDIR_CMDS= ${CC} -print-file-name=libstdc++.so | ${SED} -e 's/libstdc++.so//'
CONFIGURE_ARGS+=LDFLAGS="-L$$(${GCCLIBDIR_CMDS})"
NDCC= true
.endif
MANLANG= "" de es fr hr hu it jp pl pt_BR pt_PT ro ru sk zh
MAN1= nmap.1
MAN1_EN= ncat.1 nping.1
.ifndef WITHOUT_SSL
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
CFLAGS+= -I${OPENSSLINC}
PLIST_SUB+= WITHSSL=""
.else
PKGNAMESUFFIX= -nossl
CONFIGURE_ARGS+= --without-openssl
PLIST_SUB+= WITHSSL="@comment "
.endif
# XXX: Workaround if OS is build with WITHOUT_INET6
# PR: ports/159376
#
# Note: If this option is specified in src.conf it has to
# be defined as param -DWITHOUT_INET6 during build time
# since the port system has no access to src.conf
.if defined(WITHOUT_INET6)
LIB_DEPENDS+= pcap.1:${PORTSDIR}/net/libpcap
CONFIGURE_ARGS+= --with-libpcap=${LOCALBASE}
.endif
PORTDOCS= CHANGELOG HACKING
EXAMPLES= docs/sample-script.nse
PORTEXAMPLES= ${EXAMPLES:T}
# XXX limit results if we do a grep in the sources!
post-extract:
@${RM} -rf ${WRKSRC}/mswin32
post-configure:
@${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile
post-install:
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
. endfor
.endif
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
. for i in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}
. endfor
.endif
.if defined(NDCC)
@${ECHO_MSG} do not forget to adjust libnmap.conf
.endif
.include <bsd.port.mk>