1
0

Makefile 1.6 KB

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