Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_MD5SUM:= 1aa699ae279bf7a1140cf6cca02f9999
  8. PKG_DESCR:= a flexible Wireless Network Intrusion Detection System (NIDS)
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libnet libpcap libpcre
  11. PKG_URL:= http://www.snort-wireless.org
  12. PKG_SITES:= http://www.snort-wireless.org/files/
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,SNORT_WIRELESS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIGURE_STYLE= gnu
  16. CONFIGURE_ARGS+= --enable-flexresp \
  17. --with-libnet-includes="${STAGING_DIR}/usr/include" \
  18. --with-libnet-libraries="${STAGING_DIR}/usr/lib" \
  19. --with-libpcap-includes="${STAGING_DIR}/usr/include" \
  20. --with-libpcap-libraries="${STAGING_DIR}/usr/lib" \
  21. --with-libpcre-includes="${STAGING_DIR}/usr/include" \
  22. --with-libpcre-libraries="${STAGING_DIR}/usr/lib" \
  23. --without-mysql \
  24. --without-postgresql \
  25. --disable-inline
  26. BUILD_STYLE= auto
  27. INSTALL_STYLE= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_SNORT_WIRELESS}/usr/bin
  30. ${INSTALL_DIR} ${IDIR_SNORT_WIRELESS}/etc/snort
  31. ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT_WIRELESS}/etc/snort/
  32. ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
  33. ${IDIR_SNORT_WIRELESS}/etc/snort/
  34. ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  35. ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config ${IDIR_SNORT_WIRELESS}/etc/snort/
  36. ${INSTALL_DATA} ${WRKBUILD}/etc/sid-msg.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  37. ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf ${IDIR_SNORT_WIRELESS}/etc/snort/
  38. ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map ${IDIR_SNORT_WIRELESS}/etc/snort/
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT_WIRELESS}/usr/bin
  40. include ${TOPDIR}/mk/pkg-bottom.mk