net/snort3: Include default configs and snort2lua
Include default configuration files to have something to start from. Also include snort2lua to help convert snort2 rules to snort3 to also help with bootstrapping the configuration. Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
This commit is contained in:
parent
fefd882274
commit
979464c6a1
2 changed files with 10 additions and 2 deletions
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=snort3
|
PKG_NAME:=snort3
|
||||||
PKG_VERSION:=3.1.0.0
|
PKG_VERSION:=3.1.0.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/
|
PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/
|
||||||
|
@ -61,6 +61,7 @@ TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/daq3 -ltirpc
|
||||||
|
|
||||||
define Package/snort3/conffiles
|
define Package/snort3/conffiles
|
||||||
/etc/config/snort
|
/etc/config/snort
|
||||||
|
/etc/snort/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/snort3/install
|
define Package/snort3/install
|
||||||
|
@ -69,6 +70,10 @@ define Package/snort3/install
|
||||||
$(PKG_INSTALL_DIR)/usr/bin/snort \
|
$(PKG_INSTALL_DIR)/usr/bin/snort \
|
||||||
$(1)/usr/bin/
|
$(1)/usr/bin/
|
||||||
|
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/bin/snort2lua \
|
||||||
|
$(1)/usr/bin/
|
||||||
|
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
$(PKG_INSTALL_DIR)/usr/bin/u2{boat,spewfoo} \
|
$(PKG_INSTALL_DIR)/usr/bin/u2{boat,spewfoo} \
|
||||||
$(1)/usr/bin/
|
$(1)/usr/bin/
|
||||||
|
@ -88,6 +93,9 @@ define Package/snort3/install
|
||||||
$(1)/usr/share/lua/
|
$(1)/usr/share/lua/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/etc/snort
|
$(INSTALL_DIR) $(1)/etc/snort
|
||||||
|
$(INSTALL_CONF) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/etc/snort/*.lua \
|
||||||
|
$(1)/etc/snort
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
config snort 'snort'
|
config snort 'snort'
|
||||||
option config_dir '/etc/snort/etc/'
|
option config_dir '/etc/snort/'
|
||||||
option alert_module 'alert_syslog'
|
option alert_module 'alert_syslog'
|
||||||
option interface 'eth0'
|
option interface 'eth0'
|
||||||
|
|
Loading…
Reference in a new issue