Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.6.1.2
  6. PKG_RELEASE:= 8
  7. PKG_MD5SUM:= 22c448e25538cdf74c62abe586aeac0a
  8. PKG_DESCR:= a flexible Network Intrusion Detection System (NIDS)
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libnet libpcap libpcre
  11. PKG_SITES:= http://www.snort.org/dl/current/
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,SNORT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIGURE_STYLE= gnu
  15. CONFIGURE_ARGS+= --enable-flexresp \
  16. --with-libnet-includes="${STAGING_DIR}/usr/include" \
  17. --with-libnet-libraries="${STAGING_DIR}/usr/lib" \
  18. --with-libpcap-includes="${STAGING_DIR}/usr/include" \
  19. --with-libpcap-libraries="${STAGING_DIR}/usr/lib" \
  20. --with-libpcre-includes="${STAGING_DIR}/usr/include" \
  21. --with-libpcre-libraries="${STAGING_DIR}/usr/lib" \
  22. --without-mysql \
  23. --without-postgresql \
  24. --disable-inline
  25. BUILD_STYLE= auto
  26. INSTALL_STYLE= auto
  27. post-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 ${IDIR_SNORT}/etc/snort/
  34. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config ${IDIR_SNORT}/etc/snort/
  35. ${INSTALL_DATA} ${WRKBUILD}/etc/sid-msg.map ${IDIR_SNORT}/etc/snort/
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf ${IDIR_SNORT}/etc/snort/
  37. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map ${IDIR_SNORT}/etc/snort/
  38. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
  39. include ${TOPDIR}/mk/pkg-bottom.mk