Projects
Kolab:16:Enterprise
libkolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +libkolab (2.0~dev20151230-0~kolab10) unstable; urgency=low + + * Support for multiple Plesk-provided PHP versions + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Mon, 11 Nov 2019 09:09:09 +0100 + libkolab (2.0~dev20151230-0~kolab9) unstable; urgency=low * Debian 10 support
View file
debian.control
Changed
@@ -18,6 +18,11 @@ libxerces-c-dev, php-cgi | php5-cli, php-dev | php5-dev, + plesk-php70-dev | bash, + plesk-php71-dev | bash, + plesk-php72-dev | bash, + plesk-php73-dev | bash, + psa | bash, python-dev, swig (>= 2.0) X-Python-Version: >= 2.7
View file
debian.rules
Changed
@@ -6,6 +6,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 + export DH_VERBOSE=1 export DH_OPTIONS=-v @@ -14,36 +16,101 @@ %: dh $@ --parallel --with python2 +override_dh_gencontrol: + echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolab.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}-kolab" >> debian/control ; \ + echo "Architecture: amd64" >> debian/control ; \ + echo "Depends: libkolab, plesk-php$${shver}" >> debian/control ; \ + echo "Description: Kolab library bindings for Plesk PHP $${version}" >> debian/control ; \ + echo "" >> debian/control ; \ + sed -i -e "/Files:/ i\ + plesk-php$${shver}-kolab deb web extra" debian/control ; \ + echo "opt/plesk/php/$${version}/lib/php/modules/*.so" >> debian/plesk-php$${shver}-kolab.install ; \ + echo "opt/plesk/php/$${version}/share/php/kolab.php" >> debian/plesk-php$${shver}-kolab.install ; \ + echo "debian/kolab.ini opt/plesk/php/$${version}/etc/php.d" > debian/plesk-php$${shver}-kolab.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? -I/-c++ -php7 -I/g' cmake/modules/SWIGUtils.cmake ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php5 -I/g' cmake/modules/SWIGUtils.cmake ; \ + fi ; \ + dh_auto_build --builddirectory php-$${version} ; \ + done ; \ + fi + + if $$(php-config --vernum) -gt 70000 ; then \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php7 -I/g' cmake/modules/SWIGUtils.cmake ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php5 -I/g' cmake/modules/SWIGUtils.cmake ; \ + fi + + dh_auto_build + override_dh_auto_configure: + 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? -I/-c++ -php7 -I/g' cmake/modules/SWIGUtils.cmake ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php5 -I/g' cmake/modules/SWIGUtils.cmake ; \ + fi ; \ + dh_auto_configure --builddirectory php-$${version} -- \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DSWIG=/usr/bin/swig \ + -DUSE_LIBCALENDARING=ON \ + -DPHP_BINDINGS=ON \ + -DPHP_INCLUDE_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --include-dir) \ + -DPHP_CONFIG_EXECUTABLE=/opt/plesk/php/$${version}/bin/php-config \ + -DPHP_EXECUTABLE=/opt/plesk/php/$${version}/bin/php \ + -DPHP_INCLUDE_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --include-dir) \ + -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' \ - -e 's|php php5|php php5 php/$(PHPAPI)|g' cmake/modules/SWIGUtils.cmake ; \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php7 -I/g' cmake/modules/SWIGUtils.cmake ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php5 -I/g' cmake/modules/SWIGUtils.cmake ; \ fi dh_auto_configure -- \ -DLIB_INSTALL_DIR=/usr/lib \ -DPHP_BINDINGS=ON \ -DPHP_INSTALL_DIR=$(PHPEXT) \ - -DPHP4_EXECUTABLE=$(PHPBIN) \ - -DPHP4_INCLUDE_PATH=$(PHPINC) \ + -DPHP_EXECUTABLE=$(PHPBIN) \ + -DPHP_INCLUDE_DIR=$(PHPINC) \ -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/$(PHPEXT)/kolabcalendaring.php debian/tmp/usr/share/php/kolabcalendaring.php - mv debian/tmp/$(PHPEXT)/kolabicalendar.php debian/tmp/usr/share/php/kolabicalendar.php - mv debian/tmp/$(PHPEXT)/kolabobject.php debian/tmp/usr/share/php/kolabobject.php - mv debian/tmp/$(PHPEXT)/kolabshared.php debian/tmp/usr/share/php/kolabshared.php + mv debian/tmp/$(PHPEXT)/*.php debian/tmp/usr/share/php/. echo "$(PHPEXT)" >> debian/php-kolab.install + # Put kolab.ini into place if -d "/etc/php/7.3/mods-available" ; then \ echo "debian/kolab.ini etc/php/7.3/mods-available" >> debian/php-kolab.install ; \ @@ -60,6 +127,28 @@ fi touch debian/tmp/$(PYTHON_SITEARCH)/kolab/__init__.py + + 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? -I/-c++ -php7 -I/g' cmake/modules/SWIGUtils.cmake ; \ + else \ + sed -r -i -e 's/-c\+\+ -php0-9? -I/-c++ -php5 -I/g' cmake/modules/SWIGUtils.cmake ; \ + fi ; \ + shver=$$(echo $${version} | sed -e 's/\.//g') ; \ + make -C php-$${version} install DESTDIR=$(PWD)/debian/plesk-php$${shver}-kolab/ ; \ + mkdir -p debian/plesk-php$${shver}-kolab/opt/plesk/php/$${version}/etc/php.d/ ; \ + mkdir -p debian/plesk-php$${shver}-kolab/opt/plesk/php/$${version}/share/php/ ; \ + cp -a debian/kolab.ini debian/plesk-php$${shver}-kolab/opt/plesk/php/$${version}/etc/php.d/ ; \ + mv debian/plesk-php$${shver}-kolab$$(/opt/plesk/php/$${version}/bin/php-config --extension-dir)/kolab*.php \ + debian/plesk-php$${shver}-kolab/opt/plesk/php/$${version}/share/php/. ; \ + rm -rf debian/plesk-php$${shver}-kolab/usr/ ; \ + done ; \ + fi + # Install the packages dh_install --list-missing
View file
libkolab.dsc
Changed
@@ -2,7 +2,7 @@ Source: libkolab Binary: libkolab2, php-kolab, python-kolab, libkolab-dev Architecture: any -Version: 2.0~dev20151230-0~kolab9 +Version: 2.0~dev20151230-0~kolab10 Maintainer: Debian Kolab Maintainers <pkg-kolab-devel@lists.alioth.debian.org> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Christoph Wickert <wickert@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://git.kolab.org/libkolab @@ -22,13 +22,18 @@ libxerces-c-dev, php-cgi | php5-cli, php-dev | php5-dev, + plesk-php70-dev | bash, + plesk-php71-dev | bash, + plesk-php72-dev | bash, + plesk-php73-dev | bash, + psa | bash, python-dev, swig (>= 2.0) -Package-List: +Package-List: libkolab-dev deb libdevel optional libkolab2 deb libs optional php-kolab deb libs optional python-kolab deb python optional -Files: +Files: 00000000000000000000000000000000 0 libkolab-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
.