imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / nmap / Makefile
blobd8164a379b691630ed75f89026215a470fdd3673
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
6 PKG_NAME:= nmap
7 PKG_VERSION:= 7.92
8 PKG_RELEASE:= 1
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
14 PKG_NEEDS:= c++
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 \
28 --without-zenmap \
29 --without-nping \
30 --without-ndiff \
31 --without-liblua \
32 --with-libpcap="${STAGING_TARGET_DIR}/usr" \
33 --with-libpcre="${STAGING_TARGET_DIR}/usr" \
34 --with-zlib="${STAGING_TARGET_DIR}/usr" \
35 --enable-static
37 nmap-install:
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; \
42 done
43 ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
45 include ${ADK_TOPDIR}/mk/pkg-bottom.mk