Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= snort
  5. PKG_VERSION:= 2.9.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f5fc0e176afca5989d47509478758fc7
  8. PKG_DESCR:= a flexible Network Intrusion Detection System (NIDS)
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= libnet libpcap libpcre libtirpc daq
  11. PKG_BUILDDEP:= libnet libpcap pcre libtirpc daq
  12. PKG_URL:= http://www.snort.org/
  13. PKG_SITES:= http://openadk.org/distfiles/
  14. PKG_NOPARALLEL:= 1
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
  18. TARGET_LDFLAGS+= -ltirpc
  19. CONFIGURE_ARGS+= --disable-static-daq \
  20. --with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
  21. --with-libpcap-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  22. --with-libpcre-includes="${STAGING_TARGET_DIR}/usr/include" \
  23. --with-libpcre-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  24. --with-dnet-includes="${STAGING_TARGET_DIR}/usr/include" \
  25. --with-dnet-libraries="${STAGING_TARGET_DIR}/usr/lib"
  26. snort-install:
  27. ${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
  28. ${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
  29. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort
  30. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  31. ${IDIR_SNORT}/etc/snort
  32. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map \
  33. ${IDIR_SNORT}/etc/snort
  34. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config \
  35. ${IDIR_SNORT}/etc/snort
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf \
  37. ${IDIR_SNORT}/etc/snort
  38. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map \
  39. ${IDIR_SNORT}/etc/snort
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
  41. include ${TOPDIR}/mk/pkg-bottom.mk