Commit c7d84957 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #181 from minektur/openssl-devel

Openssl_devel  - headers to allow Python building against system openssl
parents 5a62bc61 b30f3d79
......@@ -4,9 +4,10 @@ class Libevent < Package # name the
version '2.0.22' # software version
source_url 'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz' # software source tarball url
source_sha1 'a586882bc93a208318c70fc7077ed8fca9862864' # source tarball sha1 sum
depends_on 'openssl_devel'
def self.build # self.build contains commands needed to build the software from source
system "./configure --disable-openssl"
system "./configure"
system "make" # ordered chronologically
end
......
require 'package'
#Installs JUST the headers to match the chromeos supplied libraries so that you can build things
# that link with openssl. Needs to be kept version-synced with chromeos releases
# Could detect current version and grab one of many different packages, compare to saved
# hashes and support multiple versions if needed
#grumble - package names in crew must conform to ruby variable name restrictions. For instance '-' is disallowed
class Openssl_devel < Package
version '1.0.2f'
# chromeos wget can't do proper ssl negotiation with this server
# source_url 'https://www.openssl.org/source/old/1.0.2/openssl-1.0.2f.tar.gz'
# so use their ftp server.
source_url 'ftp://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2f.tar.gz'
source_sha1 '2047c592a6e5a42bd37970bdb4a931428110a927'
depends_on 'perl'
def self.build
# only need to run config to get the headers set up right
system './config'
end
def self.install
out = "#{CREW_DEST_DIR}/usr/local/include/openssl"
system "mkdir -p #{out}"
`ls ./include/openssl`.split(' ').each do |header|
system "cp", "./include/openssl/#{header}", out
end
#system "cp", "./include/openssl/*", "#{out}"
end
end
......@@ -7,6 +7,7 @@ class Python27 < Package
depends_on 'bz2'
depends_on 'ncurses'
depends_on 'openssl_devel'
def self.build # self.build contains commands needed to build the software from source
system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\""
......
......@@ -4,6 +4,8 @@ class Python34 < Package
version '3.4.1'
source_url 'https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz' # software source tarball url
source_sha1 'e8c1bd575a6ccc2a75f79d9d094a6a29d3802f5d' # source tarball sha1 sum
depends_on 'openssl_devel'
def self.build # self.build contains commands needed to build the software from source
system "./configure"
......
......@@ -7,6 +7,8 @@ class Tmux < Package # name the pack
depends_on 'readline' # software dependencies
depends_on 'libevent'
# does this really depend on openssl? or just on libevent that depends on openssl
depends_on 'openssl_devel'
depends_on 'ncurses'
def self.build # self.build contains commands needed to build the software from source
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment