1 |
diff -up smeserver-rkhunter-1.2.0/createlinks.correct smeserver-rkhunter-1.2.0/createlinks |
2 |
--- smeserver-rkhunter-1.2.0/createlinks.correct 2013-06-23 09:15:00.000000000 -0400 |
3 |
+++ smeserver-rkhunter-1.2.0/createlinks 2013-06-23 09:15:37.000000000 -0400 |
4 |
@@ -0,0 +1,13 @@ |
5 |
+#!/usr/bin/perl -w |
6 |
+ |
7 |
+use esmith::Build::CreateLinks qw(:all); |
8 |
+ |
9 |
+for my $event (qw( |
10 |
+ bootstrap-console-save |
11 |
+ remoteaccess-update |
12 |
+ )) |
13 |
+{ |
14 |
+ templates2events("/etc/rkhunter.conf", $event); |
15 |
+ templates2events("/etc/sysconfig/rkhunter", $event); |
16 |
+} |
17 |
+ |
18 |
diff -up smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script.correct smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script |
19 |
diff -up smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/rkhunter.conf/010mail10onwarning.correct smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/rkhunter.conf/010mail10onwarning |
20 |
--- smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/rkhunter.conf/010mail10onwarning.correct 2009-04-02 17:14:29.000000000 -0400 |
21 |
+++ smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/rkhunter.conf/010mail10onwarning 2013-06-23 09:14:26.000000000 -0400 |
22 |
@@ -7,4 +7,7 @@ |
23 |
# NOTE: This option should be present in the configuration file. |
24 |
# |
25 |
#MAIL-ON-WARNING=me@mydomain root@mydomain |
26 |
-MAIL-ON-WARNING="" |
27 |
+{ |
28 |
+my $mailWarn = $rkhunter{'mailWarn'} || ""; |
29 |
+$OUT .= "MAIL-ON-WARNING=\"$mailWarn\"\n"; |
30 |
+} |
31 |
diff -up smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/sysconfig/rkhunter/10config.correct smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/sysconfig/rkhunter/10config |
32 |
--- smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/sysconfig/rkhunter/10config.correct 2013-06-22 21:20:29.000000000 -0400 |
33 |
+++ smeserver-rkhunter-1.2.0/root/etc/e-smith/templates/etc/sysconfig/rkhunter/10config 2013-06-23 09:02:49.000000000 -0400 |
34 |
@@ -6,6 +6,14 @@ |
35 |
# yes - perform detailed report scan |
36 |
# (includes application check) |
37 |
|
38 |
-{ $OUT .= "MAILTO= ". $rkhunter{'mail'} || "root";} |
39 |
-DIAG_SCAN=no |
40 |
+{ |
41 |
+my $mailRK = $rkhunter{'mail'} || "root"; |
42 |
+$OUT .= "MAILTO=$mailRK\n"; |
43 |
+ |
44 |
+my $diagScan = $rkhunter{'DIAG_SCAN'} || "no"; |
45 |
+ |
46 |
+$OUT .= "DIAG_SCAN=$diagScan\n"; |
47 |
+ |
48 |
+} |
49 |
+ |
50 |
|