aboutsummaryrefslogtreecommitdiffstats
path: root/security/nmap/Makefile
blob: 0f002335dccd44c6b81f46f860f8dc49cd9d1717 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Ports collection makefile for:  nmap
# Date created:           Tue Aug 04, 1998
# Whom:               David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#

PORTNAME?=  nmap
PORTVERSION=    ${DISTVERSION:L:C/([a-z])[a-z]+/\1/g:C/[^a-z0-9+]+/./g}
CATEGORIES= security ipv6
MASTER_SITES=   http://download.insecure.org/nmap/dist/ \
        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/
DISTNAME=   nmap-${DISTVERSION} # needed for security/nmapfe

MAINTAINER= daniel@roe.ch
COMMENT?=   Port scanning utility for large networks

DISTVERSION=    4.20

USE_BZIP2=  yes
USE_GMAKE=  yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-localdirs

CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

.ifndef BUILD_NMAPFE

MAN1=       nmap.1

LIB_DEPENDS=    pcre.0:${PORTSDIR}/devel/pcre

CONFIGURE_ARGS+=    --with-libpcre=${LOCALBASE}

.ifndef WITHOUT_SSL
USE_OPENSSL=    yes
CONFIGURE_ARGS+=    --with-openssl=${OPENSSLBASE}
.else
CONFIGURE_ARGS+=    --without-openssl
.endif

CONFIGURE_ARGS+=    --without-nmapfe

ALL_TARGET= nmap
INSTALL_TARGET= install-nmap

post-configure:
    @${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile

post-install:
.ifndef NOPORTDOCS
    @${MKDIR} ${DESTDIR}${DOCSDIR}
    @for doc in CHANGELOG HACKING docs/nmap.dtd; do \
        ${INSTALL_DATA} ${WRKSRC}/$${doc} ${DESTDIR}${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=  gtk20
USE_GCC=    3.2+

CONFIGURE_ARGS+=--without-openssl

CONFIGURE_ARGS+=--with-nmapfe

ALL_TARGET= nbase/libnbase.a nmapfe/nmapfe
INSTALL_TARGET= install-nmapfe

.endif

.include <bsd.port.mk>