commit
92f25f66f1
21 changed files with 135 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
#!/usr/bin/perl -w |
||||
|
||||
use esmith::Build::CreateLinks qw(:all); |
||||
|
||||
templates2events("/etc/sogosync/config.php", qw(webapps-update bootstrap-console-save email-update)); |
||||
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/sogosync/config.php/template-begin"); |
||||
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/sogosync/config.php/template-end"); |
@ -0,0 +1 @@ |
||||
public |
@ -0,0 +1 @@ |
||||
enabled |
@ -0,0 +1 @@ |
||||
webapp |
@ -0,0 +1 @@ |
||||
public |
@ -0,0 +1 @@ |
||||
enabled |
@ -0,0 +1 @@ |
||||
webapp |
@ -0,0 +1,36 @@ |
||||
{ |
||||
my $sogosync = $sogosync{'status'} || 'enabled'; |
||||
my $access = $sogosync{'access'} || 'private'; |
||||
my $allow = ($access eq 'public') ? 'all':"$localAccess $externalSSLAccess"; |
||||
|
||||
if ($sogosync eq 'enabled'){ |
||||
$OUT .=<<"EOF"; |
||||
|
||||
Alias /Microsoft-Server-ActiveSync /usr/share/sogosync/index.php |
||||
|
||||
<Directory /usr/share/sogosync/> |
||||
SSLRequireSSL on |
||||
AddType application/x-httpd-php .php .php3 |
||||
AllowOverride None |
||||
php_admin_flag magic_quotes_gpc off |
||||
php_admin_flag register_globals off |
||||
php_admin_flag magic_quotes_runtime off |
||||
php_admin_flag short_open_tag on |
||||
php_admin_value open_basedir /usr/share/sogosync:/usr/share/awl/inc:/var/lib/sogosync/:/etc/sogosync |
||||
php_admin_value include_path /usr/share/sogosync:/usr/share/awl/inc:/etc/sogosync |
||||
Order deny,allow |
||||
Deny from all |
||||
Allow from $allow |
||||
</Directory> |
||||
|
||||
<Directory /usr/share/sogosync/include> |
||||
Deny from all |
||||
</Directory> |
||||
|
||||
EOF |
||||
|
||||
} |
||||
else{ |
||||
$OUT .= "# sogosync is disabled\n"; |
||||
} |
||||
} |
@ -0,0 +1,13 @@ |
||||
{ |
||||
my $sslport = $modSSL{'TCPPort'} || '443'; |
||||
my $sogosync = $sogosync{'status'} || 'enabled'; |
||||
|
||||
if (($port ne $sslport) && ($sogosync eq 'enabled')){ |
||||
|
||||
## Redirect Web Address to Secure Address |
||||
$OUT .= " RewriteEngine on\n"; |
||||
$OUT .= " RewriteRule ^/Microsoft-Server-ActiveSync(/.*|\$) https://%{HTTP_HOST}/Microsoft-Server-ActiveSync\$1 \[L,R\]\n"; |
||||
|
||||
} |
||||
} |
||||
|
@ -0,0 +1,3 @@ |
||||
if (function_exists("date_default_timezone_set"))\{ |
||||
date_default_timezone_set("{$TimeZone}"); |
||||
\} |
@ -0,0 +1,2 @@ |
||||
define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/"); |
||||
define('STATE_DIR', '/var/lib/sogosync'); |
@ -0,0 +1,8 @@ |
||||
define('SCRIPT_TIMEOUT', 0); |
||||
define('MAX_EMBEDDED_SIZE', 1048576); |
||||
define('PROVISIONING', true); |
||||
define('LOOSE_PROVISIONING', false); |
||||
define('SYNC_CONFLICT_DEFAULT', SYNC_CONFLICT_OVERWRITE_PIM); |
||||
define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL); |
||||
define('PING_INTERVAL', 30); |
||||
|
@ -0,0 +1 @@ |
||||
$BACKEND_PROVIDER = "BackendCombined"; |
@ -0,0 +1 @@ |
||||
define('MAPI_SERVER', 'file:///var/run/zarafa'); |
@ -0,0 +1,8 @@ |
||||
define('IMAP_SERVER', 'localhost'); |
||||
define('IMAP_PORT', {$imap{'TCPPort'}}); |
||||
define('IMAP_OPTIONS', '/notls/norsh'); |
||||
define('IMAP_DEFAULTFROM', ''); |
||||
define('IMAP_SENTFOLDER', ''); |
||||
define('IMAP_INLINE_FORWARD', false); |
||||
define('IMAP_USE_IMAPMAIL', true); |
||||
|
@ -0,0 +1,2 @@ |
||||
define('MAILDIR_BASE', '/tmp'); |
||||
define('MAILDIR_SUBDIR', 'Maildir'); |
@ -0,0 +1 @@ |
||||
define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf'); |
@ -0,0 +1 @@ |
||||
define('SEARCH_PROVIDER', 'SearchLDAP'); |
@ -0,0 +1 @@ |
||||
define('CALDAV_URL', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u/'); |
@ -0,0 +1 @@ |
||||
define('CARDDAV_URL', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u/Contacts/'); |
@ -0,0 +1,44 @@ |
||||
Name: smeserver-sogosync |
||||
Version: 0.0.1 |
||||
Release: 0.beta1%{?dist} |
||||
Summary: SME Server integration for sogosync |
||||
|
||||
Group: Application/System |
||||
License: GNU GPL v2 |
||||
URL: https://github.com/xbgmsharp/sogosync |
||||
Source0: %{name}-%{version}.tar.gz |
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
||||
BuildArch: noarch |
||||
|
||||
BuildRequires: e-smith-devtools |
||||
Requires: smeserver-webapps-common |
||||
Requires: sogosync |
||||
|
||||
%description |
||||
Integrate sogosync, which provides an ActiveSync compatible server for SOGo, |
||||
based on Z-Push |
||||
|
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
perl ./createlinks |
||||
|
||||
%install |
||||
rm -rf $RPM_BUILD_ROOT |
||||
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
||||
/bin/rm -f %{name}-%{version}-filelist |
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
||||
> %{name}-%{version}-filelist |
||||
|
||||
%files -f %{name}-%{version}-filelist |
||||
%defattr(-,root,root) |
||||
|
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
%changelog |
||||
* Sat Mar 31 2012 Daniel Berteaud <daniel@firewall-services.com> 0.0.1-1 |
||||
- initial package |
Loading…
Reference in new issue