aboutsummaryrefslogtreecommitdiff
path: root/net/snort3/Makefile
diff options
context:
space:
mode:
authorMichal Hrusecky <michal.hrusecky@turris.com>2021-07-22 13:44:07 +0200
committerMichal Hrusecky <michal.hrusecky@turris.com>2021-07-22 13:55:38 +0200
commit2fe854ebd6c0834019a6388aacbe7c49a9269178 (patch)
tree067f3854f9249092cc7b6c7bedbcb996a493bba0 /net/snort3/Makefile
parentc057dfb09c7027287c7862afab965a4cd95293a3 (diff)
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>
Diffstat (limited to 'net/snort3/Makefile')
-rw-r--r--net/snort3/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/snort3/Makefile b/net/snort3/Makefile
index 8c4025f87..2c675bc2f 100644
--- a/net/snort3/Makefile
+++ b/net/snort3/Makefile
@@ -59,6 +59,7 @@ TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/daq3 -ltirpc
define Package/snort3/conffiles
/etc/config/snort
+/etc/snort/
endef
define Package/snort3/install
@@ -68,6 +69,10 @@ define Package/snort3/install
$(1)/usr/bin/
$(INSTALL_BIN) \
+ $(PKG_INSTALL_DIR)/usr/bin/snort2lua \
+ $(1)/usr/bin/
+
+ $(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/u2{boat,spewfoo} \
$(1)/usr/bin/
@@ -86,6 +91,9 @@ define Package/snort3/install
$(1)/usr/share/lua/
$(INSTALL_DIR) $(1)/etc/snort
+ $(INSTALL_CONF) \
+ $(PKG_INSTALL_DIR)/usr/etc/snort/*.lua \
+ $(1)/etc/snort
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) \