File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -e
4+
5+ if [ " $1 " = " configure" ]; then
6+ if [ -e /usr/lib/php/php-maintscript-helper ] ; then
7+ . /usr/lib/php/php-maintscript-helper
8+ php_invoke enmod ${phpversion} ALL tarantool
9+ fi
10+ fi
11+
12+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -e
4+
5+ if [ " $1 " = " remove" ]; then
6+ if [ -e /usr/lib/php/php-maintscript-helper ] ; then
7+ . /usr/lib/php/php-maintscript-helper
8+ php_invoke dismod ${phpversion} ALL tarantool
9+ fi
10+ fi
11+
12+ exit 0
Original file line number Diff line number Diff line change @@ -16,3 +16,8 @@ phpversion=$(php-config --version | sed 's/^\([0-9]\+\.[0-9]\).*/\1/')
1616cd /build/php-tarantool-*
1717sed -e " s/\$ {phpversion}/${phpversion} /" debian/control.in > debian/control
1818rm debian/control.in
19+
20+ sed -e " s/\$ {phpversion}/${phpversion} /" debian/php-tarantool.postinst.in \
21+ > debian/php${phpversion} -tarantool.postinst
22+ sed -e " s/\$ {phpversion}/${phpversion} /" debian/php-tarantool.postrm.in \
23+ > debian/php${phpversion} -tarantool.postrm
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ install/php$(phpversion)-tarantool::
2424 debian/php$(phpversion ) -tarantool/usr/lib/php/$(phpapi ) /
2525 echo extension=tarantool.so \
2626 > debian/php$(phpversion ) -tarantool/etc/php/$(phpversion ) /mods-available/tarantool.ini
27- # Enable the extension.
28- install -m 0755 -d debian/php$(phpversion ) -tarantool/etc/php/$(phpversion ) /cli/conf.d
29- ln -s /etc/php/$(phpversion ) /mods-available/tarantool.ini \
30- debian/php$(phpversion ) -tarantool/etc/php/$(phpversion ) /cli/conf.d/50-tarantool.ini
3127
3228clean ::
3329 phpize --clean
You can’t perform that action at this time.
0 commit comments