You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2012-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libdaq
  9. PKG_VERSION:=2.2.2
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/
  12. PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=7cd818cabb1ad35360e83076e54775f07165ee71407dc672d147e27d3cd37f7b
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION)
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/libdaq
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=DAQ library
  24. URL:=$(PKG_SOURCE_URL)
  25. DEPENDS:=+libdnet +libpcap
  26. endef
  27. define Package/libdaq/description
  28. Data Acquisition library for packet I/O.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --disable-static \
  32. --disable-nfq-module \
  33. --with-dnet-includes="$(STAGING_DIR)/usr/include" \
  34. --with-dnet-libraries="$(STAGING_DIR)/usr/lib" \
  35. --with-libpcap-includes="$(STAGING_DIR)/usr/include" \
  36. --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/daq2
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include/daq2/
  40. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq2
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/daq2/
  42. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq2/daq
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq2/daq/
  44. $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/daq-modules-config $(STAGING_DIR)/usr/bin/
  46. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(STAGING_DIR)/usr/bin/daq-modules-config
  47. $(INSTALL_DIR) $(2)/bin
  48. $(LN) ../../usr/bin/daq-modules-config $(2)/bin/daq-modules-config
  49. endef
  50. define Package/libdaq/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  53. $(INSTALL_DIR) $(1)/usr/lib/daq
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/*.so* $(1)/usr/lib/daq/
  55. endef
  56. $(eval $(call BuildPackage,libdaq))