wok-next view eaccelerator/receipt @ rev 20916

libopenraw, abiword: update deps; boost: pack unpacked libs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 05:42:25 2018 +0300 (2018-08-21)
parents 9e01bc6321ea
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="eaccelerator"
4 VERSION="0.9.6.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="PHP accelerator, optimizer, and dynamic content cache."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://eaccelerator.net/"
10 REPOLOGY="php:eaccelerator"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://bart.eaccelerator.net/source/$VERSION/$TARBALL"
14 TAGS="php"
16 DEPENDS="php m4"
17 BUILD_DEPENDS="php-dev sed coreutils-conditions" # gawk re2c
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 export PHP_PREFIX="/usr"
24 $PHP_PREFIX/bin/phpize
25 ./configure --enable-eaccelerator=shared \
26 --with-php-config=$PHP_PREFIX/bin/php-config \
27 --prefix=/usr --infodir=/usr/share/info \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make INSTALL_ROOT=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/tmp/eaccelerator $fs/usr/share/php
37 cp $(find $install | grep eaccelerator.so) $fs/usr/share/php/
38 chmod 0777 $fs/tmp/eaccelerator
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 grep -q ^extension=msql.so "$1/etc/php.ini" || \
45 sed -e 's|;.*extension=msql.so|; extension=msql.so\nextension=eaccelerator.so\neaccelerator.shm_size="48"\neaccelerator.cache_dir="/tmp/eaccelerator"\neaccelerator.enable="1"\neaccelerator.optimizer="1"\neaccelerator.check_mtime="1"\neaccelerator.debug="0"\neaccelerator.filter=""\neaccelerator.shm_max="0"\neaccelerator.shm_ttl="0"\neaccelerator.shm_prune_period="0"\neaccelerator.shm_only="0"\neaccelerator.compress="1"\neaccelerator.compress_level="9"|' -i "$1/etc/php.ini"
47 # Start Web server.
48 while read daemon file; do
49 if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then
50 /etc/init.d/$daemon start
51 fi
52 done <<EOT
53 apache apache/httpd.pid
54 lighttpd lighttpd.pid
55 EOT
56 }
58 # Pre and post remove commands for Tazpkg.
59 pre_remove()
60 {
61 sed -i '/.*eaccelerator.*/d' /etc/php.ini
63 # Start Web server.
64 while read daemon file; do
65 if [ -z "$1" -a -f /etc/init.d/$daemon \
66 -a ! -f "/var/run/$file" ]; then
67 /etc/init.d/$daemon start
68 fi
69 done <<EOT
70 apache apache/httpd.pid
71 lighttpd lighttpd.pid
72 EOT
73 }