Unverified Commit 05d7187e authored by Diego Hernandes's avatar Diego Hernandes
Browse files

php 7.1 on alpine v3.6 bump and virtual names

parent ee30cabe
......@@ -12,7 +12,6 @@ ROOT_PATH=$(pwd)
sudo apk update
# update packages.
for PACKAGE in $PACKAGES; do
echo "----> Building $PACKAGE"
cd $ROOT_PATH/$PACKAGE
......
......@@ -3,8 +3,9 @@
pkgname=php7-apcu
_pkgreal=apcu
pkgver=5.1.11
pkgrel=0
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="APCu - APC User Cache extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -3,13 +3,14 @@
pkgname=php7-imagick
_pkgreal=imagick
pkgver=3.4.3
pkgrel=7
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="ImageMagick extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.1.0 php7-common<7.2.0 imagick"
depends="php7-common>=7.1.0 php7-common<7.2.0 imagemagick"
makedepends="php7-dev>=7.1.0 php7-dev<7.2.0 autoconf imagemagick-dev libtool pcre-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
......
......@@ -3,8 +3,9 @@
pkgname=php7-libsodium
_pkgreal=libsodium
pkgver=1.0.7
pkgrel=3
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="xDebug Profiler"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -3,8 +3,9 @@
pkgname=php7-memcached
_pkgreal=memcached
pkgver=3.0.4
pkgrel=3
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="Memcached extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -3,8 +3,9 @@
pkgname=php7-mongodb
_pkgreal=mongodb
pkgver=1.4.2
pkgrel=0
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="MongoDB extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -2,8 +2,9 @@
pkgname=php7-redis
_pkgreal=redis
pkgver=3.1.6
pkgrel=0
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="Redis extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -3,8 +3,9 @@
pkgname=php7-ssh2
_pkgreal=ssh2
pkgver=1.1.2
pkgrel=3
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="ssh2 - Bindings for the libssh2 library extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -3,8 +3,9 @@
pkgname=php7-xdebug
_pkgreal=xdebug
pkgver=2.6.0
pkgrel=0
pkgrel=10
_phpver=7
provides="php-$_pkgreal=7.1"
pkgdesc="xDebug Profiler"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
......
......@@ -5,23 +5,24 @@
pkgname=php7
_pkgreal=php
pkgver=7.1.15
pkgrel=0
pkgver=7.1.16
pkgrel=100
pkgdesc="The PHP language runtime engine - 7th branch"
url="http://www.php.net/"
arch="all"
license="PHP-3"
options=""
depends="$pkgname-common"
depends_dom="$pkgname-xml"
depends_mysqlnd="$pkgname-mysqli"
depends_pdo_mysql="$pkgname-mysqlnd"
depends_phar="$pkgname"
depends_soap="$pkgname-xml"
depends_wddx="$pkgname-xml"
depends_xmlreader="$pkgname-dom"
depends_xmlrpc="$pkgname-xml"
depends_xsl="$pkgname-dom"
provides="$_pkgreal=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
depends_dom="$pkgname-xml>=7.1.0 $pkgname-xml<7.2.0"
depends_mysqlnd="$pkgname-mysqli>=7.1.0 $pkgname-mysqli<7.2.0"
depends_pdo_mysql="$pkgname-mysqlnd>=7.1.0 $pkgname-mysqlnd<7.2.0"
depends_phar="$pkgname>=7.1.0 $pkgname<7.2.0"
depends_soap="$pkgname-xml>=7.1.0 $pkgname-xml<7.2.0"
depends_wddx="$pkgname-xml>=7.1.0 $pkgname-xml<7.2.0"
depends_xmlreader="$pkgname-dom>=7.1.0 $pkgname-dom<7.2.0"
depends_xmlrpc="$pkgname-xml>=7.1.0 $pkgname-xml<7.2.0"
depends_xsl="$pkgname-dom>=7.1.0 $pkgname-dom<7.2.0"
makedepends="autoconf bison re2c apache2-dev libxml2-dev libxslt-dev libzip-dev bzip2-dev zlib-dev
aspell-dev enchant-dev expat-dev pcre-dev curl-dev gmp-dev icu-dev imap-dev
libical-dev libressl-dev openldap-dev net-snmp-dev db-dev krb5-dev gdbm-dev sqlite-dev
......@@ -205,8 +206,8 @@ package() {
dev() {
default_dev
depends="$depends $pkgname $pkgname-pear"
depends="$depends $pkgname>=7.1.0 $pkgname<7.2.0 $pkgname-pear>=7.1.0 $pkgname-pear<7.2.0"
provides="$_pkgreal-dev=7.1"
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/usr/lib/$pkgname
......@@ -218,7 +219,7 @@ dev() {
doc() {
default_doc
provides="$_pkgreal-doc=7.1"
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
local file
......@@ -229,7 +230,8 @@ doc() {
apache2() {
pkgdesc="PHP Module for Apache2"
depends="$pkgname-common apache2"
provides="$_pkgreal-apache2=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0 apache2"
install -D -m755 "$builddir"/sapi/apache2handler/mod_php7.so \
"$subpkgdir"/usr/lib/apache2/mod_php7.so || return 1
......@@ -240,7 +242,8 @@ apache2() {
phpdbg() {
pkgdesc="Interactive PHP debugger"
depends="$pkgname-common"
provides="$_pkgreal-phpdbg=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
install -Dm755 "$builddir"/sapi/phpdbg/phpdbg \
"$subpkgdir"/usr/bin/phpdbg7
......@@ -248,7 +251,8 @@ phpdbg() {
embed() {
pkgdesc="PHP Embedded Library"
depends="$pkgname-common"
provides="$_pkgreal-embed=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libphp*.so "$subpkgdir"/usr/lib/
......@@ -256,7 +260,8 @@ embed() {
litespeed() {
pkgdesc="PHP LiteSpeed SAPI"
depends="$pkgname-common"
provides="$_pkgreal-litespeed=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
mkdir -p "$subpkgdir"/usr/bin
# mv "$pkgdir"/usr/bin/lsphp "$subpkgdir"/usr/bin/lsphp7
......@@ -264,7 +269,8 @@ litespeed() {
cgi() {
pkgdesc="PHP Common Gateway Interface"
depends="$pkgname-common"
provides="$_pkgreal-cgi=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/php-cgi7 "$subpkgdir"/usr/bin/
......@@ -272,7 +278,8 @@ cgi() {
fpm() {
pkgdesc="PHP FastCGI Process Manager"
depends="$pkgname-common"
provides="$_pkgreal-fpm=7.1"
depends="$pkgname-common>=7.1.0 $pkgname-common<7.2.0"
mv "$pkgdir"/var "$subpkgdir"/ || return 1
......@@ -296,7 +303,8 @@ fpm() {
pear() {
pkgdesc="PHP Extension and Application Repository"
depends="$pkgname $pkgname-xml"
provides="$_pkgreal-pear=7.1"
depends="$pkgname>=7.1.0 $pkgname<7.2.0 $pkgname-xml>=7.1.0 $pkgname-xml<7.2.0"
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/etc/$pkgname
......@@ -311,6 +319,7 @@ pear() {
common() {
pkgdesc="$pkgdesc (common config)"
depends=""
provides="$_pkgreal-common=7.1"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1
......@@ -320,6 +329,7 @@ common() {
}
phar() {
provides="$_pkgreal-phar=7.1"
_package_ext || return 1
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/phar* "$subpkgdir"/usr/bin/
......@@ -330,9 +340,9 @@ _package_ext() {
local extdepends="$(eval "echo \$depends_$extname")"
pkgdesc="PHP7 extension: $extname"
depends="$depends $extdepends"
provides="$_pkgreal-$extname=7.1"
case "$extname" in
pdo_*) depends="$depends $pkgname-pdo"
pdo_*) depends="$depends $pkgname-pdo>=7.1.0 $pkgname-pdo<7.2.0"
esac
# extension dependencies and loading order
......@@ -355,7 +365,7 @@ _package_ext() {
> "$subpkgdir"/etc/$pkgname/conf.d/${elo}_${extname}.ini
}
sha512sums="db10c0138a74165c6373f0d6cc7f5ca1f6b1ae26359cc2e2a9dec8895a491b8adccee59601cb9325e54768e9cca643e9f73858fef5cbe6502c683131f9cc8ccf php-7.1.15.tar.bz2
sha512sums="c933275c41755d27562203972ee463ae6f009aa47d6c843ef19f945bcae8ec114a60d8f0daae326d3ed491c8f90c3097c96f30b3848cc06db51553ac262f1ef2 php-7.1.16.tar.bz2
5b45e3f76579c064e7393a080584515d4c70071cd028cd9292885c741ddc78731633082cf1808b34bbe2e54575caa4c6fcfb3da05f54a26f0848a5e1709492ac php7-fpm.initd
100434b8cecaa01a86cc8be56434db1c2dd3c49b7ae397a58b8ecad06a4eb5453e05412e20df1fa26468d6df6c4260f7c3c2b4b4c6f099ffec006bcc0c29cc3c php7-fpm.logrotate
7893c2c4507191ce39fa0813c0119ccb8394dbc5ec0092faea34d6494459c697f70536f19a4c7b767aa1a8c587fe49768b552e3b55a1fc11a1e66f267e0b605e php7-module.conf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment