wok-next diff php-auth-pam/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 4e6503d7a19f |
children |
line diff
1.1 --- a/php-auth-pam/receipt Thu Jul 12 18:34:58 2018 +0300 1.2 +++ b/php-auth-pam/receipt Tue Sep 01 10:31:46 2020 +0000 1.3 @@ -4,41 +4,37 @@ 1.4 VERSION="0.4" 1.5 CATEGORY="development" 1.6 SHORT_DESC="PHP extension for PAM" 1.7 -MAINTAINER="erjo@slitaz.org" 1.8 +MAINTAINER="devel@slitaz.org" 1.9 LICENSE="BSD" 1.10 -WEB_SITE="http://packages.debian.org/" 1.11 +WEB_SITE="https://www.debian.org/distrib/packages" # and ..? 1.12 REPOLOGY="php:auth-pam" 1.13 1.14 -TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz" 1.15 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" 1.16 WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/php-auth-pam/$TARBALL" 1.17 1.18 -DEPENDS="php-apache pam" 1.19 BUILD_DEPENDS="php-dev pam pam-dev autoconf automake sed coreutils-conditions" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 - test -d ${PACKAGE}-${VERSION} \ 1.25 - || make ${PACKAGE}-${VERSION}.orig ${PACKAGE}-${VERSION} 1.26 +compile_rules() { 1.27 + [ -d $PACKAGE-$VERSION ] || 1.28 + make $PACKAGE-$VERSION.orig $PACKAGE-$VERSION 1.29 cd $src 1.30 phpize 1.31 - sed -i 's/^function_entry/zend_&/;s/pval /zval /' pam_auth.c # php 5.4 1.32 - 1.33 - ./configure $CONFIGURE_ARGS \ 1.34 - --prefix=/usr && 1.35 - 1.36 - make && make DESTDIR=$DESTDIR install 1.37 + sed -i 's|^function_entry|zend_&|; s|pval |zval |' pam_auth.c # php 5.4 1.38 + 1.39 + ./configure \ 1.40 + --prefix=/usr \ 1.41 + $CONFIGURE_ARGS && 1.42 + make && 1.43 + make DESTDIR=$install install 1.44 } 1.45 1.46 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 -genpkg_rules() 1.48 -{ 1.49 +genpkg_rules() { 1.50 mkdir -p $fs/usr/share/php 1.51 cp -a $install/usr/lib/php/extensions/*/*.so $fs/usr/share/php 1.52 + DEPENDS="php-apache pam" 1.53 } 1.54 1.55 -post_install() 1.56 -{ 1.57 +post_install() { 1.58 grep -q ^extension=pam_auth.so "$1/etc/php.ini" || \ 1.59 sed -e 's|extension=msql.so|extension=msql.so\nextension=pam_auth.so|' -i "$1/etc/php.ini" 1.60 # Start Web server. 1.61 @@ -58,9 +54,7 @@ 1.62 true 1.63 } 1.64 1.65 -# Pre and post remove commands for Tazpkg. 1.66 -pre_remove() 1.67 -{ 1.68 +pre_remove() { 1.69 sed -i '/.*=pam_auth.so.*/d' /etc/php.ini 1.70 1.71 # Start Web server. 1.72 @@ -75,9 +69,3 @@ 1.73 lighttpd lighttpd.pid 1.74 EOT 1.75 } 1.76 - 1.77 - 1.78 -clean_wok() 1.79 -{ 1.80 - test -d ${PACKAGE}-${VERSION} && rm -rf ${PACKAGE}-${VERSION} 1.81 -}