From: Michael Tremer Date: Mon, 1 Sep 2025 15:24:36 +0000 (+0000) Subject: suricata-reporter: Import package X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=620eaa5e2219ee714d0e8b2568e7296f866124ba;p=ipfire-2.x.git suricata-reporter: Import package This is now being packaged and distributed externally. Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/common/suricata-reporter b/config/rootfiles/common/suricata-reporter new file mode 100644 index 000000000..ce47de740 --- /dev/null +++ b/config/rootfiles/common/suricata-reporter @@ -0,0 +1,9 @@ +etc/suricata/reporter.conf +usr/bin/suricata-report-cron +usr/bin/suricata-report-generator +#usr/share/doc/suricata-reporter +#usr/share/doc/suricata-reporter/COPYING +#usr/share/doc/suricata-reporter/README.md +usr/share/locale/de_DE +usr/share/locale/de_DE/LC_MESSAGES +usr/share/locale/de_DE/LC_MESSAGES/suricata-reporter.mo diff --git a/lfs/suricata-reporter b/lfs/suricata-reporter new file mode 100644 index 000000000..20316ff94 --- /dev/null +++ b/lfs/suricata-reporter @@ -0,0 +1,80 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2025 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 0.1 + +THISAPP = suricata-reporter-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = c7a0d7d1341dfb7dcb804d5e44506fb54a5c84cbaf16a071f9d2f64918d868db59683030fd42297dd612f19b256aad42ddfe59db7e3148f665b1316645ace359 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +b2 : $(subst %,%_BLAKE2,$(objects)) + +############################################################################### +# Downloading, checking, b2sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_BLAKE2,$(objects)) : + @$(B2SUM) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 9b3297e84..3257ab911 100755 --- a/make.sh +++ b/make.sh @@ -2095,6 +2095,7 @@ build_system() { lfsmake2 grub-btrfs lfsmake2 fort-validator lfsmake2 arpwatch + lfsmake2 suricata-reporter lfsmake2 linux lfsmake2 rtl8812au