wok-next diff eaccelerator/receipt @ rev 21135

Up libgcrypt (1.8.4), libpgp-error (1.34), libxml2 (2.9.9), libxslt (1.1.33).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 20 16:02:24 2019 +0200 (2019-01-20)
parents d958fec46c9f
children
line diff
     1.1 --- a/eaccelerator/receipt	Tue Jul 10 20:08:05 2018 +0300
     1.2 +++ b/eaccelerator/receipt	Sun Jan 20 16:02:24 2019 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="eaccelerator"
     1.5  VERSION="0.9.6.1"
     1.6  CATEGORY="system-tools"
     1.7 -SHORT_DESC="PHP accelerator, optimizer, and dynamic content cache."
     1.8 +SHORT_DESC="PHP accelerator, optimizer, and dynamic content cache"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  WEB_SITE="http://eaccelerator.net/"
    1.12 @@ -11,15 +11,10 @@
    1.13  
    1.14  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15  WGET_URL="http://bart.eaccelerator.net/source/$VERSION/$TARBALL"
    1.16 -TAGS="php"
    1.17  
    1.18 -DEPENDS="php m4"
    1.19  BUILD_DEPENDS="php-dev sed coreutils-conditions"	# gawk re2c
    1.20  
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 -	cd $src
    1.25 +compile_rules() {
    1.26  	export PHP_PREFIX="/usr"
    1.27  	$PHP_PREFIX/bin/phpize
    1.28  	./configure --enable-eaccelerator=shared \
    1.29 @@ -27,20 +22,18 @@
    1.30  		--prefix=/usr --infodir=/usr/share/info \
    1.31  		--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.32  	make &&
    1.33 -	make INSTALL_ROOT=$DESTDIR install
    1.34 +	make INSTALL_ROOT=$install install
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 +genpkg_rules() {
    1.41  	mkdir -p $fs/tmp/eaccelerator $fs/usr/share/php
    1.42  	cp $(find $install | grep eaccelerator.so) $fs/usr/share/php/
    1.43  	chmod 0777 $fs/tmp/eaccelerator
    1.44 +	DEPENDS="php m4"
    1.45 +	TAGS="php"
    1.46  }
    1.47  
    1.48 -# Pre and post install commands for Tazpkg.
    1.49 -post_install()
    1.50 -{
    1.51 +post_install() {
    1.52  	grep -q ^extension=msql.so "$1/etc/php.ini" || \
    1.53  	    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"
    1.54  
    1.55 @@ -55,9 +48,7 @@
    1.56  EOT
    1.57  }
    1.58  
    1.59 -# Pre and post remove commands for Tazpkg.
    1.60 -pre_remove()
    1.61 -{
    1.62 +pre_remove() {
    1.63  	sed -i '/.*eaccelerator.*/d' /etc/php.ini
    1.64  
    1.65  	# Start Web server.