ports/security/nmap/Makefile
Wesley Shields 5098fed9c7 - Add patch to work around versions of FreeBSD with broken
getaddrinfo(3) (7.1 and earlier, and -CURRENT before the end of March
  2009).

PR:		ports/133779
Submitted by:	Daniel Roethlisberger <daniel@roe.ch> (maintainer)
2009-04-21 15:36:56 +00:00

58 lines
1.4 KiB
Makefile

# Ports collection makefile for: nmap
# Date created: Tue Aug 04, 1998
# Whom: David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#
PORTNAME= nmap
DISTVERSION= 4.85BETA7
PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/ \
http://www.mirrors.wiretapped.net/security/network-mapping/nmap/ \
http://www.mirrorservice.org/sites/ftp.wiretapped.net/pub/security/network-mapping/nmap/ \
http://mirror.sg.depaul.edu/pub/security/nmap/
MAINTAINER= daniel@roe.ch
COMMENT= Port scanning utility for large networks
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre \
dnet.1:${PORTSDIR}/net/libdnet
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-libdnet=${LOCALBASE} \
--with-liblua=${LOCALBASE}
CONFIGURE_ENV= LUA_INCDIR="${LUA_INCDIR}" LUA_LIBDIR="${LUA_LIBDIR}"
MAN1= nmap.1 ncat.1
.ifndef WITHOUT_SSL
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${OPENSSLINC}"
.else
CONFIGURE_ARGS+= --without-openssl
.endif
post-configure:
@${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile
post-install:
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@for doc in CHANGELOG HACKING docs/nmap.dtd; do \
${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>