1998-08-04 19:59:51 +02:00
|
|
|
# Ports collection makefile for: nmap
|
|
|
|
# Date created: Tue Aug 04, 1998
|
|
|
|
# Whom: David O'Brien (obrien@NUXI.com)
|
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1998-08-04 19:59:51 +02:00
|
|
|
#
|
|
|
|
|
2008-03-14 22:30:23 +01:00
|
|
|
PORTNAME= nmap
|
2012-06-24 17:54:18 +02:00
|
|
|
DISTVERSION= 6.01
|
2003-04-11 12:00:50 +02:00
|
|
|
CATEGORIES= security ipv6
|
2008-04-14 02:53:05 +02:00
|
|
|
MASTER_SITES= http://nmap.org/dist/ \
|
2011-01-07 21:51:25 +01:00
|
|
|
LOCAL/ohauer
|
2002-05-27 19:36:35 +02:00
|
|
|
|
2010-08-10 15:37:06 +02:00
|
|
|
MAINTAINER= ohauer@FreeBSD.org
|
2008-03-14 22:30:23 +01:00
|
|
|
COMMENT= Port scanning utility for large networks
|
2004-06-17 13:56:03 +02:00
|
|
|
|
2011-01-07 21:51:25 +01:00
|
|
|
# http://nmap.org/book/man-legal.html
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-02-14 13:45:35 +01:00
|
|
|
LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre
|
2011-07-01 15:23:23 +02:00
|
|
|
|
2008-04-14 02:53:05 +02:00
|
|
|
USE_LUA= 5.1
|
|
|
|
LUA_COMPS= lua
|
2003-09-25 18:19:25 +02:00
|
|
|
USE_BZIP2= yes
|
2005-09-08 15:18:14 +02:00
|
|
|
USE_GMAKE= yes
|
2003-04-11 12:00:50 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-04-14 02:53:05 +02:00
|
|
|
CONFIGURE_ARGS= --without-localdirs \
|
|
|
|
--without-zenmap \
|
2009-04-13 11:53:53 +02:00
|
|
|
--without-ndiff \
|
2008-04-14 02:53:05 +02:00
|
|
|
--with-libpcre=${LOCALBASE} \
|
2012-01-04 17:47:52 +01:00
|
|
|
--with-liblua=${LOCALBASE} \
|
|
|
|
--without-nmap-update
|
2008-04-14 02:53:05 +02:00
|
|
|
CONFIGURE_ENV= LUA_INCDIR="${LUA_INCDIR}" LUA_LIBDIR="${LUA_LIBDIR}"
|
2003-09-25 18:19:25 +02:00
|
|
|
|
2011-06-03 23:10:32 +02:00
|
|
|
# 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
|
|
|
|
|
2010-01-31 01:50:27 +01:00
|
|
|
MANLANG= "" de es fr hr hu it jp pl pt_BR pt_PT ro ru sk zh
|
|
|
|
MAN1= nmap.1
|
2010-09-03 23:16:38 +02:00
|
|
|
MAN1_EN= ncat.1 nping.1
|
2003-04-11 12:00:50 +02:00
|
|
|
|
2003-09-25 18:19:25 +02:00
|
|
|
.ifndef WITHOUT_SSL
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
2011-09-24 00:26:39 +02:00
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
2010-09-03 23:16:38 +02:00
|
|
|
PLIST_SUB+= WITHSSL=""
|
2003-09-25 18:19:25 +02:00
|
|
|
.else
|
2011-01-07 21:51:25 +01:00
|
|
|
PKGNAMESUFFIX= -nossl
|
2003-09-25 18:19:25 +02:00
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2010-09-03 23:16:38 +02:00
|
|
|
PLIST_SUB+= WITHSSL="@comment "
|
1998-12-15 12:18:32 +01:00
|
|
|
.endif
|
2003-04-11 12:00:50 +02:00
|
|
|
|
2011-10-04 19:17:47 +02:00
|
|
|
# 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
|
|
|
|
|
2011-01-07 21:51:25 +01:00
|
|
|
PORTDOCS= CHANGELOG HACKING
|
|
|
|
EXAMPLES= docs/sample-script.nse
|
|
|
|
PORTEXAMPLES= ${EXAMPLES:T}
|
|
|
|
|
2010-09-03 23:16:38 +02:00
|
|
|
# XXX limit results if we do a grep in the sources!
|
2011-01-07 21:51:25 +01:00
|
|
|
post-extract:
|
2010-09-03 23:16:38 +02:00
|
|
|
@${RM} -rf ${WRKSRC}/mswin32
|
|
|
|
|
2004-10-13 15:52:54 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile
|
|
|
|
|
1998-08-04 19:59:51 +02:00
|
|
|
post-install:
|
2003-09-25 18:19:25 +02:00
|
|
|
.ifndef NOPORTDOCS
|
2007-08-04 13:41:30 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-01-07 21:51:25 +01:00
|
|
|
. 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
|
2003-09-25 18:19:25 +02:00
|
|
|
.endif
|
2011-06-03 23:10:32 +02:00
|
|
|
.if defined(NDCC)
|
|
|
|
@${ECHO_MSG} do not forget to adjust libnmap.conf
|
|
|
|
.endif
|
2003-09-25 18:19:25 +02:00
|
|
|
|
2006-12-23 16:29:34 +01:00
|
|
|
.include <bsd.port.mk>
|