1
0

Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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-wireless
  5. PKG_VERSION:= 2.4.3-alpha04
  6. PKG_RELEASE:= 9
  7. PKG_BUILDDEP+= libnet libpcap pcre
  8. PKG_MD5SUM:= 1aa699ae279bf7a1140cf6cca02f9999
  9. PKG_DESCR:= a flexible Wireless Network Intrusion Detection System (NIDS)
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libnet libpcap pcre
  12. PKG_URL:= http://www.snort-wireless.org
  13. PKG_SITES:= http://www.snort-wireless.org/files/
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,SNORT_WIRELESS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ARGS+= --enable-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. BUILD_STYLE= auto
  28. INSTALL_STYLE= auto
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_SNORT_WIRELESS}/usr/bin
  31. ${INSTALL_DIR} ${IDIR_SNORT_WIRELESS}/etc/snort
  32. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT_WIRELESS}/etc/snort/
  33. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  34. ${IDIR_SNORT_WIRELESS}/etc/snort/
  35. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config ${IDIR_SNORT_WIRELESS}/etc/snort/
  37. ${INSTALL_DATA} ${WRKBUILD}/etc/sid-msg.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  38. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf ${IDIR_SNORT_WIRELESS}/etc/snort/
  39. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT_WIRELESS}/usr/bin
  41. include ${TOPDIR}/mk/pkg-bottom.mk