Add ReadOnly support

tags/0.1.4
Daniel Berteaud 13 years ago
parent c2155dd14e
commit 11c8ef98c9
  1. 8
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend60Caldav
  2. 9
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend70Carddav
  3. 3
      smeserver-sogosync.spec

@ -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$/);
}

@ -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$/);
}

@ -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)

Loading…
Cancel
Save