Makefile 1.8 KB

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