Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/security
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,NMAP,nmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CPPFLAGS+= -DNOLUA
  18. TARGET_LDFLAGS+= -lpthread
  19. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  20. CONFIGURE_ARGS+= --without-openssl \
  21. --without-zenmap \
  22. --without-ndiff \
  23. --without-liblua \
  24. --with-libpcap="${STAGING_TARGET_DIR}/usr" \
  25. --with-libpcre="${STAGING_TARGET_DIR}/usr"
  26. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  27. nmap-install:
  28. ${INSTALL_DIR} ${IDIR_NMAP}/usr/share/nmap
  29. ${INSTALL_DIR} ${IDIR_NMAP}/usr/bin
  30. for file in mac-prefixes os-db protocols rpc service-probes services; do \
  31. ${CP} ${WRKINST}/usr/share/nmap/nmap-$$file ${IDIR_NMAP}/usr/share/nmap; \
  32. done
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/nmap ${IDIR_NMAP}/usr/bin/
  34. include ${TOPDIR}/mk/pkg-bottom.mk