]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ipblocklist-sources: New package.
authorTim FitzGeorge <ipfr@tfitzgeorge.me.uk>
Tue, 5 Apr 2022 03:29:03 +0000 (05:29 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:26:14 +0000 (17:26 +0200)
Placing the ipblocklist sources file as an own package, easily
allows to update this single file during a core update and to
keep the vendor details for the blocklists up-to-date.

Signed-off-by: Tim FitzGeorge <ipfr@tfitzgeorge.me.uk>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/rootfiles/common/ipblocklist-sources [new file with mode: 0644]
lfs/ipblocklist-sources [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/ipblocklist-sources b/config/rootfiles/common/ipblocklist-sources
new file mode 100644 (file)
index 0000000..e178903
--- /dev/null
@@ -0,0 +1 @@
+var/ipfire/ipblocklist/sources
diff --git a/lfs/ipblocklist-sources b/lfs/ipblocklist-sources
new file mode 100644 (file)
index 0000000..9cc1cc8
--- /dev/null
@@ -0,0 +1,53 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire development 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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = ipfire
+
+THISAPP    = ipblocklist-sources
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+install : $(TARGET)
+
+check :
+
+download :
+
+md5 :
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) :
+       @$(PREBUILD)
+       mkdir -p /var/ipfire/ipblocklist
+       install -v -m 0644 $(DIR_SRC)/config/ipblocklist/sources /var/ipfire/ipblocklist
+
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 4c2dc10b56c4eed3ea88a9b7c841436323219aef..89bc7ec416a8b482a2ae443446bdb51cb6ef99af 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1439,6 +1439,7 @@ buildipfire() {
   lfsmake2 hyperscan
   lfsmake2 suricata
   lfsmake2 ids-ruleset-sources
+  lfsmake2 ipblocklist-sources
   lfsmake2 squid
   lfsmake2 squidguard
   lfsmake2 calamaris