Commit b2383366 authored by Ed Reel's avatar Ed Reel

Update php packages

Update php73 from 7.3.18 to 7.3.19

Update php74 from 7.4.6 to 7.4.7

Rebuild php5, php71 and php72

Remove php70 package

Add pre-built binaries
parent be47d489
......@@ -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-7.4.6'
version '5.6.40-7.4.7'
compatibility 'all'
is_fake
......@@ -14,11 +14,10 @@ class Php < Package
puts
puts " Select the version to install:"
puts " 5.6 = PHP 5.6.40"
puts " 7.0 = PHP 7.0.33"
puts " 7.1 = PHP 7.1.33"
puts " 7.2 = PHP 7.2.31"
puts " 7.3 = PHP 7.3.18"
puts " 7.4 = PHP 7.4.6"
puts " 7.3 = PHP 7.3.19"
puts " 7.4 = PHP 7.4.7"
puts " 0 = Cancel"
while version = STDIN.gets.chomp
......@@ -26,9 +25,6 @@ class Php < Package
when '5.6'
depends_on 'php5'
break
when '7.0'
depends_on 'php70'
break
when '7.1'
depends_on 'php71'
break
......
......@@ -3,22 +3,22 @@ require 'package'
class Php5 < 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-1'
version '5.6.40-2'
compatibility 'all'
source_url 'http://php.net/distributions/php-5.6.40.tar.xz'
source_sha256 '1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.40-2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'c70edbf5ed87c65852ebae34aa83273e810b6727e630b7416d2ee68d56722398',
armv7l: 'c70edbf5ed87c65852ebae34aa83273e810b6727e630b7416d2ee68d56722398',
i686: '58320b4a5e73dbc5d028bc0969f28fd606e7aa6b2367aa2cf8b61fc043ce8740',
x86_64: '5e7f5461af3627f086a84bc62a26de7cdc907493244fbecd65be02c6ad9869bb',
aarch64: '0fb88410bfb778e2f6df96cf4c5170574ad04c154cc8fa540018db91b8355cbd',
armv7l: '0fb88410bfb778e2f6df96cf4c5170574ad04c154cc8fa540018db91b8355cbd',
i686: '1677dad1444d2c09d55fb454471c82783ff002c3f177bd0f0b837e77c7cc179f',
x86_64: 'a99fc4179bee6668150af496370dc6b6c824feed125c5e16ae9fe1938a41a5a5',
})
depends_on 'libgcrypt'
......
require 'package'
class Php70 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '7.0.33'
compatibility 'all'
source_url 'https://php.net/distributions/php-7.0.33.tar.xz'
source_sha256 'ab8c5be6e32b1f8d032909dedaaaa4bbb1a209e519abb01a52ce3914f9a13d96'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.0.33-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.0.33-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.0.33-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.0.33-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4b1a64041ce564014c9318ec4697796c783caac0689489c21f90d41d338dc753',
armv7l: '4b1a64041ce564014c9318ec4697796c783caac0689489c21f90d41d338dc753',
i686: 'adce0459926b85882ee5d2dd5801a4d062eec3f63abf893a12da9a30a8b4d738',
x86_64: 'a55e3ee6889347fe5065ccb2d16fd19e783c612661a8985f0040e1a5443b5368',
})
depends_on 'libgcrypt'
depends_on 'libwebp'
depends_on 'libxslt'
depends_on 'libzip'
depends_on 'curl'
depends_on 'exif'
depends_on 'freetype'
depends_on 'pcre'
depends_on 're2c'
depends_on 'tidy'
depends_on 'unixodbc'
def self.preinstall
phpver = `php -v 2> /dev/null | head -1 | cut -d' ' -f2`.chomp
abort "PHP version #{phpver} already installed.".lightred unless "#{phpver}" == ""
end
def self.patch
# Configuration
system "sed -i 's,;pid = run/php-fpm.pid,pid = #{CREW_PREFIX}/tmp/run/php-fpm.pid,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,;error_log = log/php-fpm.log,error_log = #{CREW_PREFIX}/log/php-fpm.log,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,include=@php_fpm_sysconfdir@/php-fpm.d,include=#{CREW_PREFIX}/etc/php-fpm.d,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,^user,;user,' sapi/fpm/www.conf.in"
system "sed -i 's,^group,;group,' sapi/fpm/www.conf.in"
system "sed -i 's,@sbindir@,#{CREW_PREFIX}/bin,' sapi/fpm/init.d.php-fpm.in"
system "sed -i 's,@sysconfdir@,#{CREW_PREFIX}/etc,' sapi/fpm/init.d.php-fpm.in"
system "sed -i 's,@localstatedir@,#{CREW_PREFIX}/tmp,' sapi/fpm/init.d.php-fpm.in"
# Set some sane defaults
system "sed -i 's,post_max_size = 8M,post_max_size = 128M,' php.ini-development"
system "sed -i 's,upload_max_filesize = 2M,upload_max_filesize = 128M,' php.ini-development"
system "sed -i 's,;opcache.enable=0,opcache.enable=1,' php.ini-development"
# Fix cc: error: ext/standard/.libs/type.o: No such file or directory
#system "sed -i '98303d' configure"
#system "sed -i '98295,98296d' configure"
# Fix /usr/bin/file: No such file or directory
system 'filefix'
end
def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp"
system './configure',
"--prefix=#{CREW_PREFIX}",
"--docdir=#{CREW_PREFIX}/doc",
"--infodir=#{CREW_PREFIX}/info",
"--libdir=#{CREW_LIB_PREFIX}",
"--localstatedir=#{CREW_PREFIX}/tmp",
"--mandir=#{CREW_PREFIX}/share/man",
"--sbindir=#{CREW_PREFIX}/bin",
"--with-config-file-path=#{CREW_PREFIX}/etc",
"--with-libdir=#{ARCH_LIB}",
"--with-freetype-dir=#{CREW_PREFIX}/include/freetype2/freetype",
"--with-pcre-regex=#{CREW_LIB_PREFIX}",
"--with-jpeg-dir=#{CREW_LIB_PREFIX}",
"--with-kerberos=#{CREW_LIB_PREFIX}",
"--with-png-dir=#{CREW_LIB_PREFIX}",
"--with-webp-dir=#{CREW_LIB_PREFIX}",
"--with-xpm-dir=#{CREW_LIB_PREFIX}",
'--enable-exif',
'--enable-fpm',
'--enable-ftp',
'--enable-mbstring',
'--enable-opcache',
'--enable-pcntl',
'--enable-shared',
'--enable-shmop',
'--enable-sockets',
'--enable-zip',
'--with-bz2',
'--with-curl',
'--with-gd',
'--with-gettext',
'--with-gmp',
'--with-libzip',
'--with-mysqli',
'--with-openssl',
'--with-pcre-regex',
'--with-pdo-mysql',
'--with-pear',
'--with-readline',
'--with-tidy',
'--with-unixODBC',
'--with-xsl',
'--with-zlib'
system 'make'
end
def self.check
#system 'make', 'test'
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/log"
system "mkdir -p #{CREW_DEST_PREFIX}/tmp/run"
system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install"
system "install -Dm644 php.ini-development #{CREW_DEST_PREFIX}/etc/php.ini"
system "install -Dm755 sapi/fpm/init.d.php-fpm.in #{CREW_DEST_PREFIX}/etc/init.d/php-fpm"
system "install -Dm644 sapi/fpm/php-fpm.conf.in #{CREW_DEST_PREFIX}/etc/php-fpm.conf"
system "install -Dm644 sapi/fpm/www.conf.in #{CREW_DEST_PREFIX}/etc/php-fpm.d/www.conf"
system "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
system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_LIB_PREFIX}/php"
system "mv", "#{CREW_DEST_DIR}/.depdblock", "#{CREW_DEST_LIB_PREFIX}/php"
system "rm", "-rf", "#{CREW_DEST_DIR}/.channels", "#{CREW_DEST_DIR}/.filemap", "#{CREW_DEST_DIR}/.lock", "#{CREW_DEST_DIR}/.registry"
end
def self.postinstall
puts
puts "To start the php-fpm service, execute:".lightblue
puts "php7-fpm start".lightblue
puts
puts "To stop the php-fpm service, execute:".lightblue
puts "php7-fpm stop".lightblue
puts
puts "To restart the php-fpm service, execute:".lightblue
puts "php7-fpm restart".lightblue
puts
puts "To start php-fpm on login, execute the following:".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/bin/php7-fpm ]; then' >> ~/.bashrc".lightblue
puts "echo ' #{CREW_PREFIX}/bin/php7-fpm start' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
end
end
......@@ -3,22 +3,22 @@ require 'package'
class Php71 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '7.1.33'
version '7.1.33-1'
compatibility 'all'
source_url 'https://php.net/distributions/php-7.1.33.tar.xz'
source_sha256 'bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php71-7.1.33-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '3e4a5a3099512d1dcd676d44b689d26e5322239ec72fdffe32b5e5520dea13c5',
armv7l: '3e4a5a3099512d1dcd676d44b689d26e5322239ec72fdffe32b5e5520dea13c5',
i686: 'dad3b1186679c8765dd3649d6dee08817623399fe103986670b628b239335da5',
x86_64: 'c87d21538feb6e74c13a598a75e3a942c2b56d9c0a2f05ba00bd182585d3e22d',
aarch64: 'd87d2611d897c339dea5976b27713304aee54ea91d2d09e30d4aab2b03f714c8',
armv7l: 'd87d2611d897c339dea5976b27713304aee54ea91d2d09e30d4aab2b03f714c8',
i686: '22975a6014e0bace65b8ba90ec3835ab571e1d3c8f1ac3f4f4b324a7ffa2aaa9',
x86_64: '20587d82b1865102ca3f2c2ccddf5561685f0ba08c06da460c0dcb4f95d80669',
})
depends_on 'libgcrypt'
......
......@@ -3,22 +3,22 @@ require 'package'
class Php72 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '7.2.31'
version '7.2.31-1'
compatibility 'all'
source_url 'https://www.php.net/distributions/php-7.2.31.tar.xz'
source_sha256 '8beaa634bb878a96af9bc8643811ea46973f5f41ad2bfb6ab4cfd290e5a39806'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php72-7.2.31-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '19f7b0a248c3a2bcaa1c1aaf6ae3b0183a7cc264e3b8bf8a1f85c5a96fb17caf',
armv7l: '19f7b0a248c3a2bcaa1c1aaf6ae3b0183a7cc264e3b8bf8a1f85c5a96fb17caf',
i686: '7ccfacca9aab6c072fa2aa5d8018d48a57dbb18ef84c1f2baea7ab93144fc2e8',
x86_64: '070717ba5e5f43bbe7e132fd8a5df03148696f941cfda4ccc29f6ef84a4d2d05',
aarch64: '198692f930728393d8564873907bd705183c53e02c09694474db49e1fd8b5854',
armv7l: '198692f930728393d8564873907bd705183c53e02c09694474db49e1fd8b5854',
i686: 'bd20441b7f73bbb72e745c5aeaa66610b576f063cd62264c9e48e61cbe37ce36',
x86_64: '0f714f860c1220d8e2bf49931c1b876c20800a9c001c66c61d581743baec96c4',
})
depends_on 'libgcrypt'
......
......@@ -3,22 +3,22 @@ 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/'
version '7.3.18'
version '7.3.19'
compatibility 'all'
source_url 'https://www.php.net/distributions/php-7.3.18.tar.xz'
source_sha256 '7b3e2479a8d6fd7666dcdef8aec50d49c4599cc6ee86e48d41724cfd99cc9e58'
source_url 'https://www.php.net/distributions/php-7.3.19.tar.xz'
source_sha256 '6402faa19b1a8c4317c7612632bce985684a5bbae0980a5779a4019439882422'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.18-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.18-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.18-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.18-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.19-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.19-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.19-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php73-7.3.19-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a2a40dab453973996b69b6dac2f40aec89a45e71efa0073c126722dbb803d47a',
armv7l: 'a2a40dab453973996b69b6dac2f40aec89a45e71efa0073c126722dbb803d47a',
i686: 'ce32894fb6f6af7f6ab52fd98452c80deeb776598a9f40692b2439bf5261142e',
x86_64: '3ec6afe7b36dd5153dd39670b36b84a6fc3209842bfa72aae1137e3644e79113',
aarch64: '2526a50f40ae4c58fb573d7a8ec68ab4fa974c0d1d5398acae75adfb00f54054',
armv7l: '2526a50f40ae4c58fb573d7a8ec68ab4fa974c0d1d5398acae75adfb00f54054',
i686: '28155326f3e6c4d162c42290689b0bc5be720717ee6c721aa63b96721f53d004',
x86_64: 'fef2343c2376d2504012e0147661f834e08a50d0e16bcb981f5d102d33e7ef83',
})
depends_on 'libgcrypt'
......
......@@ -3,22 +3,22 @@ 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/'
version '7.4.6'
version '7.4.7'
compatibility 'all'
source_url 'https://www.php.net/distributions/php-7.4.6.tar.xz'
source_sha256 'd740322f84f63019622b9f369d64ea5ab676547d2bdcf12be77a5a4cffd06832'
source_url 'https://www.php.net/distributions/php-7.4.7.tar.xz'
source_sha256 '53558f8f24cd8ab6fa0ea252ca8198e2650160649681ce5230c1df1dc2b52faf'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.6-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php74-7.4.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '10662e10c1a6a2e8ca56416af4d92714a8375586da94a96e16e9b0cd937f0b5e',
armv7l: '10662e10c1a6a2e8ca56416af4d92714a8375586da94a96e16e9b0cd937f0b5e',
i686: '141abedf6e4ed807fac213728fe3a275eb6fc1f525b62c5e69059b3fd2649346',
x86_64: 'e9aaf0f81fc2ac7d9c13ff4c8e8a7e280f131b1658b827f6637f8ed93d1d2beb',
aarch64: 'c17d55078f4883974b9b304154fe644ae28f641ed90b0f0f4d89be4bf2c4d2c0',
armv7l: 'c17d55078f4883974b9b304154fe644ae28f641ed90b0f0f4d89be4bf2c4d2c0',
i686: 'ef8ee4451eaceb0e5083e894ec396b5eaa8733b6f379d4164b48b58e8b090255',
x86_64: '2a58886935dd24d76b70ea4f8a7c5648c54a764a5fc806553f048390f6f0a37b',
})
depends_on 'aspell_en'
......
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