1
0

Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_STYLE:= gnu
  18. CONFIGURE_ARGS+= --disable-flexresp \
  19. --with-libnet-includes="${STAGING_DIR}/usr/include" \
  20. --with-libnet-libraries="${STAGING_DIR}/usr/lib" \
  21. --with-libpcap-includes="${STAGING_DIR}/usr/include" \
  22. --with-libpcap-libraries="${STAGING_DIR}/usr/lib" \
  23. --with-libpcre-includes="${STAGING_DIR}/usr/include" \
  24. --with-libpcre-libraries="${STAGING_DIR}/usr/lib" \
  25. --without-mysql \
  26. --without-postgresql \
  27. --disable-inline
  28. BUILD_STYLE:= auto
  29. INSTALL_STYLE:= auto
  30. post-install:
  31. ${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
  32. ${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
  33. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort/
  34. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  35. ${IDIR_SNORT}/etc/snort/
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map ${IDIR_SNORT}/etc/snort/
  37. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config ${IDIR_SNORT}/etc/snort/
  38. ${INSTALL_DATA} ${WRKBUILD}/etc/sid-msg.map ${IDIR_SNORT}/etc/snort/
  39. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf ${IDIR_SNORT}/etc/snort/
  40. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map ${IDIR_SNORT}/etc/snort/
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
  42. include ${TOPDIR}/mk/pkg-bottom.mk