# HG changeset patch # User Paul Boddie # Date 1400533695 -7200 # Node ID 57db43f0fc41d0429420687b2b384e5880c09571 Packaging for libkolab 0.5.0-0~kolab5 from upstream. diff -r 000000000000 -r 57db43f0fc41 debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/changelog Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,193 @@ +libkolab (0.5.0-0~kolab5) unstable; urgency=low + + * Work around php5dismod not being available on UCS 3.2 + + -- Jeroen van Meeuwen (Kolab Systems) Wed, 09 Apr 2014 09:00:00 +0100 + +libkolab (0.5.0-0~kolab4) unstable; urgency=low + + * Rebuild with php-kolabformat sorted out (#1632) + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 02 Mar 2014 09:00:00 +0100 + +libkolab (0.5.0-0~kolab3) unstable; urgency=low + + * add libcalendaring as dependancy to php-kolab, bug 2359 + + -- Timotheus Pokorra Thu, 07 Nov 2013 14:56:00 +0200 + +libkolab (0.5.0-0~kolab2) unstable; urgency=low + + * Correct versioned dependency on libkolabxml1 from (>> 0.9) to (>= 1.0) + + -- Jeroen van Meeuwen (Kolab Systems) Wed, 16 Oct 2013 09:56:00 +0200 + +libkolab (0.5.0-0~kolab1) unstable; urgency=low + + * Upstream release 0.5.0 + + -- Jeroen van Meeuwen (Kolab Systems) Mon, 14 Oct 2013 15:36:55 +0100 + +libkolab (0.5~dev20130521-1) unstable; urgency=low + + * Latest for Kolab 3.1 + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 08 Sep 2013 15:36:55 +0100 + +libkolab (0.4.2-3) unstable; urgency=low + + * Revert to single build, depend only on kdepimlibs. + * Update changelog + + -- Paul Klos Tue, 23 Apr 2013 20:45:12 +0200 + +libkolab (0.4.2-2) unstable; urgency=low + + * Update changelog + * Depend on libkolabxml0 (>= 0.8.4) + + -- Paul Klos Mon, 22 Apr 2013 18:01:30 +0200 + +libkolab (0.4.2-1) unstable; urgency=low + + * Imported Upstream version 0.4.2 + * Build the package twice: once for clients, once for servers. + The client build depends on kdepimlibs. The server build + depends on libcalendaring. + * Build-depend on kdelibs5-dev + * Build-depend on kdepimlibs5-dev + * Correct copy-paste errors in overrides + * Duplicate dh_install for client and server + * New binary package libkolab-kde for the libkolab that depends on KDE/Qt + * Add debug info + * Copy kolab.ini manually in rules file + * Copy kolab.ini after installing the other files + and make sure the path exists + * Fix install locations + * Depend on correct version of libkolabxml Add Conflicts for + libkolab0 and libkolab-kde0 + * More verbosity + * Correct library names + * Use server build output for all packages except libkolab-kde + * Correct dh_auto_build/dh_auto_install options + * Create separate client and server builds. + The server build is still called libkolab and depends on libcalendaring. + The client build is named libkolab-kde, and links against kdepimlibs. + * Set target names sooner. + Build failed because apparently the target name is required sooner. + * Correct library names + * Remove unneccesary build dependency on kdelibs5-dev. + * Create separate -dev, php and python packages. + All 4 packages (libkolab, libkolab-dev, php-kolab and python-kolab) + must be supplied in both a server and a KDE falvour. + * Correct long lines + * Call dh_install for all packages + * Add package conflicts + * Make php-kolab-kde depend on PHP api + * Correct dh_install call for python-kolab-kde + * Separate shlibs file for libkolab and libkolab-kde + * Updated loong descriptions + * Add LIB_INSTALL_DIR + * Update changelog + + -- Paul Klos Sun, 21 Apr 2013 23:19:24 +0200 + +libkolab (0.4.0-3) unstable; urgency=low + + * Prepare for transition into Debian proper + + -- Paul Klos Wed, 03 Apr 2013 00:04:34 +0200 + +libkolab (0.4.0-2) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Correct loading of libkolab PHP bindings modules + * Pull in php-kolabformat just to make sure kolabformat.so is loaded + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Mon, 26 Nov 2012 15:36:55 +0100 + +libkolab (0.4.0-1) unstable; urgency=low + + [ Jeroen van Meeuwen (Kolab Systems) ] + * Imported Upstream version 0.4.0 + * Update kolab.ini to match the new module from libkolab + + [ Jeroen van Meeuwen ] + + -- Jeroen van Meeuwen (Kolab Systems) Sun, 25 Nov 2012 06:53:46 -0500 + +libkolab (0.3.1-4) unstable; urgency=low + + [ Paul Klos ] + * Make the dependency on PHP API architecture-dependent. + * Corrected email address format in previous changelog entry. Set section to python for python-kolab. + * Create ini file for PHP module in /usr + * Manage kolab.ini file for PHP module from maintainer scripts. + * Solves Lintian warning maintainer-script-needs-depends-on-ucf. + * Solves Lintian warning libkolab source: unknown-field-in-dsc original-maintainer. + + [ Jeroen van Meeuwen ] + * Rebuild + + -- Paul Klos Wed, 24 Oct 2012 20:15:12 -0400 + +libkolab (0.3.1-3) unstable; urgency=low + + * Rebuild + + -- Jeroen van Meeuwen (Kolab Systems) Fri, 5 Oct 2012 20:09:01 +0100 + +libkolab (0.3.1-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Make PHP API dependency architecture-dependent. + * Corrected email address format in previous changelog entry. + * Set section to python for python-kolab. + + -- Paul Klos Wed, 17 Oct 2012 21:45:00 +0200 + +libkolab (0.3.1-2.1) UNRELEASED; urgency=low + + [ Michael Kiefer ] + * Non-maintainer upload. + * added possible dependency on phpapi-20100525+lfs to php-kolab + + -- Michael Kiefer Sat, 29 Sep 2012 23:27:43 +0200 + +libkolab (0.3.1-2) unstable; urgency=low + + * Fix typo in dependency on phpapi + + -- Jeroen van Meeuwen (Kolab Systems) Tue, 11 Sep 2012 16:32:27 +0200 + +libkolab (0.3.1-1) unstable; urgency=low + + * Build for Debian Wheezy + + -- Jeroen van Meeuwen Fri, 7 Sep 2012 15:53:19 +0100 + +libkolab (0.2.1-0ubuntu1) quantal; urgency=low + + * New upstream release + + -- Jonathan Riddell Thu, 19 Jul 2012 12:50:43 +0100 + +libkolab (0.2.0+repack1-0ubuntu2) quantal; urgency=low + + * Enable parallel building. + * Switch to debhelper compat level v9 which exports build flags. + * Add a watch file. + * Use pkgkde_symbolshelper dh addon. + * Update symbols file on amd64. + * Pass --fail-missing to dh_install. + + -- Felix Geyer Tue, 17 Jul 2012 19:48:01 +0200 + +libkolab (0.2.0+repack1-0ubuntu1) quantal; urgency=low + + * Initial release. + * Repack with licence files from upstream + + -- Jonathan Riddell Thu, 05 Jul 2012 12:55:57 +0100 diff -r 000000000000 -r 57db43f0fc41 debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/compat Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +8 diff -r 000000000000 -r 57db43f0fc41 debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/control Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,90 @@ +Source: libkolab +Section: libs +Priority: optional +Maintainer: Debian Kolab Maintainers +Uploaders: Jeroen van Meeuwen (Kolab Systems) , Paul Klos +Build-Depends: + cmake, + debhelper, + libboost-dev, + libboost-program-options-dev, + libboost-thread-dev, + libboost-system-dev, + libcalendaring-dev (>= 4.9.0), + libcurl4-gnutls-dev, + libkolabxml-dev (>= 1.0), + libossp-uuid-dev, + libqt4-dev, + libxerces-c-dev, + php5-cli, + php5-dev, + python-dev, + swig (>= 2.0) +X-Python-Version: >= 2.7 +Standards-Version: 3.9.3 +Homepage: http://git.kolab.org/libkolab + +Package: libkolab0 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, libkolabxml1 (>= 1.0) +Conflicts: libkolab-kde0 +Description: Maps KDE containers to Kolab formats + libkolab provides conversions from/to KDE containers, mime message + handling and facilities to read and write kolabv2 and kolabv3. + . + The libkolab package provides: + - kolabformatv2: Kolabformat v2 implementation moved here from kdepim-runtime + - kolabformat: Kolab object reading/writing (mime message + kolab-format). + Handles v2/v3 transparently. + - conversion: Conversions from KDE to Kolab containers and vice verca. + - mime: Mime message handling used by kolabformat + - icalendar: Exposes iCalendar functionality: + iCal reading/writing, iTip, iMip + - calendaring: Some general calendaring functions + . + The libkolab library belongs to the Kolab 3 server components. + +Package: php-kolab +Architecture: any +Depends: libkolab0 (= ${binary:Version}), + php-kolabformat, + ucf, + libcalendaring, + ${php:Depends}, + ${misc:Depends}, + ${shlibs:Depends} +Conflicts: php-kolab-kde +Description: PHP bindings for Kolab Library + This package provides the Kolab PHP modules icalendar and calendaring. + . + - The calendaring module provides some general calendaring functions + - The icalendar module exposes iCalendar functionality: + iCal reading/writing, iTip, iMip + +Package: python-kolab +Architecture: any +Section: python +Depends: libkolab0 (= ${binary:Version}), + python, + ${misc:Depends}, + ${shlibs:Depends} +Conflicts: python-kolab-kde +Description: Python bindings for Kolab Library + This package provides the Kolab Python modules icalendar and calendaring. + . + - The calendaring module provides some general calendaring functions + - The icalendar module exposes iCalendar functionality: + iCal reading/writing, iTip, iMip + +Package: libkolab-dev +Section: libdevel +Architecture: any +Depends: libkolab0 (= ${binary:Version}), + ${misc:Depends} +Conflicts: libkolab-kde-dev +Description: Development package for Kolab library + libkolab provides conversions from/to KDE containers, mime message + handling and facilities to read and write kolabv2 and kolabv3. + . + This package contains the development files for the library, + including headers and Libkolab cmake files. diff -r 000000000000 -r 57db43f0fc41 debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/copyright Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,78 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libkolab +Upstream-Contact: Christian Mollekopf +Source: http://git.kolab.org/libkolab + +Files: * +Copyright: 2011-2012 Christian Mollekopf + 2004 Bo Thorsen + 2009 + 2002-2004 Klarälvdalens Datakonsult AB +License: LGPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser 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 Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + . + On Debian systems a full copy of the LGPL 3 can be found at + /usr/share/common-licenses/LGPL-3 + +Files: kolab_export.h + kolabformat/v2helpers.h + kolabformatV2/journal.h + kolabformatV2/event.cpp + kolabformatV2/note.h + kolabformatV2/contact.cpp + kolabformatV2/contact.h + kolabformatV2/kolabbase.h + kolabformatV2/incidence.h + kolabformatV2/note.cpp + kolabformatV2/journal.cpp + kolabformatV2/kolabbase.cpp + kolabformatV2/event.h + kolabformatV2/task.h + kolabformatV2/incidence.cpp + kolabformatV2/distributionlist.h + kolabformatV2/distributionlist.cpp + kolabformatV2/task.cpp +Copyright: 2011-2012 Christian Mollekopf + 2004 Bo Thorsen + 2009 + 2002-2004 Klarälvdalens Datakonsult AB +License: LGPL-2+-QT-EXCEPTION + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + . + This library 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 + Library General Public License for more details. + . + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + . + In addition, as a special exception, the copyright holders give + permission to link the code of this program with any edition of + the Qt library by Trolltech AS, Norway (or with modified versions + of Qt that use the same license as Qt), and distribute linked + combinations including the two. You must obey the GNU General + Public License in all respects for all of the code used other than + Qt. If you modify this file, you may extend this exception to + your version of the file, but you are not obligated to do so. If + you do not wish to do so, delete this exception statement from + your version. + . + On Debian systems a full copy of the LGPL 2 can be found at + /usr/share/common-licenses/LGPL-2 diff -r 000000000000 -r 57db43f0fc41 debian/libkolab-dev.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab-dev.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,3 @@ +usr/lib/libkolab.so +usr/lib/cmake/Libkolab/*.cmake +usr/include/kolab/*.h diff -r 000000000000 -r 57db43f0fc41 debian/libkolab-kde-dev.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab-kde-dev.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,3 @@ +usr/lib/libkolab-kde.so +usr/lib/cmake/Libkolab/*.cmake +usr/include/kolab/*.h diff -r 000000000000 -r 57db43f0fc41 debian/libkolab-kde0.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab-kde0.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,2 @@ +usr/lib/libkolab-kde.so.0 +usr/lib/libkolab-kde.so.0.* diff -r 000000000000 -r 57db43f0fc41 debian/libkolab-kde0.lintian-overrides --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab-kde0.lintian-overrides Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,9 @@ +# hardening-check --verbose libkolab-dev.so.0 reports +# Fortify Source functions: no, only unprotected functions found! +# unprotected: memmove +# unprotected: memcpy +# Neither memmove nor memcpy occur in the source code, +# so overriding this warning +libkolab-kde0 binary: hardening-no-fortify-functions +# Using shlibs for now +libkolab-kde0 binary: no-symbols-control-file diff -r 000000000000 -r 57db43f0fc41 debian/libkolab-kde0.shlibs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab-kde0.shlibs Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +libkolab-kde 0 libkolab-kde0 (>= 0.4.0) diff -r 000000000000 -r 57db43f0fc41 debian/libkolab0.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab0.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,2 @@ +usr/lib/libkolab.so.0 +usr/lib/libkolab.so.0.* diff -r 000000000000 -r 57db43f0fc41 debian/libkolab0.lintian-overrides --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab0.lintian-overrides Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,9 @@ +# hardening-check --verbose libkolab.so.0 reports +# Fortify Source functions: no, only unprotected functions found! +# unprotected: memmove +# unprotected: memcpy +# Neither memmove nor memcpy occur in the source code, +# so overriding this warning +libkolab0 binary: hardening-no-fortify-functions +# Using shlibs for now +libkolab0 binary: no-symbols-control-file diff -r 000000000000 -r 57db43f0fc41 debian/libkolab0.shlibs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/libkolab0.shlibs Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +libkolab 0 libkolab0 (>= 0.4.0) diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab-kde.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab-kde.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,3 @@ +/usr/share/php5/kolab/kolab.ini usr/share/php5/kolab/ +usr/lib/php5/*/*.so +usr/share/php/kolab*.php diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,3 @@ +/usr/share/php5/kolab/kolab.ini usr/share/php5/kolab/ +usr/lib/php5/*/*.so +usr/share/php/kolab*.php diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.postinst Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,42 @@ +#!/bin/sh + +set -e + +#EXTRA# +#DEBHELPER# + +if [ -d "/etc/php5/mods-available" ]; then + inidir=/etc/php5/mods-available +else + inidir=/etc/php5/conf.d +fi + +module=kolab +package=php-${module} +inifile=${module}.ini +priority=31 + +if [ "$1" = "configure" ]; then + + # Register new conffile with UCF + ucf /usr/share/php5/${module}/${inifile} ${inidir}/${inifile} + ucfr --force ${package} ${inidir}/${inifile} + + # Move pre-extension manager conffile + dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/${inifile} ${inidir}/${inifile} 0.4.0~ -- "$@"; + + if [ -f "${inidir}/${inifile}.dpkg-new" ]; then + md5sum="$(md5sum ${inidir}/${inifile}.dpkg-new | sed -e 's/ .*//')" + old_md5sum="$(md5sum ${inidir}/${inifile} | sed -e 's/ .*//')" + if [ "$md5sum" = "$old_md5sum" ]; then + mv "${inidir}/${inifile}.dpkg-new" "${inidir}/${inifile}" + fi + fi + + # Enable the module + if [ -x "$(which php5enmod 2>/dev/null)" ]; then + php5enmod ${module}/${priority:-21} + fi +fi + +exit 0 diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.postrm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.postrm Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,44 @@ +#!/bin/sh + +set -e + +#EXTRA# +#DEBHELPER# + +if [ -d "/etc/php5/mods-available" ]; then + inidir=/etc/php5/mods-available/ +else + inidir=/etc/php5/conf.d/ +fi + +module=kolab +package=php-${module} +inifile=${module}.ini + +dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/${inifile} ${inidir}/${inifile} 0.3.0~ -- "$@"; + +# Query which package has this conffile registered +if which ucfq >/dev/null; then + ucfp=$(ucfq -w ${inidir}/${inifile} | cut -f 2 -d:) +fi + +# Only work with the config file if it still belongs to us +if test "$ucfp" = ${package}; then + if [ "$1" = "purge" ]; then + for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do + rm -f ${inidir}/${inifile}${ext} + done + + rm -f ${inidir}/${inifile} + + if which ucf >/dev/null; then + ucf --purge ${inidir}/${inifile} + fi + + if which ucfr >/dev/null; then + ucfr --purge ${package} ${inidir}/${inifile} + fi + fi +fi + +exit 0 diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.preinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.preinst Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +#EXTRA# +#DEBHELPER# + +inifile=kolab.ini + +dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/${inifile} /etc/php5/mods-available/${inifile} 0.3.0~ -- "$@"; + +exit 0 diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.prerm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.prerm Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +#EXTRA# +#DEBHELPER# + +if [ -d "/etc/php5/mods-available" ]; then + inidir=/etc/php5/mods-available/ +else + inidir=/etc/php5/conf.d/ +fi + +module=kolab +package=php-${module} +inifile=${module}.ini + + +if [ "$1" = "remove" ]; then + if [ -x "$(which php5dismod 2>/dev/null)" ]; then + php5dismod ${module} + elif [ -f "${inidir}/${inifile}" ]; then + rm -f "${inidir}/${inifile}" + fi +fi + +exit 0 diff -r 000000000000 -r 57db43f0fc41 debian/php-kolab.triggers --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/php-kolab.triggers Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +activate /etc/php5/conf.d diff -r 000000000000 -r 57db43f0fc41 debian/python-kolab-kde.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/python-kolab-kde.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +usr/lib*/python*/*-packages/* diff -r 000000000000 -r 57db43f0fc41 debian/python-kolab.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/python-kolab.install Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,1 @@ +usr/lib*/python*/*-packages/* diff -r 000000000000 -r 57db43f0fc41 debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/rules Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,47 @@ +#!/usr/bin/make -f + +PHPAPI := $(shell php-config --phpapi) +PYTHON_SITEARCH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') + +export DH_VERBOSE=1 +export DH_OPTIONS=-v + +export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" + +%: + dh $@ --parallel --with python2 + +override_dh_auto_configure: + dh_auto_configure -- \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DPHP_BINDINGS=ON \ + -DPHP_INSTALL_DIR=/usr/lib/php5/$(PHPAPI)/ \ + -DPHP4_EXECUTABLE=/usr/bin/php5 \ + -DPHP4_INCLUDE_PATH=/usr/include/php5/ \ + -DPYTHON_BINDINGS=ON \ + -DPYTHON_INSTALL_DIR=$(PYTHON_SITEARCH) \ + -DUSE_LIBCALENDARING=ON + +override_dh_gencontrol: + echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolab.substvars + dh_gencontrol + +override_dh_install: + # Install the PHP modules manually, because they depend on PHP the API version, + # which has to be determined dynamically, so we can't put it into an .install file. + mkdir -p debian/tmp/usr/share/php + mv debian/tmp/usr/lib/php5/$(PHPAPI)/kolabcalendaring.php debian/tmp/usr/share/php/kolabcalendaring.php + mv debian/tmp/usr/lib/php5/$(PHPAPI)/kolabicalendar.php debian/tmp/usr/share/php/kolabicalendar.php + mv debian/tmp/usr/lib/php5/$(PHPAPI)/kolabobject.php debian/tmp/usr/share/php/kolabobject.php + mv debian/tmp/usr/lib/php5/$(PHPAPI)/kolabshared.php debian/tmp/usr/share/php/kolabshared.php + # Put kolab.ini into place + mkdir -p debian/tmp/usr/share/php5/kolab + cp debian/usr/share/php5/kolab/kolab.ini debian/tmp/usr/share/php5/kolab/ + # Install the packages + dh_install --list-missing + +override_dh_auto_test: + dh_auto_test || : + +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info diff -r 000000000000 -r 57db43f0fc41 debian/usr/share/php5/kolab/kolab.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/usr/share/php5/kolab/kolab.ini Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,5 @@ +; Kolab libraries +extension=kolabobject.so +extension=kolabshared.so +extension=kolabcalendaring.so +extension=kolabicalendar.so diff -r 000000000000 -r 57db43f0fc41 debian/watch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/watch Mon May 19 23:08:15 2014 +0200 @@ -0,0 +1,3 @@ +version=3 +http://git.kolab.org/libkolab/ \ + /libkolab/snapshot/libkolab-([0-9\.]+)\.tar\.gz