]> 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>
Wed, 8 Sep 2021 17:37:23 +0000 (19:37 +0200)
commitb1e9be4cf41c2d62964afb9eb0b9b41b51343ee6
treea1a7df918124cfa31b6efb1dd8414446d4a7c860
parentb355a28fbf02ef3f79df72315c804cd7cd0f564e
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