Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'COOK-2461'

  • Loading branch information...
commit 2ce29785ed3eec72bbf0c32d6fa73e6a632b7913 2 parents b590a38 + eb06d43
@jtimberman jtimberman authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 recipes/mod_auth_openid.rb
View
12 recipes/mod_auth_openid.rb
@@ -18,7 +18,7 @@
#
openid_dev_pkgs = value_for_platform_family(
- ["debian"] => %w{make g++ apache2-prefork-dev libopkele-dev libopkele3},
+ ["debian"] => %w{make g++ apache2-prefork-dev libopkele-dev libopkele3 libtool},
["rhel", "fedora"] => %w{gcc-c++ httpd-devel curl-devel libtidy libtidy-devel sqlite-devel pcre-devel openssl-devel make},
"arch" => ["libopkele"],
"freebsd" => %w{libopkele pcre sqlite3}
@@ -81,11 +81,17 @@
action :nothing
end
-bash "install mod_auth_openid" do
+bash "untar mod_auth_openid" do
cwd Chef::Config['file_cache_path']
code <<-EOH
tar zxvf mod_auth_openid-#{version}.tar.gz
- cd mod_auth_openid-#{version} && ./autogen.sh
+ EOH
+end
+
+bash "compile mod_auth_openid" do
+ cwd "#{Chef::Config['file_cache_path']}/mod_auth_openid-#{version}"
+ code <<-EOH
+ ./autogen.sh
./configure #{configure_flags.join(' ')}
perl -pi -e "s/-i -a -n 'authopenid'/-i -n 'authopenid'/g" Makefile
#{make_cmd} && #{make_cmd} install
Please sign in to comment.
Something went wrong with that request. Please try again.