Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_ARGS+= --without-openssl \
  25. --without-zenmap \
  26. --without-ndiff \
  27. --without-liblua \
  28. --with-libdnet="${STAGING_DIR}/usr" \
  29. --with-libpcap="${STAGING_DIR}/usr" \
  30. --with-libpcre="${STAGING_DIR}/usr"
  31. post-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