/[smecontribs]/rpms/smeserver-zarafa/contribs7/smeserver-zarafa-0.9.0-services.patch
ViewVC logotype

Annotation of /rpms/smeserver-zarafa/contribs7/smeserver-zarafa-0.9.0-services.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Sat Dec 20 09:11:11 2008 UTC (15 years, 11 months ago) by dungog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
See Changelog

1 dungog 1.1 --- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services.services 2008-12-20 18:25:17.000000000 +1100
2     +++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services 2008-12-20 18:25:27.000000000 +1100
3     @@ -4,5 +4,6 @@
4     /etc/rc.d/init.d/zarafa-ical $1
5     /etc/rc.d/init.d/zarafa-licensed $1
6     /etc/rc.d/init.d/zarafa-monitor $1
7     -/etc/rc.d/init.d/zarafa-spooler $1
8     /etc/rc.d/init.d/zarafa-server $1
9     +/etc/rc.d/init.d/zarafa-spooler $1
10     +
11     --- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop.services 2008-12-20 18:24:21.000000000 +1100
12     +++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop 2008-12-20 18:31:41.000000000 +1100
13     @@ -0,0 +1,8 @@
14     +#!/bin/sh
15     +
16     +/etc/rc.d/init.d/zarafa-gateway stop
17     +/etc/rc.d/init.d/zarafa-ical stop
18     +/etc/rc.d/init.d/zarafa-licensed stop
19     +/etc/rc.d/init.d/zarafa-monitor stop
20     +/etc/rc.d/init.d/zarafa-spooler stop
21     +/etc/rc.d/init.d/zarafa-server stop
22     --- smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa.services 2008-12-20 19:12:26.000000000 +1100
23     +++ smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa 2008-12-20 19:13:43.000000000 +1100
24     @@ -1,6 +1,13 @@
25     {
26     - my $zarafa = $user->prop('zarafa') || 'enabled';
27     - return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
28     + # vim: ft=perl:
29     + die "USERNAME not set." unless defined ($USERNAME);
30     +
31     + use esmith::AccountsDB;
32     + $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB";
33     +
34     + $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB";
35     +
36     + my $zarafa = $user->prop('zarafa') || 'enabled';
37     + return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
38     if ($zarafa eq 'enabled');
39     }
40     -

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed