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
|
|
|
#
|
|
|
|
|
2001-05-28 02:18:04 +02:00
|
|
|
PORTNAME?= nmap
|
2004-06-17 13:56:03 +02:00
|
|
|
PORTVERSION= ${DISTVERSION:L:C/([a-z])[a-z]+/\1/g:C/[^a-z0-9+]+/./g}
|
2003-04-11 12:00:50 +02:00
|
|
|
CATEGORIES= security ipv6
|
2003-10-08 00:31:18 +02:00
|
|
|
MASTER_SITES= http://download.insecure.org/nmap/dist/ \
|
2004-10-13 15:52:54 +02:00
|
|
|
http://www.mirrors.wiretapped.net/security/network-mapping/nmap/ \
|
|
|
|
http://ftp.iasi.roedu.net/mirrors/download.insecure.org/nmap/dist/ \
|
|
|
|
http://shadow.cc.columbia.edu/pub/software/nmap/
|
2004-06-17 13:56:03 +02:00
|
|
|
DISTNAME= nmap-${DISTVERSION} # needed for security/nmapfe
|
2002-05-27 19:36:35 +02:00
|
|
|
|
2005-09-09 01:59:46 +02:00
|
|
|
MAINTAINER= daniel@roe.ch
|
2003-03-07 01:16:25 +01:00
|
|
|
COMMENT?= Port scanning utility for large networks
|
1998-08-04 19:59:51 +02:00
|
|
|
|
2006-12-12 21:32:37 +01:00
|
|
|
DISTVERSION= 4.20
|
2004-06-17 13:56:03 +02:00
|
|
|
|
2003-09-25 18:19:25 +02:00
|
|
|
USE_BZIP2= yes
|
2005-09-08 15:18:14 +02:00
|
|
|
USE_GMAKE= yes
|
2003-09-25 18:19:25 +02:00
|
|
|
|
2003-04-11 12:00:50 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-01 05:38:04 +02:00
|
|
|
CONFIGURE_ARGS= --without-localdirs
|
2003-04-11 12:00:50 +02:00
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-09-25 18:19:25 +02:00
|
|
|
|
|
|
|
.ifndef BUILD_NMAPFE
|
|
|
|
|
|
|
|
MAN1= nmap.1
|
2003-04-11 12:00:50 +02:00
|
|
|
|
2003-09-25 18:19:25 +02:00
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
1998-12-26 23:05:56 +01:00
|
|
|
|
2003-09-25 18:19:25 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libpcre=${LOCALBASE}
|
|
|
|
|
|
|
|
.ifndef WITHOUT_SSL
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
1998-12-15 12:18:32 +01:00
|
|
|
.endif
|
2003-04-11 12:00:50 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-nmapfe
|
1998-08-04 19:59:51 +02:00
|
|
|
|
2003-09-25 18:19:25 +02:00
|
|
|
ALL_TARGET= nmap
|
|
|
|
INSTALL_TARGET= install-nmap
|
|
|
|
|
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
|
2004-10-13 15:52:54 +02:00
|
|
|
@${MKDIR} ${DESTDIR}${DOCSDIR}
|
2003-09-25 18:19:25 +02:00
|
|
|
@for doc in CHANGELOG HACKING docs/nmap.dtd; do \
|
2004-10-13 15:52:54 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${doc} ${DESTDIR}${DOCSDIR}; \
|
2003-09-25 18:19:25 +02:00
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap
|
|
|
|
|
|
|
|
DESCR= ${PKGDIR}/pkg-descr.fe
|
|
|
|
PLIST= ${PKGDIR}/pkg-plist.fe
|
|
|
|
PLIST_SUB= REALPREFIX=${PREFIX}
|
|
|
|
|
|
|
|
MAN1= nmapfe.1
|
|
|
|
MLINKS= nmapfe.1 xnmap.1
|
|
|
|
|
2005-12-14 09:46:55 +01:00
|
|
|
USE_GNOME= gtk20
|
2006-02-18 12:20:31 +01:00
|
|
|
USE_GCC= 3.2+
|
2003-09-25 18:19:25 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--without-openssl
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--with-nmapfe
|
|
|
|
|
|
|
|
ALL_TARGET= nbase/libnbase.a nmapfe/nmapfe
|
|
|
|
INSTALL_TARGET= install-nmapfe
|
|
|
|
|
2001-05-28 02:18:04 +02:00
|
|
|
.endif
|
1998-08-04 19:59:51 +02:00
|
|
|
|
2006-12-12 21:32:37 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= Does not compile on 4.x
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|