wok rev 15372

php-auth-pam: php 5.4 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 17 13:16:15 2013 +0000 (2013-10-17)
parents 854aac736a5d
children 9ff4123e36f3
files cups/stuff/etc/init.d/cupsd php-auth-pam/receipt
line diff
     1.1 --- a/cups/stuff/etc/init.d/cupsd	Tue Oct 15 22:45:52 2013 +0000
     1.2 +++ b/cups/stuff/etc/init.d/cupsd	Thu Oct 17 13:16:15 2013 +0000
     1.3 @@ -23,6 +23,7 @@
     1.4  		status
     1.5  		;;
     1.6  	start)
     1.7 +		pgrep -f cupsd > /dev/null || rm -f $PIDFILE 2> /dev/null
     1.8  		if [ ! -e $PIDFILE ]; then
     1.9  			echo -n "Starting $DESC: $NAME... "
    1.10  			$DAEMON $OPTIONS
     2.1 --- a/php-auth-pam/receipt	Tue Oct 15 22:45:52 2013 +0000
     2.2 +++ b/php-auth-pam/receipt	Thu Oct 17 13:16:15 2013 +0000
     2.3 @@ -5,12 +5,13 @@
     2.4  CATEGORY="development"
     2.5  SHORT_DESC="PHP extension for PAM"
     2.6  MAINTAINER="erjo@slitaz.org"
     2.7 -DEPENDS="php-apache pam"
     2.8 -BUILD_DEPENDS="php-dev pam pam-dev autoconf automake"
     2.9 +LICENSE="BSD"
    2.10  TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
    2.11  WEB_SITE="http://packages.debian.org/"
    2.12  WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/php-auth-pam/$TARBALL"
    2.13  
    2.14 +DEPENDS="php-apache pam"
    2.15 +BUILD_DEPENDS="php-dev pam pam-dev autoconf automake"
    2.16  
    2.17  # Rules to configure and make the package.
    2.18  compile_rules()
    2.19 @@ -20,6 +21,7 @@
    2.20  	cd $src
    2.21  	phpize
    2.22  	patch -p1 < $stuff/php-auth-pam-Makefile.global0.4.u || exit 1
    2.23 +	sed -i 's/^function_entry/zend_&/;s/pval /zval /' pam_auth.c # php 5.4
    2.24  	
    2.25  	./configure $CONFIGURE_ARGS \
    2.26  		--prefix=/usr &&
    2.27 @@ -31,7 +33,7 @@
    2.28  genpkg_rules()
    2.29  {
    2.30  	mkdir -p $fs/usr/share/php
    2.31 -	cp -a $_pkg/usr/lib/php/extensions/*/*.so $fs/usr/share/php
    2.32 +	cp -a $install/usr/lib/php/extensions/*/*.so $fs/usr/share/php
    2.33  }
    2.34  
    2.35  post_install()