Sha256: 559ac57d14670374747af2a87a5f5ae4d23641a4035d8b1dd5e54579d7eb4832
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
require 'mkmf' File.delete 'config.h' if File.exist? 'config.h' ssldir = (`openssl version -d`.chomp.split(/:/)[1]).gsub(' ', '').gsub(/"/, '') certdir = "#{ssldir}/certs" certpath = ENV['SSL_CERT_PATH'] if certpath.nil? filenames = %w(ca-bundle.crt ca-certificates.crt ca-bundle.trust.crt tls-ca-bundle.pem cert.pem) dirs = [ssldir, certdir] filenames.each do |name| dirs.each do |dir| path = "#{dir}/#{name}" if File.exist?(path) & certpath.nil? certpath = path end end end end # determine the platform name uname=`uname -sm | tr ' ' -`.chomp tclink_version = '4.5.0' # config.h file sets TCLINK_VERSION with approperiate environment information File.open("config.h", "w") do |f| f.puts "#define TCLINK_VERSION \"#{tclink_version}-Ruby-#{uname}\"" f.puts "#define TCLINK_CA_PATH \"#{certpath}\"" end have_library("crypto", "CRYPTO_lock") have_library("ssl", "SSL_connect") create_makefile("tclink/tclink")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tclink_gs-4.5.0 | ext/tclink/extconf.rb |