File tree 4 files changed +29
-4
lines changed
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/')
16
16
cd /build/php-tarantool-*
17
17
sed -e " s/\$ {phpversion}/${phpversion} /" debian/control.in > debian/control
18
18
rm 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::
24
24
debian/php$(phpversion ) -tarantool/usr/lib/php/$(phpapi ) /
25
25
echo extension=tarantool.so \
26
26
> 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
31
27
32
28
clean ::
33
29
phpize --clean
You can’t perform that action at this time.
0 commit comments