Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 122
View file
pykolab.spec
Changed
@@ -34,9 +34,10 @@ Group: Applications/System URL: http://kolab.org/ -# From 792046ae463672f81f123482c13f474e88cfd832 Source0: http://files.kolab.org/releases/%{name}-%{version}.tar.gz +Patch0001: 0001-Configure-the-skin-based-on-the-available-skins.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %if 0%{?suse_version} @@ -201,6 +202,8 @@ %prep %setup -q +%patch0001 -p1 + %build autoreconf -v %configure @@ -523,6 +526,9 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog +* Tue Dec 9 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-2 +- Set the skin to used based on the available skins + * Mon Dec 8 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-1 - New upstream release
View file
0001-Configure-the-skin-based-on-the-available-skins.patch
Added
@@ -0,0 +1,43 @@ +From 5f711b830a66fd1795953193b8bfb82986568193 Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Tue, 9 Dec 2014 13:01:47 +0100 +Subject: [PATCH] Configure the skin based on the available skins + +--- + pykolab/setup/setup_roundcube.py | 6 ++++++ + share/templates/roundcubemail/config.inc.php.tpl | 2 +- + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py +index 259f676..d7442b4 100644 +--- a/pykolab/setup/setup_roundcube.py ++++ b/pykolab/setup/setup_roundcube.py +@@ -88,6 +88,12 @@ def execute(*args, **kw): + 'conf': conf + } + ++ if os.access('/usr/share/roundcubemail/skins/enterprise/', os.R_OK): ++ rc_settings['skin'] = 'enterprise' ++ elif os.access('/usr/share/roundcubemail/skin/chameleon/', os_R_OK): ++ rc_settings['skin'] = 'chameleon' ++ else: ++ rc_settings['skin'] = 'larry' + + want_files = [ + 'acl.inc.php', +diff --git a/share/templates/roundcubemail/config.inc.php.tpl b/share/templates/roundcubemail/config.inc.php.tpl +index 6383a5c..15cd25f 100644 +--- a/share/templates/roundcubemail/config.inc.php.tpl ++++ b/share/templates/roundcubemail/config.inc.php.tpl +@@ -128,7 +128,7 @@ + \$config['ldap_debug'] = false; + \$config['smtp_debug'] = false; + +- \$config['skin'] = 'chameleon'; ++ \$config['skin'] = '$skin'; + \$config['skin_include_php'] = false; + \$config['mime_magic'] = null; + \$config['im_identify_path'] = '/usr/bin/identify'; +-- +1.9.3 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.