Makefile 1.9 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= snort
  5. PKG_VERSION:= 2.9.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f5fc0e176afca5989d47509478758fc7
  8. PKG_DESCR:= flexible network intrusion detection system
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_LIBC_DEPENDS:= uclibc glibc
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
  20. TARGET_LDFLAGS+= -ltirpc
  21. CONFIGURE_ARGS+= --disable-static-daq \
  22. --with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
  23. --with-libpcap-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  24. --with-libpcre-includes="${STAGING_TARGET_DIR}/usr/include" \
  25. --with-libpcre-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  26. --with-dnet-includes="${STAGING_TARGET_DIR}/usr/include" \
  27. --with-dnet-libraries="${STAGING_TARGET_DIR}/usr/lib"
  28. snort-install:
  29. ${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
  30. ${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
  31. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort
  32. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  33. ${IDIR_SNORT}/etc/snort
  34. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map \
  35. ${IDIR_SNORT}/etc/snort
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config \
  37. ${IDIR_SNORT}/etc/snort
  38. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf \
  39. ${IDIR_SNORT}/etc/snort
  40. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map \
  41. ${IDIR_SNORT}/etc/snort
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk