1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 9e14665fffd054554d129d62c13ad95a7b5c7a046daa2290501909e65f4d3188
10 PKG_DESCR
:= utility for network exploration or security auditing
11 PKG_SECTION
:= net
/security
12 PKG_DEPENDS
:= libdnet libpcap libpcre
13 PKG_BUILDDEP
:= libdnet libpcap pcre
15 PKG_URL
:= http
://nmap.org
/
16 PKG_SITES
:= http
://download.insecure.org
/nmap
/dist/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call PKG_template
,NMAP
,nmap
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 TARGET_CPPFLAGS
+= -DNOLUA
25 TARGET_LDFLAGS
+= -lpthread
26 CONFIGURE_ENV
+= ac_cv_dnet_bsd_bpf
=no
27 CONFIGURE_ARGS
+= --without-openssl \
31 --with-libpcap
="${STAGING_TARGET_DIR}/usr" \
32 --with-libpcre
="${STAGING_TARGET_DIR}/usr" \
34 XAKE_FLAGS
+= GCC_HONOUR_COPTS
=s
37 ${INSTALL_DIR} ${IDIR_NMAP}/usr
/share
/nmap
38 ${INSTALL_DIR} ${IDIR_NMAP}/usr
/bin
39 for file in mac-prefixes os-db protocols rpc service-probes services
; do \
40 ${CP} ${WRKINST}/usr
/share
/nmap
/nmap-
$$file ${IDIR_NMAP}/usr
/share
/nmap
; \
42 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/nmap
${IDIR_NMAP}/usr
/bin
/
44 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk