Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= nmap
  5. PKG_VERSION:= 6.40
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= c0e2f3370e1fb97fb53185b15aa22aff
  8. PKG_DESCR:= utility for network exploration or security auditing
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libdnet libpcap libpcre libstdcxx
  11. PKG_BUILDDEP:= libdnet libpcap pcre
  12. PKG_URL:= http://nmap.org/
  13. PKG_SITES:= http://download.insecure.org/nmap/dist/
  14. PKG_NEED_CXX:= 1
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,NMAP,nmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  19. LIBRARIES+=-lssp -lssp_nonshared
  20. endif
  21. TARGET_CPPFLAGS+= -DNOLUA
  22. TARGET_LDFLAGS+= -lpthread
  23. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  24. CONFIGURE_ARGS+= --without-openssl \
  25. --without-zenmap \
  26. --without-ndiff \
  27. --without-liblua \
  28. --with-libpcap="${STAGING_TARGET_DIR}/usr" \
  29. --with-libpcre="${STAGING_TARGET_DIR}/usr"
  30. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  31. nmap-install:
  32. ${INSTALL_DIR} ${IDIR_NMAP}/usr/share/nmap
  33. ${INSTALL_DIR} ${IDIR_NMAP}/usr/bin
  34. for file in mac-prefixes os-db protocols rpc service-probes services; do \
  35. ${CP} ${WRKINST}/usr/share/nmap/nmap-$$file ${IDIR_NMAP}/usr/share/nmap; \
  36. done
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
  38. include ${TOPDIR}/mk/pkg-bottom.mk