Commit fbbaeeb1 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update php packages (#5943)

Update php73 from 7.3.27 to 7.3.29
Update php74 from 7.4.16 to 7.4.21
Update php80 from 8.0.3 to 8.0.8
parent 703d6c50
......@@ -3,7 +3,7 @@ require 'package'
class Php < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '5.6.40-8.0.3'
version '5.6.40-8.0.8'
license 'PHP-3.01'
compatibility 'all'
......@@ -17,9 +17,9 @@ class Php < Package
puts "5.6 = PHP 5.6.40"
puts "7.1 = PHP 7.1.33"
puts "7.2 = PHP 7.2.34"
puts "7.3 = PHP 7.3.27"
puts "7.4 = PHP 7.4.16"
puts "8.0 = PHP 8.0.3"
puts "7.3 = PHP 7.3.29"
puts "7.4 = PHP 7.4.21"
puts "8.0 = PHP 8.0.8"
puts " 0 = Cancel"
while version = STDIN.gets.chomp
......
......@@ -3,28 +3,31 @@ require 'package'
class Php73 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
@_ver = '7.3.27'
@_ver = '7.3.29'
version @_ver
license 'PHP-3.01'
compatibility 'all'
source_url "https://www.php.net/distributions/php-#{@_ver}.tar.xz"
source_sha256 '65f616e2d5b6faacedf62830fa047951b0136d5da34ae59e6744cbaf5dca148d'
source_sha256 '7db2834511f3d86272dca3daee3f395a5a4afce359b8342aa6edad80e12eb4d0'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.27_armv7l/php73-7.3.27-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.27_armv7l/php73-7.3.27-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.27_i686/php73-7.3.27-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.27_x86_64/php73-7.3.27-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.29_armv7l/php73-7.3.29-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.29_armv7l/php73-7.3.29-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.29_i686/php73-7.3.29-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php73/7.3.29_x86_64/php73-7.3.29-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: '7bd308b90ec61c6d1f03bfa97cc5883a9e963fab9d63d9922493d6ca5dceefcc',
armv7l: '7bd308b90ec61c6d1f03bfa97cc5883a9e963fab9d63d9922493d6ca5dceefcc',
i686: 'd3b0be456454fd98673477769c31b240c8fff997740239d1465d14434fde47ca',
x86_64: 'fc2d093bc2ba1ab0169c6d0f644649d952b4cb32286a2aa82331dfa5d5cc05ed'
aarch64: '7397e95349078e12f898d71805c545ab8a0cb48edc4851df2d66c4d9151000a6',
armv7l: '7397e95349078e12f898d71805c545ab8a0cb48edc4851df2d66c4d9151000a6',
i686: 'b28d0f8221fb787eea3879b5867af65fafe4ed4084269a76f03654f84bc3e2bb',
x86_64: '19ed3a49445e4a25c01b5ffd9fc290cdde0734ea52c22fe23c7a01044ac58a12',
})
depends_on 'libcurl'
depends_on 'libgcrypt'
depends_on 'libjpeg_turbo'
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'libxpm'
depends_on 'libxslt'
depends_on 'libzip'
depends_on 'exif'
......@@ -71,7 +74,10 @@ class Php73 < Package
--mandir=#{CREW_MAN_PREFIX} \
--sbindir=#{CREW_PREFIX}/bin \
--with-config-file-path=#{CREW_PREFIX}/etc \
--with-freetype-dir=#{CREW_PREFIX}/include/freetype2/freetype \
--with-libdir=#{ARCH_LIB} \
--with-jpeg-dir=#{CREW_PREFIX}/include \
--with-xpm-dir=#{CREW_PREFIX}/include/X11 \
--with-kerberos=#{CREW_LIB_PREFIX} \
--enable-exif \
--enable-fpm \
......@@ -109,12 +115,14 @@ class Php73 < Package
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/log"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/tmp/run"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/init.d"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/php-fpm.d"
system 'make', "INSTALL_ROOT=#{CREW_DEST_DIR}", 'install'
FileUtils.install 'php.ini-development', "#{CREW_DEST_PREFIX}/etc/php.ini", mode: 0644
FileUtils.install 'sapi/fpm/init.d.php-fpm.in', "#{CREW_DEST_PREFIX}/etc/init.d/php-fpm", mode: 0755
FileUtils.install 'sapi/fpm/php-fpm.conf.in', "#{CREW_DEST_PREFIX}/etc/php-fpm.conf", mode: 0644
FileUtils.install 'sapi/fpm/www.conf.in', "#{CREW_DEST_PREFIX}/etc/php-fpm.d/www.conf", mode: 0644
Fileutils.ln_s "#{CREW_PREFIX}/etc/init.d/php-fpm", "#{CREW_DEST_PREFIX}/bin/php7-fpm"
FileUtils.ln_s "#{CREW_PREFIX}/etc/init.d/php-fpm", "#{CREW_DEST_PREFIX}/bin/php7-fpm"
# clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details
FileUtils.mv "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_LIB_PREFIX}/php"
......
......@@ -3,30 +3,33 @@ require 'package'
class Php74 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
@_ver = '7.4.16'
@_ver = '7.4.21'
version @_ver
license 'PHP-3.01'
compatibility 'all'
source_url "https://www.php.net/distributions/php-#{@_ver}.tar.xz"
source_sha256 '1c16cefaf88ded4c92eed6a8a41eb682bb2ef42429deb55f1c4ba159053fb98b'
source_sha256 'cf43384a7806241bc2ff22022619baa4abb9710f12ec1656d0173de992e32a90'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.16_armv7l/php74-7.4.16-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.16_armv7l/php74-7.4.16-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.16_i686/php74-7.4.16-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.16_x86_64/php74-7.4.16-chromeos-x86_64.tar.xz',
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.21_armv7l/php74-7.4.21-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.21_armv7l/php74-7.4.21-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.21_i686/php74-7.4.21-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php74/7.4.21_x86_64/php74-7.4.21-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: 'f3113d9c6f2f80644831b9f2eebb8867381b89e249206e6023f93ddfcbb41c0b',
armv7l: 'f3113d9c6f2f80644831b9f2eebb8867381b89e249206e6023f93ddfcbb41c0b',
i686: 'a04441e35fdf3612bc0bb07ecc04e98b51a7068ecec6789e239c4abc5d17f65a',
x86_64: 'ec82cab3f37d18d67c1aa2e5d7011a7014502914a2edc5b5a9d450b16d8e71c8',
aarch64: '6f24337b7f3ab13eeec7caa6a85d5b9e04661d2a9f36a17dd2434a8f8dcee211',
armv7l: '6f24337b7f3ab13eeec7caa6a85d5b9e04661d2a9f36a17dd2434a8f8dcee211',
i686: 'fe065f5875eed285cae998a0f95d0a87b1406404789b1aa681b3deab5e711afa',
x86_64: '6d22a25947829bbf0b90c2cda6c8c989aaf0c8efe1554be668e81ca89ee59d88',
})
depends_on 'aspell_en'
depends_on 'libcurl'
depends_on 'libgcrypt'
depends_on 'libjpeg_turbo'
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'libsodium'
depends_on 'libxpm'
depends_on 'libxslt'
depends_on 'libzip'
depends_on 'exif'
......@@ -76,7 +79,10 @@ class Php74 < Package
--mandir=#{CREW_MAN_PREFIX} \
--sbindir=#{CREW_PREFIX}/bin \
--with-config-file-path=#{CREW_PREFIX}/etc \
--with-freetype-dir=#{CREW_PREFIX}/include/freetype2/freetype \
--with-libdir=#{ARCH_LIB} \
--with-jpeg-dir=#{CREW_PREFIX}/include \
--with-xpm-dir=#{CREW_PREFIX}/include/X11 \
--with-kerberos=#{CREW_LIB_PREFIX} \
--enable-bcmath \
--enable-calendar \
......
......@@ -3,30 +3,33 @@ require 'package'
class Php80 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
@_ver = '8.0.3'
@_ver = '8.0.8'
version @_ver
license 'PHP-3.01'
compatibility 'all'
source_url "https://www.php.net/distributions/php-#{@_ver}.tar.xz"
source_sha256 'c9816aa9745a9695672951eaff3a35ca5eddcb9cacf87a4f04b9fb1169010251'
source_sha256 'dc1668d324232dec1d05175ec752dade92d29bb3004275118bc3f7fc7cbfbb1c'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.3_armv7l/php80-8.0.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.3_armv7l/php80-8.0.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.3_i686/php80-8.0.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.3_x86_64/php80-8.0.3-chromeos-x86_64.tar.xz',
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.8_armv7l/php80-8.0.8-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.8_armv7l/php80-8.0.8-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.8_i686/php80-8.0.8-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/php80/8.0.8_x86_64/php80-8.0.8-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: '476ce8403fffce634600922e811cd71bedce3d8a8fdff5041450b1f73f3e9ab0',
armv7l: '476ce8403fffce634600922e811cd71bedce3d8a8fdff5041450b1f73f3e9ab0',
i686: '16818b4073cc89b69378a02716d04305697e134b0da9883ccdf9aab4559586ea',
x86_64: 'bab671116f916ab2eb6c7423d8c313e28632a01ca6be8fcac29699f13b01cc8c',
aarch64: '7bd82ad4a07c575c38a624998f68ebfeac6dd5247971ef0b038143cbe740ab43',
armv7l: '7bd82ad4a07c575c38a624998f68ebfeac6dd5247971ef0b038143cbe740ab43',
i686: 'b67f5d9cfc5f4dd7b2b10cc643ba9a35293b4bdfef37dd2b0cb428a36db5707e',
x86_64: '721217a2a167d2c16029242e59a26772f38b208e209feb2659b30aa4944c007b',
})
depends_on 'aspell_en'
depends_on 'libcurl'
depends_on 'libgcrypt'
depends_on 'libjpeg_turbo'
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'libsodium'
depends_on 'libxpm'
depends_on 'libxslt'
depends_on 'libzip'
depends_on 'exif'
......@@ -76,7 +79,10 @@ class Php80 < Package
--mandir=#{CREW_MAN_PREFIX} \
--sbindir=#{CREW_PREFIX}/bin \
--with-config-file-path=#{CREW_PREFIX}/etc \
--with-freetype-dir=#{CREW_PREFIX}/include/freetype2/freetype \
--with-libdir=#{ARCH_LIB} \
--with-jpeg-dir=#{CREW_PREFIX}/include \
--with-xpm-dir=#{CREW_PREFIX}/include/X11 \
--with-kerberos=#{CREW_LIB_PREFIX} \
--enable-exif \
--enable-fpm \
......
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