-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(snort3): updating package (#1072)
- Loading branch information
Showing
4 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# | ||
# 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.18 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_MAINTAINER:=W. Michael Petullo <[email protected]> | ||
|
||
PKG_LICENSE:=GPL-2.0-only | ||
PKG_LICENSE_FILES:=COPYING LICENSE | ||
|
||
PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/snort3/libdaq/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=301db00d33ccd7be546ffb40cd9f4fc41031a5d67196b48bd8b76ae36e10f078 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION) | ||
|
||
PKG_FIXUP:=autoreconf | ||
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 +libmnl +libnetfilter-queue | ||
endef | ||
|
||
define Package/libdaq3/description | ||
Data Acquisition library for packet I/O. | ||
endef | ||
|
||
CONFIGURE_ARGS+= \ | ||
--disable-static \ | ||
--enable-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/daq3 | ||
$(CP) $(PKG_INSTALL_DIR)/usr/include/. $(STAGING_DIR)/usr/include/daq3/ | ||
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq3 | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/daq3/ | ||
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq3/daq | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq3/daq/ | ||
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=snort3 | ||
PKG_VERSION:=3.1.84.0 | ||
PKG_RELEASE:=5 | ||
PKG_VERSION:=3.6.2.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_VERSION:=$(PKG_VERSION) | ||
PKG_SOURCE_URL:=https://github.com/snort3/snort3 | ||
PKG_MIRROR_HASH:=ffa69fdd95c55a943ab4dd782923caf31937dd8ad29e202d7fe781373ed84444 | ||
PKG_MIRROR_HASH:=961649f0ea661b6454c9c056a789708a601dcd367515e506ada5d86fea9cee18 | ||
|
||
PKG_MAINTAINER:=W. Michael Petullo <[email protected]>, John Audia <[email protected]> | ||
PKG_LICENSE:=GPL-2.0-only | ||
|
@@ -28,8 +28,8 @@ define Package/snort3 | |
CATEGORY:=Network | ||
DEPENDS:= \ | ||
+(TARGET_x86||TARGET_x86_64):hyperscan-runtime \ | ||
+gperftools-runtime +libstdcpp +libdaq3 +libdnet +libopenssl +libpcap +libpcre \ | ||
+libpthread +libuuid +zlib +libhwloc +libtirpc +luajit +libatomic \ | ||
+gperftools-runtime +libstdcpp +libdaq3 +libdnet +libopenssl +libpcap +libpcre2 \ | ||
+libpthread +libuuid +zlib +libhwloc +libtirpc @HAS_LUAJIT_ARCH +luajit +libatomic \ | ||
+kmod-nft-queue +liblzma +ucode +ucode-mod-fs +ucode-mod-uci | ||
TITLE:=Lightweight Network Intrusion Detection System | ||
URL:=http://www.snort.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters