Projects
Kolab:3.4:Updates
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Difference Between Revision 3 and
Kolab:3.4
/
pykolab
View file
pykolab.spec
Changed
@@ -29,13 +29,16 @@ Summary: Kolab Groupware Solution Name: pykolab Version: 0.7.10 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: Applications/System URL: http://kolab.org/ Source0: http://files.kolab.org/releases/%{name}-%{version}.tar.gz +Patch0: fix-missing-template.patch +Patch1: fix-setup-roundcube.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %if 0%{?suse_version} @@ -200,6 +203,9 @@ %prep %setup -q +%patch0 -p1 +%patch1 -p1 + %build autoreconf -v || automake --add-missing && autoreconf -v %configure @@ -522,6 +528,9 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog +* Tue Jun 02 2015 Daniel Hoffend <dh@dotlan.net> - 0.7.10-2 +- Add missing kolab_addressbook config template for setup-kolab + * Wed Feb 25 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.10-1 - Release of version 0.7.10, see;
View file
debian-jessie-systemd.patch
Added
@@ -0,0 +1,101 @@ +From 6359245b344eb81e1014fa5a2f51dd261db6b4e0 Mon Sep 17 00:00:00 2001 +From: Timotheus Pokorra <tp@tbits.net> +Date: Tue, 5 May 2015 11:06:17 +0200 +Subject: [PATCH 1/2] Debian Jessie: fix service names (#4688) for systemd we + need to use different service names for kolabd (kolab-server) and httpd + (apache2) for CentOS vs Debian + +--- + pykolab/setup/setup_kolabd.py | 10 ++++++++-- + pykolab/setup/setup_roundcube.py | 10 ++++++++-- + pykolab/setup/setup_syncroton.py | 10 ++++++++-- + 3 files changed, 24 insertions(+), 6 deletions(-) + +diff --git a/pykolab/setup/setup_kolabd.py b/pykolab/setup/setup_kolabd.py +index 7c7982d..315c7a2 100644 +--- a/pykolab/setup/setup_kolabd.py ++++ b/pykolab/setup/setup_kolabd.py +@@ -72,7 +72,10 @@ def execute(*args, **kw): + myaugeas.close() + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'restart', 'kolabd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'restart', 'kolab-server.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'restart', 'kolabd.service']) + elif os.path.isfile('/sbin/service'): + subprocess.call(['/sbin/service', 'kolabd', 'restart']) + elif os.path.isfile('/usr/sbin/service'): +@@ -81,7 +84,10 @@ def execute(*args, **kw): + log.error(_("Could not start the kolab server service.")) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'enable', 'kolabd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'enable', 'kolab-server.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'enable', 'kolabd.service']) + elif os.path.isfile('/sbin/chkconfig'): + subprocess.call(['/sbin/chkconfig', 'kolabd', 'on']) + elif os.path.isfile('/usr/sbin/update-rc.d'): +diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py +index 6558989..5baf3c5 100644 +--- a/pykolab/setup/setup_roundcube.py ++++ b/pykolab/setup/setup_roundcube.py +@@ -227,7 +227,10 @@ password='%s' + time.sleep(2) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'restart', 'httpd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'restart', 'apache2.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service']) + elif os.path.isfile('/sbin/service'): + subprocess.call(['/sbin/service', 'httpd', 'restart']) + elif os.path.isfile('/usr/sbin/service'): +@@ -236,7 +239,10 @@ password='%s' + log.error(_("Could not start the webserver server service.")) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'enable', 'httpd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'enable', 'apache2.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service']) + elif os.path.isfile('/sbin/chkconfig'): + subprocess.call(['/sbin/chkconfig', 'httpd', 'on']) + elif os.path.isfile('/usr/sbin/update-rc.d'): +diff --git a/pykolab/setup/setup_syncroton.py b/pykolab/setup/setup_syncroton.py +index ca99bd5..f98e046 100644 +--- a/pykolab/setup/setup_syncroton.py ++++ b/pykolab/setup/setup_syncroton.py +@@ -87,7 +87,10 @@ password='%s' + time.sleep(2) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'restart', 'httpd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'restart', 'apache2.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service']) + elif os.path.isfile('/sbin/service'): + subprocess.call(['/sbin/service', 'httpd', 'restart']) + elif os.path.isfile('/usr/sbin/service'): +@@ -96,7 +99,10 @@ password='%s' + log.error(_("Could not start the webserver server service.")) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'enable', 'httpd.service']) ++ if os.path.isfile('/etc/debian_version'): ++ subprocess.call(['/bin/systemctl', 'enable', 'apache2.service']) ++ else: ++ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service']) + elif os.path.isfile('/sbin/chkconfig'): + subprocess.call(['/sbin/chkconfig', 'httpd', 'on']) + elif os.path.isfile('/usr/sbin/update-rc.d'): +-- +1.9.1 + +
View file
fix-missing-template.patch
Added
@@ -0,0 +1,54 @@ +From 791f1e48a09d18621d43ba3a5eb59255283c439d Mon Sep 17 00:00:00 2001 +From: Daniel Hoffend <dh@dotlan.net> +Date: Tue, 2 Jun 2015 16:56:15 +0200 +Subject: [PATCH] Add missing roundcube template + adjust irony path - Fixes + #5066 + +--- + share/templates/roundcubemail/calendar.inc.php.tpl | 2 +- + .../roundcubemail/kolab_addressbook.inc.php.tpl | 20 ++++++++++++++++++++ + 2 files changed, 21 insertions(+), 1 deletion(-) + create mode 100644 share/templates/roundcubemail/kolab_addressbook.inc.php.tpl + +diff --git a/share/templates/roundcubemail/calendar.inc.php.tpl b/share/templates/roundcubemail/calendar.inc.php.tpl +index 6ee1506..bcdc720 100644 +--- a/share/templates/roundcubemail/calendar.inc.php.tpl ++++ b/share/templates/roundcubemail/calendar.inc.php.tpl +@@ -7,7 +7,7 @@ + \$config['calendar_work_start'] = 6; + \$config['calendar_work_end'] = 18; + \$config['calendar_event_coloring'] = 0; +- \$config['calendar_caldav_url'] = 'http://' . \$_SERVER['HTTP_HOST'] . '/iRony/calendars/%u/%i'; ++ \$config['calendar_caldav_url'] = 'http://%h/iRony/calendars/%u/%i'; + + \$config['calendar_itip_smtp_server'] = ''; + \$config['calendar_itip_smtp_user'] = ''; +diff --git a/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl b/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl +new file mode 100644 +index 0000000..f19c86a +--- /dev/null ++++ b/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl +@@ -0,0 +1,20 @@ ++<?php ++ ++ ++// This option allows to set addressbooks priority or to disable some ++// of them. Disabled addressbooks will be not shown in the UI. Default: 0. ++// 0 - "Global address book(s) first". Use all address books, starting with the global (LDAP) ++// 1 - "Personal address book(s) first". Use all address books, starting with the personal (Kolab) ++// 2 - "Global address book(s) only". Use the global (LDAP) addressbook. Disable the personal. ++// 3 - "Personal address book(s) only". Use the personal (Kolab) addressbook(s). Disable the global. ++\$config['kolab_addressbook_prio'] = 0; ++ ++// Base URL to build fully qualified URIs to access address books via CardDAV ++// The following replacement variables are supported: ++// %h - Current HTTP host ++// %u - Current webmail user name ++// %n - Folder name ++// %i - Folder UUID ++\$config['kolab_addressbook_carddav_url'] = 'http://%h/iRony/addressbooks/%u/%i'; ++ ++?> +-- +1.9.1 +
View file
fix-php5.6-roundcube.patch
Added
@@ -0,0 +1,21 @@ +--- a/share/templates/roundcubemail/config.inc.php.tpl ++++ b/share/templates/roundcubemail/config.inc.php.tpl +@@ -214,4 +214,17 @@ + 'ssl_verify_peer' => false, + ); + ++ # required for php 5.6, see https://bbs.archlinux.org/viewtopic.php?id=193012 and http://php.net/manual/de/context.ssl.php ++ # production environment requires real security settings!!! ++ \$config['imap_conn_options']=array( ++ 'ssl'=>array( ++ 'verify_peer_name'=>false, ++ 'verify_peer'=>false, ++ 'allow_self_signed'=>true)); ++ \$config['smtp_conn_options']=array( ++ 'ssl'=>array( ++ 'verify_peer_name'=>false, ++ 'verify_peer'=>false, ++ 'allow_self_signed'=>true)); ++ + ?> +
View file
fix-setup-roundcube.patch
Added
@@ -0,0 +1,41 @@ +From 39cde352048254e3abaef60ef4abc1fba7845940 Mon Sep 17 00:00:00 2001 +From: Daniel Hoffend <dh@dotlan.net> +Date: Wed, 3 Jun 2015 00:52:30 +0200 +Subject: [PATCH] Don't overwrite config if template is not found - Fixes #5066 + +--- + pykolab/setup/setup_roundcube.py | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py +index accd5e0..1af0f9e 100644 +--- a/pykolab/setup/setup_roundcube.py ++++ b/pykolab/setup/setup_roundcube.py +@@ -134,15 +134,15 @@ def execute(*args, **kw): + level=8 + ) + +- fp = None +- if os.path.isdir('/etc/roundcubemail'): +- fp = open('/etc/roundcubemail/%s' % (want_file), 'w') +- elif os.path.isdir('/etc/roundcube'): +- fp = open('/etc/roundcube/%s' % (want_file), 'w') +- +- if not fp == None: +- fp.write(t.__str__()) +- fp.close() ++ fp = None ++ if os.path.isdir('/etc/roundcubemail'): ++ fp = open('/etc/roundcubemail/%s' % (want_file), 'w') ++ elif os.path.isdir('/etc/roundcube'): ++ fp = open('/etc/roundcube/%s' % (want_file), 'w') ++ ++ if not fp == None: ++ fp.write(t.__str__()) ++ fp.close() + + schema_files = [] + for root, directories, filenames in os.walk('/usr/share/doc/'): +-- +1.9.1 +
View file
debian.changelog
Changed
@@ -1,3 +1,21 @@ +pykolab (0.7.10-0~kolab4) unstable; urgency=low + + * Add missing kolab_addressbook config template for setup-kolab + + -- Daniel Hoffend <dh@dotlan.net> Tue, 02 Jun 2015 17:10:00 +0200 + +pykolab (0.7.10-0~kolab3) unstable; urgency=low + + * Debian Jessie: php 5.6: roundcubemail needs more configuration to connect to IMAP with self signed certificate (#5034) + + -- Timotheus Pokorra <timotheus@kolab.org> Fri, 08 May 2015 20:00:00 +0100 + +pykolab (0.7.10-0~kolab2) unstable; urgency=low + + * Debian Jessie: fix service names (#4688) for systemd we need to use different service names for kolabd (kolab-server) and httpd (apache2) for CentOS vs Debian + + -- Timotheus Pokorra <timotheus@kolab.org> Thu, 07 May 2015 20:00:00 +0100 + pykolab (0.7.10-0~kolab1) unstable; urgency=low * https://issues.kolab.org/buglist.cgi?target_milestone=0.7.10&product=pykolab
View file
debian.series
Changed
@@ -1,1 +1,5 @@ cyrus-imapd.conf-cert-paths.patch -p1 +debian-jessie-systemd.patch -p1 +fix-php5.6-roundcube.patch -p1 +fix-missing-template.patch -p1 +fix-setup-roundcube.patch -p1
View file
pykolab.dsc
Changed
@@ -2,7 +2,7 @@ Source: pykolab Binary: pykolab, kolab-cli, kolab-conf, kolab-saslauthd, kolab-server, kolab-telemetry, kolab-xml, wallace Architecture: all -Version: 0.7.10-0~kolab1 +Version: 0.7.10-0~kolab4 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> Homepage: http://www.kolab.org
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
.