[Pkg-giraffe-discuss] [PATCH 0/2] installation of PHP modul mapi.so

c.schoenert at t-online.de c.schoenert at t-online.de
Mon Jan 9 07:32:19 UTC 2017


From: Carsten Schoenert <c.schoenert at t-online.de>

Hello,

for the further integration of other webserver than apache2 for kopano-webapp
I needed to get valid environment of the PHP modul mapi.so from the
php7.0-mapi package of src:kopanocore.

So I wanted to complete this step over the last weekend. As I never needed to
do a packaging of a PHP modul within a debian package it was a lot of research
for me to do for a proper packaging and correct function of the modul. It was
again Guido who pointed me into the correct direction and mention the usage of
dh-php, which I was not aware of it, that makes the packaging quite easy.

The following patches did the trick. If all agree I would push them into the
git tree on Alioth.

I tested the resulting package and creation of the needed interlinking of the
mapi.ini within the under laying folder structure in /etc/php/7.0, it's
working.

dh-php is not completely happy thus the naming aof the package.

> dh_php: Package php7.0-mapi appears to be an PHP module. It should comply to the package naming scheme php-<modulename>

This is related to the logic the PHP-team is doing tha naming of the modul.
php-$some-modul-name is virtual package depending on the real package with
the PHP version, for example here:

php-mapi depending on php7.0-mapi

That is a thing we could do later (or don't).

Regards
Carsten

Carsten Schoenert (2):
  dh-php: adding debhelper for PHP modules
  php7.0-mapi: install the modul by dh-php

 debian/control             | 1 +
 debian/php7.0-mapi.install | 3 +--
 debian/php7.0-mapi.php     | 3 +++
 debian/rules               | 2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 debian/php7.0-mapi.php

-- 
2.11.0




More information about the Pkg-giraffe-discuss mailing list