]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
ids-functions.pl: Introduce extraceruleset() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 27 Mar 2021 11:07:45 +0000 (12:07 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 2 Dec 2021 06:52:52 +0000 (07:52 +0100)
commit884e24ca682d730d5b249dc6c5df6dd55e910eaf
tree6fb711dc236f9c4447ae8d7791a9c0adcd4adf67
parentdb1f759484177c90227d52252e9dca813ba47d01
ids-functions.pl: Introduce extraceruleset() function.

This function is used to extract the required config and rules files
from the stored rules tarball for a given ruleset provider.

* The files will be extracted to a temporary directory layout in
  "/tmp/ids_tmp".

* Names of config files will be adjusted in case multiple providers
  offers the same config files, which is very common.

* The name of the single rulefiles will be adjusted to start with
  the vendors name to allow assigning them very easily to a single
  ruleset provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl