Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. PKG_LIBC_DEPENDS:= uclibc eglibc glibc
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
  19. TARGET_LDFLAGS+= -ltirpc
  20. CONFIGURE_ARGS+= --disable-static-daq \
  21. --with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
  22. --with-libpcap-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  23. --with-libpcre-includes="${STAGING_TARGET_DIR}/usr/include" \
  24. --with-libpcre-libraries="${STAGING_TARGET_DIR}/usr/lib" \
  25. --with-dnet-includes="${STAGING_TARGET_DIR}/usr/include" \
  26. --with-dnet-libraries="${STAGING_TARGET_DIR}/usr/lib"
  27. snort-install:
  28. ${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
  29. ${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
  30. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort
  31. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  32. ${IDIR_SNORT}/etc/snort
  33. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map \
  34. ${IDIR_SNORT}/etc/snort
  35. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config \
  36. ${IDIR_SNORT}/etc/snort
  37. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf \
  38. ${IDIR_SNORT}/etc/snort
  39. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map \
  40. ${IDIR_SNORT}/etc/snort
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
  42. include ${TOPDIR}/mk/pkg-bottom.mk