diff options
author | leeym <leeym@FreeBSD.org> | 2003-09-26 00:19:25 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-09-26 00:19:25 +0800 |
commit | c2d0da0660fb961684001a5ce7b8293a2d8778a0 (patch) | |
tree | f18c3e4fb43302cbf9834a4d773199482f087f23 /security/nmap/Makefile | |
parent | 0ebcde25e7a48ec9280e22283323be0c77991561 (diff) | |
download | freebsd-ports-gnome-c2d0da0660fb961684001a5ce7b8293a2d8778a0.tar.gz freebsd-ports-gnome-c2d0da0660fb961684001a5ce7b8293a2d8778a0.tar.zst freebsd-ports-gnome-c2d0da0660fb961684001a5ce7b8293a2d8778a0.zip |
update to nmap/nmapfe version 3.46
PR: 57196
Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Diffstat (limited to 'security/nmap/Makefile')
-rw-r--r-- | security/nmap/Makefile | 66 |
1 files changed, 51 insertions, 15 deletions
diff --git a/security/nmap/Makefile b/security/nmap/Makefile index acf97501b840..d919506dc95f 100644 --- a/security/nmap/Makefile +++ b/security/nmap/Makefile @@ -1,4 +1,3 @@ -# ex:ts=8 # Ports collection makefile for: nmap # Date created: Tue Aug 04, 1998 # Whom: David O'Brien (obrien@NUXI.com) @@ -7,36 +6,73 @@ # PORTNAME?= nmap -PORTVERSION= 3.30 +PORTVERSION= 3.46 CATEGORIES= security ipv6 MASTER_SITES= http://download.insecure.org/nmap/dist/ -DISTNAME= nmap-${PORTVERSION:S/.b/BETA/} +DISTNAME= nmap-${PORTVERSION} MAINTAINER= eikemeier@fillmore-labs.com COMMENT?= Port scanning utility for large networks +USE_BZIP2= yes + GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-localdirs -USE_BZIP2= yes -MAN1?= nmap.1 +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +.ifndef BUILD_NMAPFE + +MAN1= nmap.1 -.include <bsd.port.pre.mk> +LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre -.if ${OSVERSION} < 300004 -CFLAGS+= -DDLT_RAW=12 # for obsoleted <net/bpf.h> +CONFIGURE_ARGS+= --with-libpcre=${LOCALBASE} + +.ifndef WITHOUT_SSL +USE_OPENSSL= yes +CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} +.else +CONFIGURE_ARGS+= --without-openssl .endif -CONFIGURE_TARGET= -build=${ARCH}-portbld-freebsd${OSREL} -.if ${PORTNAME} == "nmap" CONFIGURE_ARGS+= --without-nmapfe -.endif -ALL_TARGET?= nmap -INSTALL_TARGET?= install-nmap -.if !target(post-install) && (${PORTNAME} == "nmap") +ALL_TARGET= nmap +INSTALL_TARGET= install-nmap + post-install: @${STRIP_CMD} ${PREFIX}/bin/nmap +.ifndef NOPORTDOCS + @${MKDIR} ${DOCSDIR} + @for doc in CHANGELOG HACKING docs/nmap.dtd; do \ + ${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}; \ + 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 + +USE_GNOME= gtk12 + +CONFIGURE_ARGS+=--without-openssl + +CONFIGURE_ARGS+=--with-nmapfe + +ALL_TARGET= nbase/libnbase.a nmapfe/nmapfe +INSTALL_TARGET= install-nmapfe + +post-install: + @${STRIP_CMD} ${PREFIX}/bin/nmapfe + .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |