]> git.ipfire.org Git - ipfire-2.x.git/commit - config/cfgroot/ids-functions.pl
ids-functions.pl: Introduce private _get_dl_rulesfile() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 26 Mar 2021 12:19:58 +0000 (13:19 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:22:59 +0000 (13:22 +0100)
commit788a71f51eedf087b6c91bc5714ed0b1834d202d
tree361a397f22ee12efef2ff9ea910c8348ca2cf135
parente55fa2f7456d3f4bf16a33a3f5d06582b9e78de9
ids-functions.pl: Introduce private _get_dl_rulesfile() function.

This function can be used to generate/get the absolute file and path
for a given ruleset provider.

The files will be stored in the usual "/var/tmp" folder with a new
file format based on the dl_file type and the provider.

Examples could be:
* /var/ipfire/idsrules-emerging.tar.gz
* /var/ipfire/idsrules-registered.tar.gz
* /var/ipfire/idsrules-somprovider.rules

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