diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-05 01:12:45 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-05 01:13:43 +0200 |
commit | ab995da97a19580bd0f2f634c33244842086f340 (patch) | |
tree | 0489a20c4f1527a2ea831f4c280321d530584a85 /main/php5 | |
parent | 6cc21f4b18e94588cbf329e34eab1ee81ff5c3e8 (diff) | |
download | aports-ab995da97a19580bd0f2f634c33244842086f340.tar.bz2 aports-ab995da97a19580bd0f2f634c33244842086f340.tar.xz |
main/php5: add symlinks with suffix "5" for some binaries
Diffstat (limited to 'main/php5')
-rw-r--r-- | main/php5/APKBUILD | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/main/php5/APKBUILD b/main/php5/APKBUILD index 3bf8ed7feb..1fd2d43289 100644 --- a/main/php5/APKBUILD +++ b/main/php5/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Matt Smith <mcs@darkregion.net> pkgname=php5 pkgver=5.6.26 -pkgrel=0 +pkgrel=1 pkgdesc="The PHP language runtime engine" url="http://www.php.net/" arch="all" @@ -301,13 +301,21 @@ package() { "$pkgdir"/usr/lib/libphp5.so || return 1 install -D -m644 "$_srcdir"/sapi/embed/php_embed.h \ "$pkgdir"/usr/include/php/sapi/embed/php_embed.h || return 1 + + # Create symlink with version suffix, parallel to php7 package, + # to simplify multiversion aports and prepare us for future. + local f; for f in php php-cgi php-config phpdbg phpize; do + ln -s $f "$pkgdir"/usr/bin/${f}5 || return 1 + done } dev() { - default_dev + default_dev || return 1 + mkdir -p "$subpkgdir"/usr/lib/php mv "$pkgdir"/usr/lib/php/build \ "$subpkgdir"/usr/lib/php/ || return 1 + mv "$pkgdir"/usr/bin/php-config5 "$subpkgdir"/usr/bin/ } doc() { @@ -339,7 +347,7 @@ cgi() { pkgdesc="PHP Common Gateway Interface (CGI)" depends="$pkgname-common" mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/php-cgi "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/php-cgi* "$subpkgdir"/usr/bin/ } cli() { @@ -347,8 +355,9 @@ cli() { depends="$pkgname-common" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/php "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/bin/php5 "$subpkgdir"/usr/bin/ || return 1 # provide phpize here instead of -dev due to pecl command - mv "$pkgdir"/usr/bin/phpize "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/bin/phpize* "$subpkgdir"/usr/bin/ || return 1 } fpm() { @@ -367,6 +376,7 @@ fpm() { -e "s/^;(pm.min_spare_servers)/\1/" \ -e "s/^;(pm.max_spare_servers)/\1/" \ "$subpkgdir"$_confdir/php-fpm.conf || return 1 + ln -s php-fpm "$subpkgdir"/usr/bin/php-fpm5 } apache2() { @@ -404,7 +414,7 @@ pear() { phpdbg() { pkgdesc="Interactive PHP debugger" mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/phpdbg "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/phpdbg* "$subpkgdir"/usr/bin/ } _mv_ext() { |