Projects
Kolab:Winterfell
libkolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 14
View file
debian.rules
Changed
@@ -1,6 +1,9 @@ #!/usr/bin/make -f PHPAPI := $(shell php-config --phpapi) +PHPBIN := $(shell php-config --php-binary) +PHPEXT := $(shell php-config --extension-dir) +PHPINC := $(shell php-config --include-dir) PYTHON_SITEARCH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') export DH_VERBOSE=1 @@ -12,12 +15,18 @@ dh $@ --parallel --with python2 override_dh_auto_configure: + 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 ; \ + fi + 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/ \ + -DPHP_INSTALL_DIR=$(PHPEXT) \ + -DPHP4_EXECUTABLE=$(PHPBIN) \ + -DPHP4_INCLUDE_PATH=$(PHPINC) \ -DPYTHON_BINDINGS=ON \ -DPYTHON_INSTALL_DIR=$(PYTHON_SITEARCH) \ -DUSE_LIBCALENDARING=ON @@ -30,19 +39,23 @@ # 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 + mv debian/tmp/$(PHPEXT)/dummy.php debian/tmp/usr/share/php/dummy.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 + echo "$(PHPEXT)" >> debian/php-kolab.install # 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/ - # Dummy plugin (workaround for #2050) - mkdir -p debian/tmp/usr/share/php5/kolabdummy - cp debian/usr/share/php5/kolabdummy/kolabdummy.ini debian/tmp/usr/share/php5/kolabdummy/ - # End dummy plugin + if [ -d "/etc/php/mods-available" ]; then \ + echo "debian/kolab.ini etc/php/mods-available" >> debian/php-kolab.install ; \ + echo "debian/kolabdummy.ini etc/php/mods-available" >> debian/php-kolab.install ; \ + else \ + echo "debian/kolab.ini etc/php5/mods-available" >> debian/php-kolab.install ; \ + echo "debian/kolabdummy.ini etc/php5/mods-available" >> debian/php-kolab.install ; \ + fi + touch debian/tmp/$(PYTHON_SITEARCH)/kolab/__init__.py - # Install the packages + # Install the packages dh_install --list-missing override_dh_auto_test:
View file
debian.tar.gz/kolab.ini
Changed
(renamed from usr/share/php5/kolab/kolab.ini)
View file
debian.tar.gz/kolabdummy.ini
Changed
(renamed from usr/share/php5/kolabdummy/kolabdummy.ini)
View file
debian.tar.gz/php-kolab.install
Changed
@@ -1,4 +1,2 @@ -/usr/share/php5/kolab/kolab.ini usr/share/php5/kolab/ -/usr/share/php5/kolabdummy/kolabdummy.ini usr/share/php5/kolabdummy/ -usr/lib/php5/*/*.so -usr/share/php/kolab*.php +usr/lib/php*/*/*.so +usr/share/php/*.php
View file
debian.tar.gz/usr
Deleted
-(directory)
View file
debian.tar.gz/usr/share
Deleted
-(directory)
View file
debian.tar.gz/usr/share/php5
Deleted
-(directory)
View file
debian.tar.gz/usr/share/php5/kolab
Deleted
-(directory)
View file
debian.tar.gz/usr/share/php5/kolabdummy
Deleted
-(directory)
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
.