blob: a4f9836c6f766727e1e8485b4df4dad5f9df8995 (
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
DISTVERSION= 5.59BETA1
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/ \
LOCAL/ohauer
MAINTAINER= ohauer@FreeBSD.org
COMMENT= Port scanning utility for large networks
# http://nmap.org/book/man-legal.html
LICENSE= GPLv2
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
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-liblua=${LOCALBASE}
CONFIGURE_ENV= LUA_INCDIR="${LUA_INCDIR}" LUA_LIBDIR="${LUA_LIBDIR}"
# fix for gcc from ports
.if ${CC} != "cc"
GCCLIBDIR_CMDS= ${CC} -print-file-name=libstdc++.so | ${SED} -e 's/libstdc++.so//'
CONFIGURE_ARGS+=LDFLAGS="-L$$(${GCCLIBDIR_CMDS})"
NDCC= true
.endif
MANLANG= "" de es fr hr hu it jp pl pt_BR pt_PT ro ru sk zh
MAN1= nmap.1
MAN1_EN= ncat.1 nping.1
.ifndef WITHOUT_SSL
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${OPENSSLINC}"
PLIST_SUB+= WITHSSL=""
.else
PKGNAMESUFFIX= -nossl
CONFIGURE_ARGS+= --without-openssl
PLIST_SUB+= WITHSSL="@comment "
.endif
PORTDOCS= CHANGELOG HACKING
EXAMPLES= docs/sample-script.nse
PORTEXAMPLES= ${EXAMPLES:T}
# XXX limit results if we do a grep in the sources!
post-extract:
@${RM} -rf ${WRKSRC}/mswin32
post-configure:
@${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile
post-install:
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
. endfor
.endif
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
. for i in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}
. endfor
.endif
.if defined(NDCC)
@${ECHO_MSG} do not forget to adjust libnmap.conf
.endif
.include <bsd.port.mk>
|