Add ReadOnly support

This commit is contained in:
Daniel Berteaud 2012-05-30 21:55:43 +02:00
parent c2155dd14e
commit 11c8ef98c9
3 changed files with 19 additions and 1 deletions

View File

@ -2,3 +2,11 @@
define('CALDAV_PATH', '/SOGo/dav/%u/');
define('CALDAV_PERSONAL', 'personal');
define('CALDAV_SERVER', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u');
{
my $ro = $sogosync{'ReadOnly'} || 'disabled';
$OUT .= " define('CALDAV_READONLY', true);\n"
if ($ro =~ m/^yes|enabled|1$/);
}

View File

@ -1,2 +1,11 @@
define('CARDDAV_PERSONAL', 'personal');
define('CARDDAV_URL', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u/Contacts/');
{
my $ro = $sogosync{'ReadOnly'} || 'disabled';
$OUT .= " define('CARDDAV_READONLY', true);\n"
if ($ro =~ m/^yes|enabled|1$/);
}

View File

@ -1,5 +1,5 @@
Name: smeserver-sogosync
Version: 0.1.3
Version: 0.1.4
Release: 0.beta5%{?dist}
Summary: SME Server integration for sogosync
@ -31,6 +31,7 @@ rm -rf $RPM_BUILD_ROOT
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)