# encoding: utf-8
#
# Author::  Joshua Timberman (<joshua@opscode.com>)
# Author::  Seth Chisamore (<schisamo@opscode.com>)
# Author::  TranceLove (airwave209gt@gmail.com)
# Cookbook Name:: chefphp
# Recipe:: module_igbinary
#
# Copyright 2009-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

php_pear 'igbinary' do
    action :install
end

template "#{node['php']['ext_conf_dir']}/igbinary.ini" do
  only_if { platform?('ubuntu') && node['platform_version'].to_f >= 12.04 && ::File.exists?('/usr/sbin/php5enmod') }
  source 'extension.ini.erb'
  owner 'root'
  group 'root'
  mode 00644
  variables({
    :name => 'igbinary',
    :directives => {}
  })
end

execute '/usr/sbin/php5enmod igbinary' do
  only_if { platform?('ubuntu') && node['platform_version'].to_f >= 12.04 && ::File.exists?('/usr/sbin/php5enmod') }
end

Add recipe for installing igbinary module
Add recipe for installing igbinary module
