1 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks |
2 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks 2015-06-10 03:32:04.000000000 -0400 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks 2015-06-10 03:32:04.000000000 -0400 |
3 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks 2022-06-12 22:56:30.436000000 -0400 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks 2022-06-13 22:22:14.397000000 -0400 |
4 |
@@ -2,4 +2,15 @@ |
@@ -2,4 +2,15 @@ |
5 |
|
|
6 |
use esmith::Build::CreateLinks qw(:all); |
use esmith::Build::CreateLinks qw(:all); |
12 |
+templates2events("/etc/clamav-unofficial-sigs/os.conf",$event); |
+templates2events("/etc/clamav-unofficial-sigs/os.conf",$event); |
13 |
+#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/clamav-unofficial-sigs"); |
+#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/clamav-unofficial-sigs"); |
14 |
+#clamav-unofficial-sigs.service clamav-unofficial-sigs.timer |
+#clamav-unofficial-sigs.service clamav-unofficial-sigs.timer |
15 |
+event_link("systemd-default", $event, "10"); |
+event_link("systemd-default", $event, "88"); |
16 |
+event_link("systemd-reload", $event, "50"); |
+event_link("systemd-reload", $event, "89"); |
17 |
+ |
+event_link("clamav-unofficial-sigs-folders", $event, "55"); |
18 |
+#use esmith::Build::Backup qw(:all); |
+#use esmith::Build::Backup qw(:all); |
19 |
+#backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/user.conf)); |
+#backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/master.conf /etc/clamav-unofficial-sigs/user.conf /var/lib/clamav-unofficial-sigs/)); |
20 |
+ |
+ |
21 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb |
22 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb 2015-06-10 03:32:04.000000000 -0400 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb 2015-06-10 03:32:04.000000000 -0400 |
113 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb 1969-12-31 19:00:00.000000000 -0500 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb 1969-12-31 19:00:00.000000000 -0500 |
114 |
@@ -1 +0,0 @@ |
@@ -1 +0,0 @@ |
115 |
-ss |
-ss |
116 |
|
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs |
117 |
|
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs 1969-12-31 19:00:00.000000000 -0500 |
118 |
|
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs 2022-06-13 22:18:47.928000000 -0400 |
119 |
|
@@ -0,0 +1,8 @@ |
120 |
|
+{ |
121 |
|
+ my $clamav_unof = $DB->get("clamav-unofficial-sigs") || |
122 |
|
+ $DB->new_record("clamav-unofficial-sigs", { type => "service" }); |
123 |
|
+ |
124 |
|
+ $clamav_unof->delete_prop($_) for ( qw(honeynet.hdb jurlbl.ndb phish.ndb sanesecurity.ftm securiteinfobat.hdb securiteinfoelf.hdb securiteinfohtml.hdb securiteinfopdf.hdb spamimg.hdb winnow_malware_links.ndb |
125 |
|
+junk.ndb mbl.ndb rogue.hdb scam.ndb securiteinfodos.hdb securiteinfo.hdb securiteinfooffice.hdb securiteinfosh.hdb winnow_malware.hdb) ); |
126 |
|
+ |
127 |
|
+} |
128 |
|
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init |
129 |
|
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init 1969-12-31 19:00:00.000000000 -0500 |
130 |
|
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init 2022-06-13 22:03:58.107000000 -0400 |
131 |
|
@@ -0,0 +1,6 @@ |
132 |
|
+#!/bin/bash |
133 |
|
+# create missing folder to avoid error |
134 |
|
+# see https://github.com/extremeshok/clamav-unofficial-sigs/pull/390 https://github.com/extremeshok/clamav-unofficial-sigs/pull/400 |
135 |
|
+mkdir -p /var/lib/clamav-unofficial-sigs/dbs-uh |
136 |
|
+mkdir -p /var/lib/clamav-unofficial-sigs/dbs-yara |
137 |
|
+chown clamupdate:clamupdate /var/lib/clamav-unofficial-sigs/* |
138 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path |
139 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path 2015-06-10 03:32:04.000000000 -0400 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path 2015-06-10 03:32:04.000000000 -0400 |
140 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path 1969-12-31 19:00:00.000000000 -0500 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path 1969-12-31 19:00:00.000000000 -0500 |
339 |
+ |
+ |
340 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases |
341 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 1969-12-31 19:00:00.000000000 -0500 |
342 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 2022-06-12 23:00:57.665000000 -0400 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 2022-06-13 22:05:17.066000000 -0400 |
343 |
@@ -0,0 +1,74 @@ |
@@ -0,0 +1,47 @@ |
|
+{ |
|
|
+ |
|
|
+my %db = $DB->get('clamav-unofficial-sigs')->props; |
|
|
+ |
|
|
+my @ss = (); |
|
|
+my @si = (); |
|
|
+my @mbl = (); |
|
|
+ |
|
|
+if ((${'clamav-unofficial-sigs'}{'status'} || 'disabled') eq 'enabled'){ |
|
|
+ while (my ($param,$value) = each(%db)){ |
|
|
+ if ($value eq 'ss'){ |
|
|
+ push @ss, $param; |
|
|
+ } |
|
|
+ elsif ($value eq 'si'){ |
|
|
+ push @si, $param; |
|
|
+ } |
|
|
+ elsif ($value eq 'mbl'){ |
|
|
+ push @mbl, $param; |
|
|
+ } |
|
|
+ } |
|
|
+# $OUT .= "ss_dbs=\"\n " . join("\n ", @ss) . "\n\"\n" if (scalar @ss > 0); |
|
|
+# $OUT .= "si_dbs=\"\n " . join("\n ", @si) . "\n\"\n" if (scalar @si > 0); |
|
|
+# $OUT .= "mbl_dbs=\"\n " . join("\n ", @mbl) . "\n\"\n" if (scalar @mbl > 0); |
|
|
+} |
|
|
+$OUT ="\n"; |
|
|
+} |
|
344 |
+# securiteinfo |
+# securiteinfo |
345 |
+securiteinfo_premium={((${'clamav-unofficial-sigs'}{'securiteinfo_premium'}|| "no" ) eq '"yes"' )? "yes" : '"no"' } |
+securiteinfo_premium={((${'clamav-unofficial-sigs'}{'securiteinfo_premium'}|| "no" ) eq '"yes"' )? "yes" : '"no"' } |
346 |
+securiteinfo_authorisation_signature={my $key=${'clamav-unofficial-sigs'}{'securiteinfo_authorisation_signature'}|| 'YOUR-SIGNATURE-NUMBER'; $OUT="\"$key\""; } |
+securiteinfo_authorisation_signature={my $key=${'clamav-unofficial-sigs'}{'securiteinfo_authorisation_signature'}|| 'YOUR-SIGNATURE-NUMBER'; $OUT="\"$key\""; } |
386 |
+$OUT .= ") #END ADDITIONAL DATABASES |
+$OUT .= ") #END ADDITIONAL DATABASES |
387 |
+"; |
+"; |
388 |
+ |
+ |
|
+#TODO |
|
389 |
+ |
+ |
390 |
+} |
+} |
391 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies |
417 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/099UserConfigComplete 2022-06-12 22:53:04.000000000 -0400 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/099UserConfigComplete 2022-06-12 22:53:04.000000000 -0400 |
418 |
@@ -0,0 +1 @@ |
@@ -0,0 +1 @@ |
419 |
+user_configuration_complete="yes" |
+user_configuration_complete="yes" |
420 |
|
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf smeserver-clamav-unofficial-sigs-0.1.0/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf |
421 |
|
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf 1969-12-31 19:00:00.000000000 -0500 |
422 |
|
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf 2022-06-13 22:19:57.355000000 -0400 |
423 |
|
@@ -0,0 +1,2 @@ |
424 |
|
+[Install] |
425 |
|
+WantedBy=sme-server.target |