From: W. Michael Petullo Date: Fri, 20 Nov 2020 03:25:01 +0000 (-0600) Subject: libdaq3: add new package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d547cd266265b1f6b6ac874bbdb4e57b7ee0e20;p=feed%2Fpackages.git libdaq3: add new package Signed-off-by: W. Michael Petullo --- diff --git a/libs/libdaq3/Makefile b/libs/libdaq3/Makefile new file mode 100644 index 0000000000..4c8a7abd45 --- /dev/null +++ b/libs/libdaq3/Makefile @@ -0,0 +1,67 @@ +# +# Copyright (C) 2012-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libdaq3 +PKG_VERSION:=3.0.0-beta1 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/ +PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz +PKG_HASH:=ef74aa1c30a6ee93eacbe7967d1c85d7df3214cf3783d4eabbb6b64305fd273e +PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION) + +PKG_LICENSE:=GPL-2.0-only +PKG_MAINTAINER:=W. Michael Petullo + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libdaq3 + SECTION:=libs + CATEGORY:=Libraries + TITLE:=DAQ library + URL:=$(PKG_SOURCE_URL) + DEPENDS:=+libdnet +libpcap +libstdcpp +endef + +define Package/libdaq3/description + Data Acquisition library for packet I/O. +endef + +CONFIGURE_ARGS+= \ + --disable-static \ + --disable-nfq-module \ + --with-dnet-includes="$(STAGING_DIR)/usr/include" \ + --with-dnet-libraries="$(STAGING_DIR)/usr/lib" \ + --with-libpcap-includes="$(STAGING_DIR)/usr/include" \ + --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \ + +define Build/InstallDev + $(INSTALL_DIR) $(STAGING_DIR)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include/ + $(INSTALL_DIR) $(STAGING_DIR)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/ + $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq + $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq/ + $(INSTALL_DIR) $(STAGING_DIR)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(STAGING_DIR)/usr/bin/ +endef + +define Package/libdaq3/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/daq + $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/*.so* $(1)/usr/lib/daq/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,libdaq3))