Skip to content

Commit

Permalink
fixes regarding cert support
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed May 5, 2017
1 parent 359c513 commit 02675fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/Package/curl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ sub configure_flags {
'--enable-ldaps',
'--disable-dependency-tracking',
'--with-ssl=/usr/local/php5',
'--with-ca-bundle=/usr/local/php5/ssl/cert.pem',
'--with-libidn='.$self->config()->prefix(),
'--disable-ares'
);
Expand Down
2 changes: 1 addition & 1 deletion lib/Package/libiodbc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub configure_flags {


sub subpath_for_check {
return "lib/libxml2.dylib";
return "lib/libodbc.a";
}


Expand Down
5 changes: 3 additions & 2 deletions lib/Package/php5.pm
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ sub install {
#}
$self->shell({silent => 0}, "test -d $prefix/php.d || mkdir $prefix/php.d");
$self->shell({silent => 0}, "perl -p -i -e 's# -L\\S+c-client##' $prefix/bin/php-config");
$self->shell({silent => 0}, "curl -o $prefix/ssl/certs/cacert.pem https://curl.haxx.se/ca/cacert.pem");
$self->shell({silent => 0}, "echo 'openssl.cafile=/usr/local/php5/ssl/certs/cacert.pem' >> $prefix/php.d/40-openssl.ini");
$self->shell({silent => 0}, "curl -o $prefix/ssl/cert.pem https://curl.haxx.se/ca/cacert.pem");
$self->shell({silent => 0}, "echo 'openssl.cafile=/usr/local/php5/ssl/cert.pem' >> $prefix/php.d/40-openssl.ini");
$self->shell({silent => 0}, "echo 'curl.cainfo=/usr/local/php5/ssl/cert.pem' >> $prefix/php.d/40-curl.ini");

$self->create_dso_ini_files();

Expand Down

0 comments on commit 02675fc

Please sign in to comment.