Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= 5.00
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 32d27de32166c02d670bb4a086185886
  8. PKG_DESCR:= utility for network exploration or security auditing
  9. PKG_SECTION:= net
  10. PKG_CXX:= NMAP
  11. PKG_DEPENDS:= libdnet libpcap libpcre
  12. PKG_BUILDDEP+= libdnet libpcap pcre
  13. PKG_URL:= http://nmap.org
  14. PKG_SITES:= http://download.insecure.org/nmap/dist/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,NMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TCPPFLAGS+= -DNOLUA
  19. ifeq ($(ADK_COMPILE_NMAP_WITH_UCLIBCXX),y)
  20. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -fno-rtti -nostdinc++ \
  21. -I${STAGING_DIR}/usr/include/uClibc++" \
  22. LIBS="-nodefaultlibs -luClibc++ -lgcc -lm"
  23. endif
  24. CONFIGURE_STYLE:= gnu
  25. CONFIGURE_ARGS+= --without-openssl \
  26. --without-zenmap \
  27. --without-ndiff \
  28. --without-liblua \
  29. --with-libdnet="${STAGING_DIR}/usr" \
  30. --with-libpcap="${STAGING_DIR}/usr" \
  31. --with-libpcre="${STAGING_DIR}/usr"
  32. BUILD_STYLE:= auto
  33. INSTALL_STYLE:= auto
  34. post-install:
  35. ${INSTALL_DIR} ${IDIR_NMAP}/usr/share/nmap
  36. ${INSTALL_DIR} ${IDIR_NMAP}/usr/bin
  37. for file in mac-prefixes os-db protocols rpc service-probes services; do \
  38. ${CP} ${WRKINST}/usr/share/nmap/nmap-$$file ${IDIR_NMAP}/usr/share/nmap; \
  39. done
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
  41. include ${TOPDIR}/mk/pkg-bottom.mk