Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/autoparts/packages/php5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ module Autoparts
module Packages
class Php5 < Package
name 'php5'
version '5.5.15'
description 'PHP 5.5: A popular general-purpose scripting language that is especially suited to web development. Prebuild extensions default + mbstring, mysql, sqlite3 and openssl'
source_url 'http://us.php.net/get/php-5.5.15.tar.gz/from/this/mirror'
source_sha1 'd9df11b97a9f1c686194e91165602f47e3bd74e6'
version '5.6.11'
description 'PHP 5.6: A popular general-purpose scripting language that is especially suited to web development. Prebuild extensions default + mbstring, mysql, sqlite3 and openssl'
source_url 'http://php.net/get/php-5.6.11.tar.gz/from/this/mirror'
source_sha1 'ed572049e6be08a7595d722986d29ff9a7f636e9'
source_filetype 'tar.gz'
category Category::WEB_DEVELOPMENT

depends_on 'libmcrypt'

def compile
Dir.chdir("php-5.5.15") do
Dir.chdir("php-5.6.11") do
args = [
"--with-mcrypt=#{get_dependency("libmcrypt").prefix_path}",
# path
Expand Down Expand Up @@ -48,7 +48,7 @@ def compile
end

def install
Dir.chdir("php-5.5.15") do
Dir.chdir("php-5.6.11") do
execute 'make install'
execute 'cp', 'php.ini-development', "#{lib_path}/php.ini"
end
Expand Down
10 changes: 5 additions & 5 deletions lib/autoparts/packages/php5_apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ module Autoparts
module Packages
class Php5Apache2 < Package
name 'php5-apache2'
version '5.5.15'
version '5.6.11'
description 'Php5 Apache: a php5 module for apache2.'
source_url 'http://us.php.net/get/php-5.5.15.tar.gz/from/this/mirror'
source_sha1 'd9df11b97a9f1c686194e91165602f47e3bd74e6'
source_url 'http://us.php.net/get/php-5.6.11.tar.gz/from/this/mirror'
source_sha1 'ed572049e6be08a7595d722986d29ff9a7f636e9'
source_filetype 'tar.gz'
category Category::WEB_DEVELOPMENT

Expand All @@ -18,7 +18,7 @@ class Php5Apache2 < Package

def compile
apache2_libphp5_path.unlink if apache2_libphp5_path.exist?
Dir.chdir("php-5.5.15") do
Dir.chdir("php-5.6.11") do
args = [
"--with-apxs2=#{apache2_dependency.bin_path + "apxs"}",
"--with-mcrypt=#{get_dependency("libmcrypt").prefix_path}",
Expand Down Expand Up @@ -51,7 +51,7 @@ def compile
end

def install
Dir.chdir("php-5.5.15") do
Dir.chdir("php-5.6.11") do
lib_path.mkpath
execute 'cp', 'php.ini-development', "#{lib_path}/php.ini"
# force apache2 to rewrite its config to get a pristine config
Expand Down
8 changes: 4 additions & 4 deletions lib/autoparts/packages/php5_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ module Php5Ext
extend ActiveSupport::Concern

included do
self.version '5.5.15'
self.source_url 'http://us.php.net/get/php-5.5.15.tar.gz/from/this/mirror'
self.source_sha1 'd9df11b97a9f1c686194e91165602f47e3bd74e6'
self.version '5.6.11'
self.source_url 'http://us.php.net/get/php-5.6.11.tar.gz/from/this/mirror'
self.source_sha1 'ed572049e6be08a7595d722986d29ff9a7f636e9'
self.source_filetype 'tar.gz'
self.depends_on 'php5'

def php_extension_dir
"php-5.5.15/ext/" + php_extension_name
"php-5.6.11/ext/" + php_extension_name
end


Expand Down