Projects
Kolab:16:Enterprise
libkolabxml
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 14
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +libkolabxml (1.2.0-0~kolab4) unstable; urgency=low + + * Bindings for multiple versions of Plesk-provided PHP + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Sun, 10 Nov 2019 16:38:05 +0200 + libkolabxml (1.2.0-0~kolab3) unstable; urgency=low * Debian 10 support
View file
debian.control
Changed
@@ -3,20 +3,26 @@ Priority: optional Maintainer: Debian Kolab Maintainers <pkg-kolab-devel@lists.alioth.debian.org> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> -Build-Depends: cmake, - debhelper, - libboost-dev, - libboost-system-dev, - libboost-thread-dev, - libcurl4-gnutls-dev, - libossp-uuid-dev, - libqt4-dev, - libxerces-c-dev, - php-cgi | php5-cli, - php-dev | php5-dev, - python-dev, - swig (>= 2.0), - xsdcxx +Build-Depends: cmake, + debhelper, + libboost-dev, + libboost-system-dev, + libboost-thread-dev, + libcurl4-gnutls-dev, + libossp-uuid-dev, + libqt4-dev, + libxerces-c-dev, + php-cgi | php5-cli, + php-dev | php5-dev, + plesk-php56-dev | bash, + plesk-php70-dev | bash, + plesk-php71-dev | bash, + plesk-php72-dev | bash, + plesk-php73-dev | bash, + psa | bash, + python-dev, + swig (>= 2.0), + xsdcxx X-Python-Version: >= 2.7 Standards-Version: 3.9.3 Homepage: http://git.kolab.org/libkolabxml
View file
debian.rules
Changed
@@ -5,6 +5,8 @@ PHPINC := $(shell php-config --include-dir) PYTHON_SITEARCH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') +PHP_VERSIONS=7.3 7.2 7.1 7.0 5.6 + # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DH_OPTIONS=-v @@ -17,13 +19,82 @@ override_dh_gencontrol: echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolabformat.substvars + + if -f /etc/plesk-release ; then \ + for version in $(PHP_VERSIONS) ; do \ + if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \ + continue ; \ + fi ; \ + shver=$$(echo $${version} | sed -e 's/\.//g') ; \ + echo "" >> debian/control ; \ + echo "Package: plesk-php$${shver}-kolabformat" >> debian/control ; \ + echo "Architecture: amd64" >> debian/control ; \ + echo "Depends: libkolabxml1v5, plesk-php$${shver}" >> debian/control ; \ + echo "Description: Kolab format bindings for Plesk PHP $${version}" >> debian/control ; \ + echo "" >> debian/control ; \ + sed -i -e "/Files:/ i\ + plesk-php$$(echo $${version} | sed -e 's/\.//g')-kolabformat deb web extra" debian/control ; \ + echo "opt/plesk/php/$${version}/lib/php/modules/*kolabformat.so" >> debian/plesk-php$${shver}-kolabformat.install ; \ + echo "opt/plesk/php/$${version}/share/php/kolabformat.php" >> debian/plesk-php$${shver}-kolabformat.install ; \ + done ; \ + fi + dh_gencontrol +override_dh_auto_build: + if -f /etc/plesk-release ; then \ + for version in $(PHP_VERSIONS) ; do \ + if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \ + continue ; \ + fi ; \ + if $$(/opt/plesk/php/$${version}/bin/php-config --vernum) -gt 70000 ; then \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php5 -o/g' src/php/CMakeLists.txt ; \ + fi ; \ + grep kolabformat.i src/php/CMakeLists.txt ; \ + dh_auto_build --builddirectory php-$${version} ; \ + done ; \ + fi + + if $$(php-config --vernum) -gt 70000 ; then \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php5 -o/g' src/php/CMakeLists.txt ; \ + fi + + dh_auto_build + override_dh_auto_configure: + echo 9 > debian/compat + if -f /etc/plesk-release ; then \ + for version in $(PHP_VERSIONS) ; do \ + if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \ + continue ; \ + fi ; \ + if $$(/opt/plesk/php/$${version}/bin/php-config --vernum) -gt 70000 ; then \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php5 -o/g' src/php/CMakeLists.txt ; \ + fi ; \ + grep kolabformat.i src/php/CMakeLists.txt ; \ + dh_auto_configure --builddirectory php-$${version} -- \ + -DSWIG=/usr/bin/swig \ + -DPHP_BINDINGS=ON \ + -DPHP_INCLUDE_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --include-dir) \ + -DPHP_CONFIG_EXECUTABLE=/opt/plesk/bin/$${version}/bin/php-config \ + -DPHP_INSTALL_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --extension-dir) ; \ + done ; \ + fi + if $$(php-config --vernum) -gt 70000 ; then \ - sed -i -e 's/-c++ -php/-c++ -php7/g' src/php/CMakeLists.txt ; \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \ fi + grep kolabformat.i src/php/CMakeLists.txt + dh_auto_configure -- \ -DSWIG=/usr/bin/swig \ -DPHP_BINDINGS=ON \ @@ -37,8 +108,6 @@ echo "debian/kolabformat.ini etc/php/7.3/mods-available" >> debian/php-kolabformat.install ; \ elif -d "/etc/php/7.2/mods-available/" ; then \ echo "debian/kolabformat.ini etc/php/7.2/mods-available" >> debian/php-kolabformat.install ; \ - elif -d "/etc/php/7.1/mods-available/" ; then \ - echo "debian/kolabformat.ini etc/php/7.1/mods-available" >> debian/php-kolabformat.install ; \ elif -d "/etc/php/7.0/mods-available/" ; then \ echo "debian/kolabformat.ini etc/php/7.0/mods-available" >> debian/php-kolabformat.install ; \ elif -d "/etc/php/mods-available/" ; then \ @@ -47,4 +116,20 @@ echo "debian/kolabformat.ini etc/php5/mods-available" >> debian/php-kolabformat.install ; \ fi mv debian/tmp/usr/lib/php*/$(PHPAPI)/kolabformat.php debian/tmp/usr/share/php/kolabformat.php + + if -f /etc/plesk-release ; then \ + for version in $(PHP_VERSIONS) ; do \ + if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \ + continue ; \ + fi ; \ + shver=$$(echo $${version} | sed -e 's/\.//g') ; \ + echo "debian/kolabformat.ini opt/plesk/php/$${version}/etc/php.d" >> debian/plesk-php$${shver}-kolabformat.install ; \ + make -C php-$${version} install DESTDIR=$(PWD)/debian/plesk-php$${shver}-kolabformat/ ; \ + mkdir -p debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/share/php/ ; \ + mv debian/plesk-php$${shver}-kolabformat$$(/opt/plesk/php/$${version}/bin/php-config --extension-dir)/kolabformat.php \ + debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/share/php/kolabformat.php ; \ + rm -rf debian/plesk-php$${shver}-kolabformat/usr/ ; \ + done ; \ + fi + dh_install --list-missing
View file
libkolabxml.dsc
Changed
@@ -2,30 +2,36 @@ Source: libkolabxml Binary: libkolabxml1v5, php-kolabformat, python-kolabformat, libkolabxml-dev Architecture: any -Version: 1.2.0-0~kolab3 +Version: 1.2.0-0~kolab4 Maintainer: Kolab Systems AG <contact@kolabsystems.com> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Homepage: http://git.kolab.org/libkolabxml Standards-Version: 3.9.3 -Build-Depends: cmake, - debhelper, - libboost-dev, - libboost-system-dev, - libboost-thread-dev, - libcurl4-gnutls-dev, - libossp-uuid-dev, - libqt4-dev, - libxerces-c-dev, - php-cgi | php5-cli, - php-dev | php5-dev, - python-dev, - swig (>= 2.0), - xsdcxx -Package-List: +Build-Depends: cmake, + debhelper, + libboost-dev, + libboost-system-dev, + libboost-thread-dev, + libcurl4-gnutls-dev, + libossp-uuid-dev, + libqt4-dev, + libxerces-c-dev, + php-cgi | php5-cli, + php-dev | php5-dev, + plesk-php56-dev | bash, + plesk-php70-dev | bash, + plesk-php71-dev | bash, + plesk-php72-dev | bash, + plesk-php73-dev | bash, + psa | bash, + python-dev, + swig (>= 2.0), + xsdcxx +Package-List: libkolabxml-dev deb libdevel optional libkolabxml1v5 deb libs optional php-kolabformat deb libs optional python-kolabformat deb python optional -Files: +Files: 00000000000000000000000000000000 0 libkolabxml-1.2.0.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
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
.