summaryrefslogtreecommitdiff
path: root/security/nmap/Makefile
blob: acf97501b840bf34598d84df682a068999b30ed2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ex:ts=8
# Ports collection makefile for:  nmap
# Date created:			  Tue Aug 04, 1998
# Whom:				  David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#

PORTNAME?=	nmap
PORTVERSION=	3.30
CATEGORIES=	security ipv6
MASTER_SITES=	http://download.insecure.org/nmap/dist/
DISTNAME=	nmap-${PORTVERSION:S/.b/BETA/}

MAINTAINER=	eikemeier@fillmore-labs.com
COMMENT?=	Port scanning utility for large networks

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-localdirs
USE_BZIP2=	yes

MAN1?=		nmap.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 300004
CFLAGS+=	-DDLT_RAW=12 # for obsoleted <net/bpf.h>
.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")
post-install:
	@${STRIP_CMD} ${PREFIX}/bin/nmap
.endif

.include <bsd.port.post.mk>