1
0

Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_DEPENDS:= libdnet libpcap libpcre
  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. PKG_CXX:= NMAP
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,NMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm
  20. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  21. LIBRARIES+=-lssp -lssp_nonshared
  22. endif
  23. TARGET_CPPFLAGS+= -DNOLUA
  24. ifeq ($(ADK_COMPILE_NMAP_WITH_UCLIBCXX),y)
  25. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -fno-rtti -nostdinc++ \
  26. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  27. LIBS="${LIBRARIES}"
  28. endif
  29. CONFIGURE_ARGS+= --without-openssl \
  30. --without-zenmap \
  31. --without-ndiff \
  32. --without-liblua \
  33. --with-libdnet="${STAGING_TARGET_DIR}/usr" \
  34. --with-libpcap="${STAGING_TARGET_DIR}/usr" \
  35. --with-libpcre="${STAGING_TARGET_DIR}/usr"
  36. post-install:
  37. ${INSTALL_DIR} ${IDIR_NMAP}/usr/share/nmap
  38. ${INSTALL_DIR} ${IDIR_NMAP}/usr/bin
  39. for file in mac-prefixes os-db protocols rpc service-probes services; do \
  40. ${CP} ${WRKINST}/usr/share/nmap/nmap-$$file ${IDIR_NMAP}/usr/share/nmap; \
  41. done
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
  43. include ${TOPDIR}/mk/pkg-bottom.mk