1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/etc/e-smith/db/configuration/defaults/qpsmtpd/qplogsumm mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/etc/e-smith/db/configuration/defaults/qpsmtpd/qplogsumm |
2 |
--- smeserver-qpsmtpd-1.2.1/root/etc/e-smith/db/configuration/defaults/qpsmtpd/qplogsumm 1969-12-31 17:00:00.000000000 -0700 |
3 |
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/etc/e-smith/db/configuration/defaults/qpsmtpd/qplogsumm 2008-01-08 01:41:03.000000000 -0700 |
4 |
@@ -0,0 +1 @@ |
5 |
+disabled |
6 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/var/service/qpsmtpd/log/run mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/var/service/qpsmtpd/log/run |
7 |
--- smeserver-qpsmtpd-1.2.1/root/var/service/qpsmtpd/log/run 2008-01-08 01:42:21.000000000 -0700 |
8 |
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/var/service/qpsmtpd/log/run 2008-01-08 01:37:04.000000000 -0700 |
9 |
@@ -21,7 +21,21 @@ |
10 |
# Please visit our web site www.e-smith.com for details. |
11 |
#---------------------------------------------------------------------- |
12 |
|
13 |
-exec \ |
14 |
- /usr/local/bin/setuidgid smelog \ |
15 |
- /usr/local/bin/multilog t s5000000 \ |
16 |
+status=`/sbin/e-smith/config getprop qpsmtpd qplogsumm` |
17 |
+ |
18 |
+if [ -z $status ]; then |
19 |
+ status="disabled" |
20 |
+fi |
21 |
+ |
22 |
+if [ $status = "enabled" ]; then |
23 |
+ exec \ |
24 |
+ /usr/local/bin/setuidgid smelog \ |
25 |
+ /usr/local/bin/multilog t s5000000 \ |
26 |
!/usr/local/bin/qplogsumm.pl /var/log/qpsmtpd |
27 |
+else |
28 |
+ exec \ |
29 |
+ /usr/local/bin/setuidgid smelog \ |
30 |
+ /usr/local/bin/multilog t s5000000 \ |
31 |
+ /var/log/qpsmtpd |
32 |
+fi |
33 |
+ |