Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
b0e8cf1a
Commit
b0e8cf1a
authored
Jun 06, 2017
by
lyxell
Committed by
GitHub
Jun 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #714 from jam7/update/openssl
Update openssl to 1.0.2l and distribute with pre-built arm binaries
parents
78be5b61
e8773426
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
packages/openssl.rb
packages/openssl.rb
+24
-7
No files found.
packages/openssl.rb
View file @
b0e8cf1a
...
...
@@ -3,13 +3,21 @@ require 'package'
class
Openssl
<
Package
description
'OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.'
homepage
'https://www.openssl.org/'
version
'1.0.2
k
'
version
'1.0.2
l
'
source_url
'ftp://openssl.org/source/openssl-1.0.2k.tar.gz'
source_sha1
'5f26a624479c51847ebd2f22bb9f84b3b44dcb44'
source_url
'https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz'
source_sha1
'5bea0957b371627e8ebbee5bef221519e94d547c'
binary_url
({
aarch64:
'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz'
,
armv7l:
'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz'
,
})
binary_sha1
({
aarch64:
'4c9eb37df898e9495a8f53e3aa7f6058063fa8ce'
,
armv7l:
'4c9eb37df898e9495a8f53e3aa7f6058063fa8ce'
,
})
depends_on
'perl'
depends_on
'zlibpkg'
depends_on
'perl'
=>
:build
depends_on
'zlibpkg'
=>
:build
def
self
.
build
options
=
"shared zlib-dynamic"
...
...
@@ -18,14 +26,23 @@ class Openssl < Package
end
system
"./config --prefix=/usr/local --openssldir=/etc/ssl
#{
options
}
"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"find . -name '*.so.*' -print | xargs strip -S"
end
def
self
.
install
# installing using multi cores may cause empty libssl.so.1.0.0 or libcrypto.so.1.0.0 problem
system
"make"
,
"-j1"
,
"INSTALL_PREFIX=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"INSTALL_PREFIX=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/openssl"
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'lib*.a' -print | xargs rm"
# move man to /usr/local/man
system
"mv"
,
"
#{
CREW_DEST_DIR
}
/etc/ssl/man"
,
"
#{
CREW_DEST_DIR
}
/usr/local/man"
# remove all files pretended to install /etc/ssl (use system's /etc/ssl as is)
system
"rm"
,
"-rf"
,
"
#{
CREW_DEST_DIR
}
/etc"
end
def
self
.
check
system
"make"
,
"test"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment