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
:= a5479f2f8a6b0b2516767d2f7189c386c1dc858d997167d7ec5cfc798c7571a1
10 PKG_DESCR
:= utility for network exploration or security auditing
11 PKG_SECTION
:= net
/security
12 PKG_DEPENDS
:= libdnet libpcap libpcre zlib
13 PKG_BUILDDEP
:= libdnet libpcap pcre zlib
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 \
32 --with-libpcap
="${STAGING_TARGET_DIR}/usr" \
33 --with-libpcre
="${STAGING_TARGET_DIR}/usr" \
34 --with-zlib
="${STAGING_TARGET_DIR}/usr" \
38 ${INSTALL_DIR} ${IDIR_NMAP}/usr
/share
/nmap
39 ${INSTALL_DIR} ${IDIR_NMAP}/usr
/bin
40 for file in payloads mac-prefixes os-db protocols rpc service-probes services
; do \
41 ${CP} ${WRKINST}/usr
/share
/nmap
/nmap-
$$file ${IDIR_NMAP}/usr
/share
/nmap
; \
43 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/nmap
${IDIR_NMAP}/usr
/bin
/
45 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk