Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.46
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5a36ad3a63d5b7ea5514f745a397436a
  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. TARGET_CPPFLAGS+= -DNOLUA
  19. TARGET_LDFLAGS+= -lpthread
  20. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  21. CONFIGURE_ARGS+= --without-openssl \
  22. --without-zenmap \
  23. --without-ndiff \
  24. --without-liblua \
  25. --with-libpcap="${STAGING_TARGET_DIR}/usr" \
  26. --with-libpcre="${STAGING_TARGET_DIR}/usr"
  27. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  28. nmap-install:
  29. ${INSTALL_DIR} ${IDIR_NMAP}/usr/share/nmap
  30. ${INSTALL_DIR} ${IDIR_NMAP}/usr/bin
  31. for file in mac-prefixes os-db protocols rpc service-probes services; do \
  32. ${CP} ${WRKINST}/usr/share/nmap/nmap-$$file ${IDIR_NMAP}/usr/share/nmap; \
  33. done
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
  35. include ${TOPDIR}/mk/pkg-bottom.mk