}
}
+ print FILE "\n#Load additional service related rules to avoid log flooding.\n";
+
+ # Loop through the array of supported port helper services.
+ foreach my $service (@IDS::Ports::Helper::services) {
+ # Skip non available services (addons).
+ next unless (-f "/opt/pakfire/db/installed/meta-$service");
+
+ # Generate name of the rulesfile.
+ my $rulesfile = "$default_rulespath/ipfire-$service.rules";
+
+ # Skip services which does not own rules files.
+ next unless (-f $rulesfile);
+
+ # Write the rulesfile name to the list of rulesfiles to use.
+ print FILE " - $rulesfile\n";
+ }
+
# Loop through the array of enabled providers.
foreach my $provider (@providers) {
# Skip unsupported providers.