initial commit
This commit is contained in:
commit
1f13b87a42
1
root/etc/e-smith/db/configuration/sogosync/access
Normal file
1
root/etc/e-smith/db/configuration/sogosync/access
Normal file
|
@ -0,0 +1 @@
|
|||
public
|
1
root/etc/e-smith/db/configuration/sogosync/status
Normal file
1
root/etc/e-smith/db/configuration/sogosync/status
Normal file
|
@ -0,0 +1 @@
|
|||
enabled
|
1
root/etc/e-smith/db/configuration/sogosync/type
Normal file
1
root/etc/e-smith/db/configuration/sogosync/type
Normal file
|
@ -0,0 +1 @@
|
|||
webapp
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
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/in
|
||||
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";
|
||||
|
||||
}
|
||||
}
|
||||
|
42
smeserver-sogosync.spec
Normal file
42
smeserver-sogosync.spec
Normal file
|
@ -0,0 +1,42 @@
|
|||
Name: smeserver-sogosync
|
||||
Version: 0.0.1
|
||||
Release: 0.beta0%{?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)
|
||||
|
||||
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
|
||||
|
||||
%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
Block a user