# HG changeset patch # User Paul Boddie # Date 1392488903 -3600 # Node ID 70d037f8a9c9c9c2d0a3fef8e9b3c1ac4f711090 Packaging for pykolab 0.6.9 era code by Paul. diff -r 000000000000 -r 70d037f8a9c9 debian/README.Debian --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/README.Debian Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,28 @@ +pykolab for Debian +------------------ + +There is a bug in Wallace, see https://issues.kolab.org/show_bug.cgi?id=1469. + +For new installs, i.e. where setup-kolab has not been run, Wallace +will not be installed in the mail delivery chain. + +If you have already configured your Kolab server, you need to make this +change manually. + +In /etc/postfix/master.cf, adjust the line that says: + + -o content_filter=smtp-wallace:[127.0.0.1]:10026 + +to: + + -o content_filter= + +and restart postfix. + +Please refer to http://www.intevation.de/pipermail/kolab-users/2012-December/014175.html. + +The Wallace daemon is still started. While bug #1469 remains unfixed, +You may disable it by modifying /etc/default/wallace and +changing START=yes to START=no. + + -- Paul Klos Mon, 17 Dec 2012 21:03:17 +0100 diff -r 000000000000 -r 70d037f8a9c9 debian/README.source --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/README.source Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,5 @@ +pykolab for Debian +------------------ + + diff -r 000000000000 -r 70d037f8a9c9 debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/changelog Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,398 @@ +pykolab (0.6.9-0~kolab8.1) unstable; urgency=low + + * Non-maintainer upload. + * Removed various patches made superfluous by upstream changes. + + -- Paul Boddie Thu, 12 Dec 2013 23:09:41 +0100 + +pykolab (0.6.9-0~kolab8) unstable; urgency=low + + * Define build requirement on univention-config-dev | bash in pykolab.dsc as well + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 26 Nov 2013 20:00:00 +0100 + +pykolab (0.6.9-0~kolab7) unstable; urgency=low + + * Relocate patches for Debian/APT + * Ship patch to correct roundcube/syncroton database schema loading + * Fix #2585 and resort the otherwise unsorted storage order + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 24 Nov 2013 20:00:00 +0100 + +pykolab (0.6.9-0~kolab5) unstable; urgency=low + + * Add ucs/kolab.py + + -- Jeroen van Meeuwen (Kolab Systems) Fri, 22 Nov 2013 20:00:00 +0100 + +pykolab (0.6.9-0~kolab3) unstable; urgency=low + + * Do not remove setup_syncroton.py + * Trigger restarts necessary for cyrus-imapd and postfix + * New upstream version + * Test for a lock directory before touching lock files + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 21 Nov 2013 20:00:00 +0100 + +pykolab (0.6.8-0~kolab4) unstable; urgency=low + + * Make the kolab-saslauthd rundir a little more flexible + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 19 Nov 2013 20:00:00 +0100 + +pykolab (0.6.8-0~kolab3) unstable; urgency=low + + * Reduce requirement on python to >= 2.6 + * Reduce requirement on python-ldap + * Adjust spec used for Debian 6 (-based platforms) + + -- Jeroen van Meeuwen (Kolab Systems) Fri, 15 Nov 2013 20:00:00 +0100 + +pykolab (0.6.8-0~kolab1.5) unstable; urgency=low + + * fix path in postfix master.cf file, bug 2508 + + -- Timotheus Pokorra Wed, 13 Nov 2013 20:00:00 +0100 + +pykolab (0.6.8-0~kolab1.4) unstable; urgency=low + + * add missing dependency libpython2.7, fixes bug 2469, preventing installing setup-kolab ldap and other components separately + + -- Jan Kowalsky Thu, 08 Nov 2013 13:15:00 +0100 + +pykolab (0.6.8-0~kolab1.3) unstable; urgency=low + + * add even more missing files, translit.py and wap/*, fixes bug 2451 + + -- Timotheus Pokorra Wed, 30 Oct 2013 08:15:00 +0100 + +pykolab (0.6.8-0~kolab1.2) unstable; urgency=low + + * add missing imap_utf7 module, fixes bug 2425 + + -- Torsten Grote Fri, 25 Oct 2013 00:45:43 +0100 + +pykolab (0.6.8-0~kolab1.1) unstable; urgency=low + + * Fixing bug 2404, setup-kolab + + -- Timotheus Pokorra Thu, 24 Oct 2013 12:10:43 +0100 + +pykolab (0.6.8-0~kolab1) unstable; urgency=low + + * Imported Upstream version 0.6.8 + + -- Jeroen van Meeuwen (Kolab Systems) Wed, 16 Oct 2013 12:10:43 +0100 + +pykolab (0.6.6-1) unstable; urgency=low + + * Imported Upstream version 0.6.6 + + -- Jeroen van Meeuwen (Kolab Systems) Fri, 20 Sep 2013 12:10:43 +0100 + +pykolab (0.6.5-1) unstable; urgency=low + + * Imported Upstream version 0.6.5 + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 15 Sep 2013 12:10:43 +0100 + +pykolab (0.5.12-1) unstable; urgency=low + + * Imported Upstream version 0.5.12 + * Update changelog + * Remove installation line for non-existent freebusy templates + * Remove installation line for non-existent z-push templates + + -- Paul Klos Mon, 13 May 2013 23:02:33 +0200 + +pykolab (0.5.11-3) unstable; urgency=low + + * Remove Kolab syncroton setup for Debian, since + kolab-syncroton takes care of its database setup. + + -- Paul Klos Tue, 02 Apr 2013 21:53:11 +0200 + +pykolab (0.5.11-2) unstable; urgency=low + + * Make kolab-conf depend on python-augeas and python-cheetah (bug #1616) + + -- Paul Klos Thu, 21 Mar 2013 22:25:16 +0100 + +pykolab (0.5.11-1) unstable; urgency=low + + [ Paul Klos ] + * Imported upstream version 0.5.11 + + -- Paul Klos Wed, 09 Jan 2013 22:21:36 +0100 + +pykolab (0.5.10-2) unstable; urgency=low + + [ Paul Klos ] + * Correct wallace init script (solves #1404) + * Fix a couple of issues with the init script for kolab-server (kolabd) + - Check for running daemon failed, + so it was started every time the script was run + - Shutdown did not work + * Update changelog + * Disable Wallace + * Update changelog + * Add explanation to README file + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Drop the workaround for issue #1469 + + [ Jeroen van Meeuwen ] + + -- Paul Klos Tue, 25 Dec 2012 12:23:13 +0100 + +pykolab (0.5.10-1) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Imported Upstream version 0.5.10 + * Drop patches a part of 0.5.10 release + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 25 Dec 2012 12:10:43 +0100 + +pykolab (0.5.8-9) unstable; urgency=low + + * Temporarily disable Wallace because of bug #1469 + + -- Paul Klos Mon, 17 Dec 2012 20:48:29 +0100 + +pykolab (0.5.8-8) unstable; urgency=low + + * Fix issues in wallace and kolabd init script (#1404) + + -- Paul Klos Sun, 16 Dec 2012 15:45:56 +0100 + +pykolab (0.5.8-7) unstable; urgency=low + + * Move python-mysqldb from build-depends to pykolab depends + + -- Paul Klos Tue, 04 Dec 2012 18:11:07 +0100 + +pykolab (0.5.8-6) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Correct init scripts to not use --user / --group as parameters to start-stop-daemon, as that has the effect of verifying the ownership of PID files (#1401) + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 29 Nov 2012 14:44:45 +0100 + +pykolab (0.5.8-5) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Add dependency on python-mysqldb (#1394) + * Rebase the set of permissions on /etc/kolab/, /etc/kolab/kolab.conf, /var/lib/kolab/ and /var/log/kolab/ on to the permissions used on our reference platform (#1395, part i) + * Ship patch for #1396 + * Ship patch for #1397 + * Correct patch and do not change the tls cert paths at all on Debian + * Do not install the Kolab SMTP Access Policy executable in its own subdirectory + * Ship fix for #1398 + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 29 Nov 2012 14:13:50 +0100 + +pykolab (0.5.8-4) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Disable and shut down saslauthd before attempting to start kolab-saslauthd + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 25 Nov 2012 09:05:48 -0500 + +pykolab (0.5.8-3) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Import os before using it + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 25 Nov 2012 08:23:26 -0500 + +pykolab (0.5.8-2) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Patch unlinking mysql tmp my.cnf too early + * Update patches + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 25 Nov 2012 07:56:34 -0500 + +pykolab (0.5.8-1) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Imported Upstream version 0.5.8 + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 25 Nov 2012 06:43:44 -0500 + +pykolab (0.5.6-7) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Set tls_ca to the same self-generated certificate file (#1260) + * Correct service init script $NAME + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 22 Nov 2012 03:18:44 -0500 + +pykolab (0.5.6-6) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Same thing here, do not use --user/--group to start the Kolab daemon with + * Do not use --chuid/--group from start-stop-daemon - it somehow prevents the process from reading the configuration + * Correct the permissions on the SASL authentication daemon socket directory + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Wed, 21 Nov 2012 12:20:18 -0500 + +pykolab (0.5.6-4) unstable; urgency=low + * Remove dependency on libsasl2-modules-ldap from kolab-saslauthd + * Diasable wallaced upon installation and enable during kolab-setup + * Diasable kolabd upon installation and enable during kolab-setup + * Added debian/watch + * Add patch description (solves quilt-patch-missing-description warning) + + -- Paul Klos Wed, 14 Nov 2012 17:06:21 -0500 + +pykolab (0.5.6-3) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Remove obsolete patches, correct path for imapd.conf(5) certificate paths + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Wed, 07 Nov 2012 09:13:32 -0500 + +pykolab (0.5.6-2) unstable; urgency=low + + * /usr/lib*/python*/*-packages/pykolab/cli/telemetry/* + moved to kolab-telemetry + * removed various example files (debian/*.ex) + + -- Paul Klos Tue, 30 Oct 2012 17:35:41 +0200 + +pykolab (0.5.6-1) unstable; urgency=low + + * Imported Upstream version 0.5.6 + + -- Paul Klos Wed, 24 Oct 2012 18:43:17 +0200 + +pykolab (0.5.5-7) unstable; urgency=low + + * Depend on python-icalendar (pykolab, kolab-xml, wallace) + + -- Paul Klos Sat, 20 Oct 2012 22:53:51 +0200 + +pykolab (0.5.5-6.1) unstable; urgency=low + + * Non-maintainer upload. + * Trying to install wallace init.d script from wallace.init + + -- Paul Klos Tue, 02 Oct 2012 20:50:10 +0200 + +pykolab (0.5.5-5) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Add dependency on python-kolabformat (#1064) + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 02 Oct 2012 12:10:18 -0400 + +pykolab (0.5.5-4) unstable; urgency=low + + * pykolab is to depend on python-pyasn1-modules as well (#1058) + * Rename kolab-content-filter to its original name, wallace + * Include patch from upstream to fix the init scripts (#972) + * Update changelog for 0.5.5-4 + * Attempt to override the installinit target + + -- Jeroen van Meeuwen (Kolab Systems) Sat, 29 Sep 2012 13:41:22 +0200 + +pykolab (0.5.5-3) unstable; urgency=low + + * Fix postinst + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 27 Sep 2012 22:01:59 +0200 + +pykolab (0.5.5-2) unstable; urgency=low + + * Include /var/log/kolab + * Add /var/lib/kolab Add post installation file that is supposed + to add the users and groups needed, and fixes directory permissions + * Add a patch for the default user for dirsrv + + -- Jeroen van Meeuwen (Kolab Systems) Thu, 27 Sep 2012 19:45:05 +0200 + +pykolab (0.5.5-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Imported Upstream version 0.5.5 + + -- Paul Klos Thu, 22 Sep 2012 11:59:00 +0200 + +pykolab (0.5.4-3) unstable; urgency=low + + * Let's not depend on libsasl2 since it is a virtual package + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 11 Sep 2012 17:15:07 +0200 + +pykolab (0.5.4-2) unstable; urgency=low + + * Correct the path for setup-ds-admin on Debian + * Add another patch that is not upstreamed for the failure + to create a semaphore for the administrator server + * Add the plugins/ to the pykolab core package + * Make each package depend on the same version of the other + packages that fall out of this source package + * Depend on the actual sasl2 packages we require + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 11 Sep 2012 17:04:30 +0200 + +pykolab (0.5.4-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Imported Upstream version 0.5.4 + + -- Paul Klos Thu, 06 Sep 2012 16:47:00 +0200 + +pykolab (0.5.3-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Imported Upstream version 0.5.3 + + -- Paul Klos Fri, 24 Aug 2012 22:50:53 +0200 + +pykolab (0.4.14-2) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Install setup-kolab.py + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen Wed, 22 Aug 2012 16:57:44 +0200 + +pykolab (0.4.14-1) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Imported Upstream version 0.4.14 + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen Wed, 22 Aug 2012 16:03:53 +0200 + +pykolab (0.4.3-3) unstable; urgency=low + + * Initial version + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 13 May 2012 19:40:48 +0100 diff -r 000000000000 -r 70d037f8a9c9 debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/compat Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,1 @@ +7 diff -r 000000000000 -r 70d037f8a9c9 debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/control Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,112 @@ +Source: pykolab +Section: python +Priority: optional +Maintainer: Jeroen van Meeuwen (Kolab Systems) +Uploaders: Paul Klos +Build-Depends: autotools-dev, + debhelper (>= 7.0.50~), + dh-autoreconf, + gawk, + gettext, + intltool, + libcroco3, + libexpat1, + libglib2.0-0, + libglib2.0-dev, + libpcre3, + libssl-dev, + libunistring0, + libxml-parser-perl, + libxml2, + mime-support, + po-debconf, + python (>= 2.6~), + python-icalendar, + python-minimal, + python-nose, + python-support, + univention-config-dev | bash +Standards-Version: 3.9.3 +Homepage: http://www.kolab.org +Vcs-Git: git://git.kolab.org/git/pykolab +#Vcs-Browser: http://git.debian.org/?p=collab-maint/pykolab.git;a=summary + +Package: pykolab +Architecture: all +Depends: adduser (>= 3.11), + libpython2.7 | libpython2.6, + python, + python-icalendar, + python-mysqldb, + python-ldap, + python-pyasn1, + python-pyasn1-modules, + python-sqlalchemy, + ${misc:Depends}, + ${shlibs:Depends} +Description: Kolab Groupware daemon and utilities + Python implementation of the Kolab Groupware server + +Package: kolab-cli +Architecture: all +Depends: pykolab (= ${binary:Version}), + python, + python-augeas, + python-cheetah, + ${misc:Depends} +Description: Command-line utilities for Kolab + This package includes command-line utilities for Kolab Groupware + +Package: kolab-conf +Architecture: all +Depends: debconf, pykolab (= ${binary:Version}), ${python:Depends}, python, ${misc:Depends}, python-augeas, python-cheetah +Description: Configuration management for Kolab + This package includes configuration management utilities for + Kolab Groupware + +Package: kolab-saslauthd +Architecture: all +Depends: lsb-base (>= 3.0-6), + pykolab (= ${binary:Version}), + python, + sasl2-bin, + ${misc:Depends} +Description: SASL Authentication Daemon for Kolab + A multi-domain capable Kolab SASL Authentication daemon. + +Package: kolab-server +Architecture: all +Depends: kolab-conf, pykolab (= ${binary:Version}), python, ${misc:Depends}, lsb-base (>= 3.0-6) +Description: Kolab Groupware Server + Server daemon synchronizing the mutations between various + Kolab Groupware components. + +Package: kolab-telemetry +Architecture: all +Depends: kolab-cli (= ${binary:Version}), python, ${misc:Depends} +Description: Kolab Telemetry Logging Capabilities + Cyrus IMAP Telemetry logging handling capabilities for Kolab Groupware + +Package: kolab-xml +Architecture: all +Depends: pykolab (= ${binary:Version}), + python, + python-kolabformat, + ${misc:Depends}, + python-icalendar +Description: Kolab XML format wrapper for pykolab + Kolab Format XML bindings wrapper for pykolab + +Package: wallace +Architecture: all +Depends: kolab-conf, + pykolab (= ${binary:Version}), + kolab-xml (= ${binary:Version}), + python, + ${misc:Depends}, + lsb-base (>= 3.0-6), + python-icalendar +Replaces: kolab-content-filter +Provides: kolab-content-filter +Description: Kolab Content-Filter + This is the Kolab Content Filter, with plugins diff -r 000000000000 -r 70d037f8a9c9 debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/copyright Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pykolab +Upstream-Contact: Jeroen van Meeuwen (Kolab Systems) +Source: http://www.kolab.org + +Files: * +Copyright: Copyright (C) 2012 Kolab Systems - Jeroen van Leeuwen +License: GPL-3+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. diff -r 000000000000 -r 70d037f8a9c9 debian/docs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/docs Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,3 @@ +NEWS +README +README.tests diff -r 000000000000 -r 70d037f8a9c9 debian/gbp.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/gbp.conf Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,34 @@ +[DEFAULT] +builder = git-pbuilder +cleaner = fakeroot debian/rules clean +pristine-tar = True + +[git-buildpackage] +export-dir = ../build-area/ +#tarball-dir = ../tarballs/ + +[git-import-orig] +dch = False + + + +[git-dch] +#debian-branch = master + +[git-buildpackage] +#debian-branch = master + +# Let's use an export directory +#export-dir = ../builds + +# Ignore files / changes that have not been committed +# This is necessary because the build process removes +# plenty of files. +#ignore-new = True + +#pristine-tar = True + +# Tag after successful build +#tag = True + +#upstream-branch = upstream diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-cli.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-cli.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,5 @@ +usr/lib*/python*/*-packages/pykolab/cli/*.py +usr/lib*/python*/*-packages/pykolab/cli/wap/ +usr/lib*/python*/*-packages/pykolab/wap_client/ +usr/lib*/python*/*-packages/kolab/ +usr/sbin/kolab diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-conf.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-conf.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,6 @@ +usr/sbin/setup-kolab +usr/sbin/kolab-conf +usr/lib*/python*/*-packages/pykolab/setup/ +usr/share/kolab/templates/*.tpl +usr/share/kolab/templates/header_checks.* +usr/share/kolab/templates/roundcubemail/*.tpl diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-conf.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-conf.postinst Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +case "$1" in + # Establish basic settings used by other packages. + configure) + setup-kolab ldap --use-system-config + ;; +esac + +#DEBHELPER# diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-conf.templates --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-conf.templates Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,177 @@ +Template: kolab-conf/title-ldap +Type: title +_Description: Configuring Kolab LDAP settings + +Template: kolab-conf/ldap-server-selection +Type: string +_Description: Select an LDAP URI: + Please indicate the LDAP server to be used by the Kolab + components. (If this is given as localhost, no attempt will + be made to set up server instances or to configure services, + but the indicated server instance will be populated with + Kolab settings.) + +Template: kolab-conf/ldap-server-population +Type: boolean +_Description: Populate the LDAP server: + A different host is being used for LDAP services. Do you + want to populate the directory on this remote host? + +Template: kolab-conf/ldap-instances-found-available +Type: note +_Description: Existing directory instances found: + It seems 389 Directory Server has an existing instance + configured and that this instance is available using the + stored credentials. + . + To change the Kolab configuration information, should you + wish to do so, run the following command: + . + setup-kolab -S ldap --reset-ldap-config + . + If the intention is to start with a fresh directory, please + make sure that /etc/dirsrv/ and /var/lib/dirsrv/ are clean + so that this configuration process can be performed in + full. + +Template: kolab-conf/ldap-instances-found-unavailable +Type: note +_Description: Existing directory instances found: + It seems 389 Directory Server has an existing instance + configured but that this instance is not available using + the stored credentials. + . + To update the Kolab configuration with appropriate + information, run the following command: + . + setup-kolab -S ldap --reset-ldap-config + . + If the intention is to start with a fresh directory, please + make sure that /etc/dirsrv/ and /var/lib/dirsrv/ are clean + so that this configuration process can be performed in + full. + +Template: kolab-conf/ldap-directory-not-changed +Type: note +_Description: Existing directory not changed: + No further LDAP configuration will be performed due to + the presence of existing directory information. Only the + Kolab configuration file has been updated. + +Template: kolab-conf/ldap-setup-error +Type: note +_Description: Error during LDAP setup: + An error was detected in the setup procedure for the + directory server. This process will write the error and + output information to /var/log/kolab/setup.error.log and + /var/log/kolab/setup.out.log respectively. + +Template: kolab-conf/ldap-admin +Type: password +_Description: Administrator password for the directory server: + Please supply a password for the LDAP administrator user + 'admin', used to login to the graphical console of 389 + Directory server. + +Template: kolab-conf/ldap-manager +Type: password +_Description: Directory manager password for the directory server: + Please supply a password for the LDAP Directory Manager + user, which is the administrator user you will be using + to at least initially log in to the Web Admin, and that + Kolab uses to perform administrative tasks. + +Template: kolab-conf/dirsrv-user +Type: string +_Description: User to run the directory server: + Please choose the system user the directory service should + use to run under. It should be an existing, unprivileged, + local system POSIX account with no shell. + +Template: kolab-conf/dirsrv-group +Type: string +_Description: Group to run the directory server: + Please choose the system group the directory service should + use to run under. + +Template: kolab-conf/kolab-domain-namespace +Type: string +_Description: Domain namespace to use for Kolab: + This setup procedure plans to set up Kolab Groupware for + the following domain name space. This domain name is + obtained from the reverse DNS entry on your network + interface. Please confirm this is the appropriate domain + name space. + +Template: kolab-conf/kolab-root-dn +Type: string +_Description: Root dn to use for Kolab: + The standard root dn we composed for you as follows. + Please confirm this is the root dn you wish to use. + +Template: kolab-conf/cyrus-admin +Type: password +_Description: Cyrus administrator password: + Please supply a Cyrus administrator password. This + password is used by Kolab to execute administrative + tasks in Cyrus IMAP. You may also need the password + yourself to troubleshoot Cyrus IMAP and/or perform + other administrative tasks against Cyrus IMAP directly. + +Template: kolab-conf/ldap-kolab-service +Type: password +_Description: Kolab service password for the directory server: + Please supply a Kolab service account password. This + account is used by various services such as Postfix, + and Roundcube, as anonymous binds to the LDAP server + will not be allowed. + +Template: kolab-conf/title-mysql +Type: title +_Description: Configuring MySQL for Kolab use + +Template: kolab-conf/mysql-kolab +Type: password +_Description: Kolab database access password: + Please supply a password for the MySQL user 'kolab'. + This password will be used by Kolab services, such as + the Web Administration Panel. + +Template: kolab-conf/mysql-root-new +Type: password +_Description: New MySQL root password: + Please supply a root password for MySQL. This password + will be the administrative user for this MySQL server, + and it should be kept a secret. After this setup process + has completed, Kolab is going to discard and forget + about this password, but you will need it for + administrative tasks in MySQL. + +Template: kolab-conf/mysql-root-existing +Type: password +_Description: Current MySQL root password: + Please supply the root password for MySQL, so we can set + up user accounts for other components that use MySQL. + +Template: kolab-conf/title-php +Type: title +_Description: Configuring PHP for Kolab use + +Template: kolab-conf/php-timezone +Type: string +_Description: Timezone to be used by PHP: + Please supply the region-based timezone PHP should be using. + You have to use a continent or 'country/city' locality name + like 'Europe/Berlin'. Conventional time zones such as CEST + are not acceptable. + +Template: kolab-conf/title-roundcube +Type: title +_Description: Configuring Roundcube to use Kolab + +Template: kolab-conf/roundcube-password +Type: password +_Description: Roundcube database access password: + Please supply a password for the MySQL user 'roundcube'. + This password will be used by the Roundcube webmail + interface. diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-saslauthd.default --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-saslauthd.default Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,9 @@ +# +# Settings for kolab-saslauthd daemon +# + +# Should kolab-saslauthd run automatically on startup? (default: no) +START=no + +FLAGS="-l warning" +DAEMON_ARGS="--fork" diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-saslauthd.init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-saslauthd.init Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,169 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: kolab-saslauthd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Required-Start: $remote_fs $local_fs $network +# Required-Stop: $remote_fs $local_fs $network +# Short-Description: Start/Stop the Kolab SASL authentication daemon +# Description: The Kolab saslauthd is a server process which handles \ +# authentication requests on behalf of the cyrus-sasl library. +### END INIT INFO + +if [ -d "/run" ]; then + rundir="/run" +else + rundir="/var/run" +fi + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="The Kolab saslauthd is a server process which handles authentication requests on behalf of the cyrus-sasl library." # Introduce a short description here +NAME=kolab-saslauthd # Introduce the short server's name here +DAEMON=/usr/sbin/kolab-saslauthd # Introduce the server's location here +DAEMON_ARGS="--fork -l warning" # Arguments to run the daemon with +PIDFILE=${rundir}/$NAME/$NAME.pid +LOCKFILE=${rundir}/lock/$NAME +SCRIPTNAME=/etc/init.d/$NAME +DEFAULTSFILE=/etc/default/$NAME +SOCKETDIR=${rundir}/saslauthd +USER=kolab +GROUP=kolab-n + +# Read configuration variable file if it is present +[ -r $DEFAULTSFILE ] && . $DEFAULTSFILE + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + # If the daemon is not enabled, give the user a warning and stop. + if [ "$START" != "yes" ]; then + log_warning_msg "To enable $NAME, edit $DEFAULTSFILE and set START=yes" + return 0 + fi + + # Make sure the pid directory is there + if [ ! -d ${rundir}/$NAME ]; then + mkdir ${rundir}/$NAME + fi + chown $USER:$GROUP ${rundir}/$NAME + + # Make sure the socket directory is there + if [ ! -d $SOCKETDIR ]; then + mkdir $SOCKETDIR + fi + chown $USER:$GROUP $SOCKETDIR + chmod 0755 $SOCKETDIR + + start-stop-daemon \ + --start \ + --quiet \ + --pidfile $PIDFILE \ + --startas $DAEMON \ + --test > /dev/null \ + || return 1 + start-stop-daemon \ + --start \ + --quiet \ + --pidfile $PIDFILE \ + --startas $DAEMON \ + -- $FLAGS $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. + if [ -d "$(dirname $LOCKFILE)" ]; then + touch $LOCKFILE + fi +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon \ + --stop \ + --quiet \ + --retry=TERM/30/KILL/5 \ + --startas $DAEMON \ + --pidfile $PIDFILE + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + rm -f $LOCKFILE + return "$RETVAL" +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-saslauthd.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-saslauthd.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,2 @@ +usr/lib*/python*/*-packages/saslauthd/__init__.py +usr/sbin/kolab-saslauthd diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-server.default --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-server.default Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,10 @@ +# Configuration file for the Kolab Server daemon. +# +# See kolabd --help for more flags. +# + +# Should kolabd run automatically on startup? (default: no) +START=no + +FLAGS="-l warning" +DAEMON_ARGS="--fork --user kolab" diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-server.init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-server.init Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,154 @@ +#! /bin/bash +### BEGIN INIT INFO +# Provides: kolab-server +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Required-Start: $remote_fs $local_fs $network +# Required-Stop: $remote_fs $local_fs $network +# Short-Description: Start/Stop the Kolab Server daemon +# Description: The Kolab server is a server process which synchronizes +# LDAP, SQL and other authentication databases with Cyrus IMAP, +# Dovecot or other IMAP servers. +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="The Kolab server synchronizes LDAP, SQL and other authentication databases with Cyrus IMAP, Dovecot or other IMAP servers." # Introduce a short description here +NAME=kolabd # Introduce the short server's name here +DAEMON=/usr/sbin/kolabd # Introduce the server's location here +USER="kolab" +GROUP="kolab-n" +DAEMON_ARGS="--fork --user $USER" # Arguments to run the daemon with +FLAGS="-l warning" +PIDFILE=/run/$NAME/$NAME.pid +LOCKFILE=/run/lock/$NAME +DEFAULTSFILE=/etc/default/$NAME +SCRIPTNAME=/etc/init.d/$NAME + +# Read configuration variable file if it is present +[ -r /etc/default/kolab-server ] && . /etc/default/kolab-server + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + + # If the daemon is not enabled, give the user a warning and stop. + if [ "$START" != "yes" ]; then + log_warning_msg "To enable $NAME, edit $DEFAULTSFILE and set START=yes" + return 0 + fi + + if [ ! -d /run/$NAME ]; then + mkdir /run/$NAME + fi + chown $USER:$GROUP /run/$NAME + + start-stop-daemon \ + --start \ + --quiet \ + --startas $DAEMON \ + --name $NAME \ + --test > /dev/null \ + || return 1 + start-stop-daemon \ + --start \ + --quiet \ + --exec $DAEMON \ + --name $NAME \ + -- $FLAGS $DAEMON_ARGS --pid-file $PIDFILE \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. + touch $LOCKFILE +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon \ + --stop \ + --quiet \ + --retry=TERM/30/KILL/5 \ + --user $USER \ + --startas $DAEMON \ + --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + rm -f $LOCKFILE + return "$RETVAL" +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac +: diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-server.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-server.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,3 @@ +usr/lib*/python*/*-packages/kolabd/process.py +usr/lib*/python*/*-packages/kolabd/__init__.py +usr/sbin/kolabd diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-server.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-server.postinst Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +case "$1" in + # Establish basic settings used by this package. + configure) + setup-kolab kolabd --use-system-config + ;; +esac + +#DEBHELPER# diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-telemetry.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-telemetry.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,3 @@ +usr/sbin/kolab_parse_telemetry +usr/lib*/python*/*-packages/pykolab/cli/telemetry/*.py +usr/lib*/python*/*-packages/pykolab/telemetry.py diff -r 000000000000 -r 70d037f8a9c9 debian/kolab-xml.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/kolab-xml.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,1 @@ +usr/lib*/python*/*-packages/pykolab/xml/ diff -r 000000000000 -r 70d037f8a9c9 debian/patches/cyrus-imapd.conf-cert-paths.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/cyrus-imapd.conf-cert-paths.patch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,15 @@ +--- pykolab-0.6.5.orig/share/templates/imapd.conf.tpl 2013-08-22 15:26:51.000000000 +0100 ++++ pykolab-0.6.5/share/templates/imapd.conf.tpl 2013-09-15 14:54:18.834592778 +0100 +@@ -6,9 +6,9 @@ + sasl_pwcheck_method: auxprop saslauthd + sasl_mech_list: PLAIN LOGIN + allowplaintext: no +-tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem +-tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem +-tls_ca_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem ++tls_cert_file: /etc/ssl/private/cyrus-imapd.pem ++tls_key_file: /etc/ssl/private/cyrus-imapd.pem ++tls_ca_file: /etc/ssl/private/cyrus-imapd.pem + # uncomment this if you're operating in a DSCP environment (RFC-4594) + # qosmarking: af13 + auth_mech: pts diff -r 000000000000 -r 70d037f8a9c9 debian/patches/enable-kolabd.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/enable-kolabd.patch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,28 @@ +Enable kolabd after configuration is complete. +kolabd is disabled when installed. + +--- a/pykolab/setup/setup_kolabd.py ++++ b/pykolab/setup/setup_kolabd.py +@@ -27,6 +27,7 @@ + from pykolab import utils + from pykolab.constants import * + from pykolab.translate import _ ++from augeas import Augeas + + log = pykolab.getLogger('pykolab.setup') + conf = pykolab.getConf() +@@ -62,6 +63,14 @@ + conf.cfg_parser.write(fp) + fp.close() + ++ if os.path.isfile('/etc/default/kolab-server'): ++ myaugeas = Augeas() ++ setting = os.path.join('/files/etc/default/kolab-server','START') ++ if not myaugeas.get(setting) == 'yes': ++ myaugeas.set(setting,'yes') ++ myaugeas.save() ++ myaugeas.close() ++ + if os.path.isfile('/bin/systemctl'): + subprocess.call(['/bin/systemctl', 'restart', 'kolabd.service']) + elif os.path.isfile('/sbin/service'): diff -r 000000000000 -r 70d037f8a9c9 debian/patches/enable-wallace.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/enable-wallace.patch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,17 @@ +--- pykolab-0.6.5.orig/pykolab/setup/setup_mta.py 2013-08-22 15:26:51.000000000 +0100 ++++ pykolab-0.6.5/pykolab/setup/setup_mta.py 2013-09-15 14:55:48.455545959 +0100 +@@ -395,6 +395,14 @@ + myaugeas.save() + myaugeas.close() + ++ if os.path.isfile('/etc/default/wallace'): ++ myaugeas = Augeas() ++ setting = os.path.join('/files/etc/default/wallace','START') ++ if not myaugeas.get(setting) == 'yes': ++ myaugeas.set(setting,'yes') ++ myaugeas.save() ++ myaugeas.close() ++ + if os.path.isfile('/bin/systemctl'): + subprocess.call(['systemctl', 'restart', 'postfix.service']) + subprocess.call(['systemctl', 'restart', 'amavisd.service']) diff -r 000000000000 -r 70d037f8a9c9 debian/patches/master.cf.tpl.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/master.cf.tpl.patch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,25 @@ +--- pykolab-orig/share/templates/master.cf.tpl 2013-11-13 19:58:16.000000000 +0100 ++++ pykolab/share/templates/master.cf.tpl 2013-11-13 19:59:49.000000000 +0100 +@@ -105,17 +105,17 @@ + -o smtpd_authorized_xforward_hosts=127.0.0.0/8 + + recipient_policy unix - n n - - spawn +- user=kolab-n argv=/usr/libexec/postfix/kolab_smtp_access_policy --verify-recipient ++ user=kolab-n argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-recipient + + recipient_policy_incoming unix - n n - - spawn +- user=kolab-n argv=/usr/libexec/postfix/kolab_smtp_access_policy --verify-recipient --allow-unauthenticated ++ user=kolab-n argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-recipient --allow-unauthenticated + + sender_policy unix - n n - - spawn +- user=kolab-n argv=/usr/libexec/postfix/kolab_smtp_access_policy --verify-sender ++ user=kolab-n argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-sender + + sender_policy_incoming unix - n n - - spawn +- user=kolab-n argv=/usr/libexec/postfix/kolab_smtp_access_policy --verify-sender --allow-unauthenticated ++ user=kolab-n argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-sender --allow-unauthenticated + + submission_policy unix - n n - - spawn +- user=kolab-n argv=/usr/libexec/postfix/kolab_smtp_access_policy --verify-sender --verify-recipient ++ user=kolab-n argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-sender --verify-recipient + diff -r 000000000000 -r 70d037f8a9c9 debian/patches/remove-syncroton-setup.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/remove-syncroton-setup.patch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,11 @@ +diff -ur pykolab-0.6.5.orig/pykolab/Makefile.am pykolab-0.6.5/pykolab/Makefile.am +--- pykolab-0.6.5.orig/pykolab/Makefile.am 2013-08-22 15:26:51.000000000 +0100 ++++ pykolab-0.6.5/pykolab/Makefile.am 2013-09-15 14:52:42.164643662 +0100 +@@ -73,7 +73,6 @@ + setup/setup_mysql.py \ + setup/setup_php.py \ + setup/setup_roundcube.py \ +- setup/setup_syncroton.py \ + setup/__init__.py + + pykolab_wapclientdir = $(pythondir)/$(PACKAGE)/wap_client diff -r 000000000000 -r 70d037f8a9c9 debian/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/series Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,1 @@ +cyrus-imapd.conf-cert-paths.patch diff -r 000000000000 -r 70d037f8a9c9 debian/po/POTFILES.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/po/POTFILES.in Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,1 @@ +[type: gettext/rfc822deb] kolab-conf.templates diff -r 000000000000 -r 70d037f8a9c9 debian/po/templates.pot --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/po/templates.pot Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,233 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: pykolab\n" +"Report-Msgid-Bugs-To: pykolab@packages.debian.org\n" +"POT-Creation-Date: 2013-12-17 23:23+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: title +#. Description +#: ../kolab-conf.templates:1001 +msgid "Configuring Kolab LDAP settings" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:2001 +msgid "Administrator password for the directory server:" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:2001 +msgid "" +"Please supply a password for the LDAP administrator user 'admin', used to " +"login to the graphical console of 389 Directory server." +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:3001 +msgid "Directory manager password for the directory server:" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:3001 +msgid "" +"Please supply a password for the LDAP Directory Manager user, which is the " +"administrator user you will be using to at least initially log in to the Web " +"Admin, and that Kolab uses to perform administrative tasks." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:4001 +msgid "User to run the directory server:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:4001 +msgid "" +"Please choose the system user the directory service should use to run under. " +"It should be an existing, unprivileged, local system POSIX account with no " +"shell." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:5001 +msgid "Group to run the directory server:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:5001 +msgid "" +"Please choose the system group the directory service should use to run under." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:6001 +msgid "Domain namespace to use for Kolab:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:6001 +msgid "" +"This setup procedure plans to set up Kolab Groupware for the following " +"domain name space. This domain name is obtained from the reverse DNS entry " +"on your network interface. Please confirm this is the appropriate domain " +"name space." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:7001 +msgid "Root dn to use for Kolab:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:7001 +msgid "" +"The standard root dn we composed for you as follows. Please confirm this is " +"the root dn you wish to use." +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:8001 +msgid "Cyrus administrator password:" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:8001 +msgid "" +"Please supply a Cyrus administrator password. This password is used by Kolab " +"to execute administrative tasks in Cyrus IMAP. You may also need the " +"password yourself to troubleshoot Cyrus IMAP and/or perform other " +"administrative tasks against Cyrus IMAP directly." +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:9001 +msgid "Kolab service password for the directory server:" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:9001 +msgid "" +"Please supply a Kolab service account password. This account is used by " +"various services such as Postfix, and Roundcube, as anonymous binds to the " +"LDAP server will not be allowed." +msgstr "" + +#. Type: title +#. Description +#: ../kolab-conf.templates:10001 +msgid "Configuring MySQL for Kolab use" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:11001 +msgid "Kolab database access password:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:11001 +msgid "" +"Please supply a password for the MySQL user 'kolab'. This password will be " +"used by Kolab services, such as the Web Administration Panel." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:12001 +msgid "New MySQL root password:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:12001 +msgid "" +"Please supply a root password for MySQL. This password will be the " +"administrative user for this MySQL server, and it should be kept a secret. " +"After this setup process has completed, Kolab is going to discard and forget " +"about this password, but you will need it for administrative tasks in MySQL." +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:13001 +msgid "Current MySQL root password:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:13001 +msgid "" +"Please supply the root password for MySQL, so we can set up user accounts " +"for other components that use MySQL." +msgstr "" + +#. Type: title +#. Description +#: ../kolab-conf.templates:14001 +msgid "Configuring PHP for Kolab use" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:15001 +msgid "Timezone to be used by PHP:" +msgstr "" + +#. Type: string +#. Description +#: ../kolab-conf.templates:15001 +msgid "" +"Please supply the region-based timezone PHP should be using. You have to use " +"a continent or 'country/city' locality name like 'Europe/Berlin'. " +"Conventional time zones such as CEST are not acceptable." +msgstr "" + +#. Type: title +#. Description +#: ../kolab-conf.templates:16001 +msgid "Configuring Roundcube to use Kolab" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:17001 +msgid "Roundcube database access password:" +msgstr "" + +#. Type: password +#. Description +#: ../kolab-conf.templates:17001 +msgid "" +"Please supply a password for the MySQL user 'roundcube'. This password will " +"be used by the Roundcube webmail interface." +msgstr "" diff -r 000000000000 -r 70d037f8a9c9 debian/pykolab.dirs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/pykolab.dirs Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,2 @@ +var/lib/kolab +var/log/kolab diff -r 000000000000 -r 70d037f8a9c9 debian/pykolab.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/pykolab.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,27 @@ +etc/kolab/kolab.conf +usr/lib/pykolab/postfix/kolab_smtp_access_policy usr/lib/postfix/ +usr/lib*/python*/*-packages/cyruslib.py +usr/lib*/python*/*-packages/pykolab/__init__.py +usr/lib*/python*/*-packages/pykolab/auth/__init__.py +usr/lib*/python*/*-packages/pykolab/auth/ldap/__init__.py +usr/lib*/python*/*-packages/pykolab/auth/ldap/auth_cache.py +usr/lib*/python*/*-packages/pykolab/auth/ldap/cache.py +usr/lib*/python*/*-packages/pykolab/auth/ldap/syncrepl.py +usr/lib*/python*/*-packages/pykolab/base.py +usr/lib*/python*/*-packages/pykolab/conf/__init__.py +usr/lib*/python*/*-packages/pykolab/conf/defaults.py +usr/lib*/python*/*-packages/pykolab/constants.py +usr/lib*/python*/*-packages/pykolab/errors.py +usr/lib*/python*/*-packages/pykolab/imap_utf7.py +usr/lib*/python*/*-packages/pykolab/imap/__init__.py +usr/lib*/python*/*-packages/pykolab/imap/cyrus.py +usr/lib*/python*/*-packages/pykolab/introspection.py +usr/lib*/python*/*-packages/pykolab/logger.py +usr/lib*/python*/*-packages/pykolab/plugins/__init__.py +usr/lib*/python*/*-packages/pykolab/plugins/defaultfolders/__init__.py +usr/lib*/python*/*-packages/pykolab/plugins/dynamicquota/__init__.py +usr/lib*/python*/*-packages/pykolab/plugins/recipientpolicy/__init__.py +usr/lib*/python*/*-packages/pykolab/translate.py +usr/lib*/python*/*-packages/pykolab/translit.py +usr/lib*/python*/*-packages/pykolab/utils.py +usr/share/locale/*/LC_MESSAGES/pykolab.mo diff -r 000000000000 -r 70d037f8a9c9 debian/pykolab.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/pykolab.postinst Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,57 @@ +#!/bin/bash + +# From http://www.debian.org/doc/manuals/securing-debian-howto/ch9.en.html#s-bpp-lower-privs + +set -e + +case "$1" in + install|upgrade|configure) + + # Add the kolab user and group accounts + getent group kolab &>/dev/null || addgroup --quiet --system --gid 412 kolab &>/dev/null + getent passwd kolab &>/dev/null || \ + adduser --quiet --system \ + --uid 412 --gid 412 --disabled-password \ + --home /var/lib/kolab \ + --gecos "Kolab System Account" kolab &>/dev/null || : + + gpasswd -a www-data kolab >/dev/null 2>&1 || : + + getent group kolab-n &>/dev/null || addgroup --quiet --system --gid 413 kolab-n &>/dev/null + getent passwd kolab-n &>/dev/null || \ + adduser --quiet --system \ + --uid 413 --gid 413 --disabled-password \ + --home /var/lib/kolab \ + --gecos "Kolab System Account (N)" kolab-n &>/dev/null || : + gpasswd -a kolab-n kolab &>/dev/null || : + + getent group kolab-r &>/dev/null || addgroup --system --gid 414 kolab-r &>/dev/null + getent passwd kolab-r &>/dev/null || \ + adduser --quiet --system \ + --uid 414 --gid 414 --disabled-password \ + --home /var/lib/kolab \ + --gecos "Kolab System Account (R)" kolab-r &>/dev/null || : + + # Re-base the POSIX permission set on to the reference platform + chown root:root /etc/kolab + chmod 755 /etc/kolab + chown kolab-n:kolab /etc/kolab/kolab.conf + chmod 640 /etc/kolab/kolab.conf + + chown -R kolab:kolab-n /var/lib/kolab /var/log/kolab + chmod 775 /var/lib/kolab /var/log/kolab + + if dpkg-statoverride --list /var/lib/kolab >/dev/null; then + dpkg-statoverride --remove /var/lib/kolab + fi + + if dpkg-statoverride --list /var/log/kolab >/dev/null; then + dpkg-statoverride --remove /var/log/kolab + fi + + dpkg-statoverride --update --add kolab kolab-n 775 /var/lib/kolab + dpkg-statoverride --update --add kolab kolab-n 775 /var/log/kolab + ;; +esac + +#DEBHELPER# diff -r 000000000000 -r 70d037f8a9c9 debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/rules Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ --with python2 --with autotools-dev --with autoreconf + +override_dh_auto_test: + dh_auto_test || echo “ignoring test failure” + +override_dh_install: + #dh_install --list-missing + dh_install + if [ -x "$$(which univention-install-config-registry 2>/dev/null)" ]; then \ + mkdir -p $(CURDIR)/debian/pykolab/usr/share/pyshared/pykolab/ucs/ ; \ + cp -a ucs/listener.py $(CURDIR)/debian/pykolab/usr/share/pyshared/pykolab/ucs/listener.py ; \ + fi + dh_installdebconf + diff -r 000000000000 -r 70d037f8a9c9 debian/source/format --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/source/format Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,1 @@ +3.0 (quilt) diff -r 000000000000 -r 70d037f8a9c9 debian/wallace.default --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/wallace.default Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,10 @@ +# Configuration file for the Kolab Server daemon Wallace. +# +# See wallaced --help for more flags. +# + +# Should wallaced run automatically on startup? (default: no) +START=no + +FLAGS="-l warning" +DAEMON_ARGS="--fork --user kolab" diff -r 000000000000 -r 70d037f8a9c9 debian/wallace.init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/wallace.init Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,156 @@ +#! /bin/bash +# +### BEGIN INIT INFO +# Provides: wallace +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Required-Start: $remote_fs $local_fs $network +# Required-Stop: $remote_fs $local_fs $network +# Short-Description: Start/Stop the Kolab Server daemon +# Description: The Kolab Wallace server daemon is a content filtering daemon. +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="The Kolab Wallace server daemon is a content filtering daemon" # Introduce a short description here +NAME=wallace # Introduce the short server's name here +PROG_NAME=wallaced +DAEMON=/usr/sbin/$PROG_NAME # Introduce the server's location here +DAEMON_ARGS="--fork -l warning" # Arguments to run the daemon with +PIDFILE=/run//$PROG_NAME/$PROG_NAME.pid +LOCKFILE=/run/lock/$PROG_NAME +SCRIPTNAME=/etc/init.d/$NAME +DEFAULTSFILE=/etc/default/$NAME +USER="kolab" +GROUP="kolab-n" + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + + # If the daemon is not enabled, give the user a warning and stop. + if [ "$START" != "yes" ]; then + log_warning_msg "To enable $NAME, edit $DEFAULTSFILE and set START=yes" + return 0 + fi + + # Make sure the pid directory is there + if [ ! -d /run/$PROG_NAME ]; then + mkdir /run/$PROG_NAME + fi + chown $USER:$GROUP /run/$PROG_NAME + + start-stop-daemon \ + --start \ + --quiet \ + --pidfile $PIDFILE \ + --startas $DAEMON \ + --test > /dev/null \ + || return 1 + start-stop-daemon \ + --start \ + --quiet \ + --pidfile $PIDFILE \ + --startas $DAEMON \ + -- $FLAGS $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. + touch $LOCKFILE +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon \ + --stop \ + --quiet \ + --retry=TERM/30/KILL/5 \ + --startas $DAEMON \ + --pidfile $PIDFILE \ + --name $PROG_NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --user $USER --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + rm -f $LOCKFILE + return "$RETVAL" +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff -r 000000000000 -r 70d037f8a9c9 debian/wallace.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/wallace.install Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,2 @@ +usr/sbin/wallaced +usr/lib*/python*/*-packages/wallace/ diff -r 000000000000 -r 70d037f8a9c9 debian/wallace.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/wallace.postinst Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash + +#DEBHELPER# + +set -e + +case "$1" in + install|upgrade|configure) + + mkdir -p /var/spool/pykolab/wallace && chown -R kolab:kolab-n /var/spool/pykolab + ;; +esac diff -r 000000000000 -r 70d037f8a9c9 debian/watch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/watch Sat Feb 15 19:28:23 2014 +0100 @@ -0,0 +1,3 @@ +version=3 +http://git.kolab.org/pykolab/ \ + /pykolab/snapshot/pykolab-([0-9\.]+)\.tar\.gz