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
487f224a
Commit
487f224a
authored
Mar 25, 2021
by
satmandu
Committed by
GitHub
Mar 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenSSL 1.1.1k (#5492)
parent
b667b544
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
39 deletions
+38
-39
packages/openssl.rb
packages/openssl.rb
+38
-39
No files found.
packages/openssl.rb
View file @
487f224a
...
@@ -3,68 +3,67 @@ require 'package'
...
@@ -3,68 +3,67 @@ require 'package'
class
Openssl
<
Package
class
Openssl
<
Package
description
'The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
description
'The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
homepage
'https://www.openssl.org'
homepage
'https://www.openssl.org'
@_ver
=
'1.1.1
i
'
@_ver
=
'1.1.1
k
'
version
@_ver
+
'-1'
version
@_ver
license
'openssl'
license
'openssl'
compatibility
'all'
compatibility
'all'
source_url
"https://www.openssl.org/source/openssl-
#{
@_ver
}
.tar.gz"
source_url
"https://www.openssl.org/source/openssl-
#{
@_ver
}
.tar.gz"
source_sha256
'
e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
'
source_sha256
'
892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
'
binary_url
({
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1i-1
-chromeos-armv7l.tar.xz'
,
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1k
-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1i-1
-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1k
-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1i-1
-chromeos-i686.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1k
-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1i-1-chromeos-x86_64.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/openssl-1.1.1k-chromeos-x86_64.tar.xz'
})
})
binary_sha256
({
binary_sha256
({
aarch64:
'6b4db90acb22c772dcb70d5688033b26230d3e10f2037ee56422f38b8fbd0029
'
,
aarch64:
'4b5a6ff1bbd03a7adf09acebe3b7a928de9a8520e260360f9f4fac8e7c83e903
'
,
armv7l:
'6b4db90acb22c772dcb70d5688033b26230d3e10f2037ee56422f38b8fbd0029
'
,
armv7l:
'4b5a6ff1bbd03a7adf09acebe3b7a928de9a8520e260360f9f4fac8e7c83e903
'
,
i686:
'22aae2e468cab25f6258c07cce8afe586b906297d2af602762516c5fd1cd93b5
'
,
i686:
'84d388677881fa56ccfa2dd7bd05ff8ef8ddcccebf30d60e7d13194e18c64e51
'
,
x86_64:
'c5d19a3cab5f38898f4875ca2be57c3a8fb23c73726dd14e29f7bed02d252eb0'
,
x86_64:
'fbcbe9955bd9b8cb9de3f7b2d5c77a4fcd9d8e5704afd192ad597871162a690d'
})
})
depends_on
'ccache'
=>
:build
depends_on
'ccache'
=>
:build
case
ARCH
case
ARCH
when
'aarch64'
,
'armv7l'
when
'aarch64'
,
'armv7l'
@
ARCH_C_FLAGS
=
'-fPIC -march=armv7-a -mfloat-abi=hard'
@
arch_c_flags
=
'-fPIC -march=armv7-a -mfloat-abi=hard'
@
ARCH_CXX_FLAGS
=
'-fPIC -march=armv7-a -mfloat-abi=hard'
@
arch_cxx_flags
=
'-fPIC -march=armv7-a -mfloat-abi=hard'
OPENSSL_CONFIGURE_TARGET
=
'linux-generic32'
@openssl_configure_target
=
'linux-generic32'
when
'i686'
when
'i686'
@
ARCH_C_FLAGS
=
'-fPIC'
@
arch_c_flags
=
'-fPIC'
@
ARCH_CXX_FLAGS
=
'-fPIC'
@
arch_cxx_flags
=
'-fPIC'
OPENSSL_CONFIGURE_TARGET
=
'linux-x86'
@openssl_configure_target
=
'linux-x86'
when
'x86_64'
when
'x86_64'
@
ARCH_C_FLAGS
=
'-fPIC'
@
arch_c_flags
=
'-fPIC'
@
ARCH_CXX_FLAGS
=
'-fPIC'
@
arch_cxx_flags
=
'-fPIC'
OPENSSL_CONFIGURE_TARGET
=
'linux-x86_64'
@openssl_configure_target
=
'linux-x86_64'
end
end
@ARCH_C_LTO_FLAGS
=
"
#{
@ARCH_C_FLAGS
}
-flto=auto"
@ARCH_LDFLAGS
=
'-flto=auto'
@ARCH_CXX_LTO_FLAGS
=
"
#{
@ARCH_CXX_FLAGS
}
-flto=auto"
@ARCH_C_LTO_FLAGS
=
"
#{
@arch_c_flags
}
-flto=auto"
@ARCH_CXX_LTO_FLAGS
=
"
#{
@arch_cxx_flags
}
-flto=auto"
def
self
.
build
def
self
.
build
# This gives you the list of OpenSSL configure targets
# This gives you the list of OpenSSL configure targets
system
"./Configure LIST"
system
'./Configure LIST'
system
"env PATH=
#{
CREW_LIB_PREFIX
}
/ccache/bin:
#{
CREW_PREFIX
}
/bin:/usr/bin:/bin \
system
"env PATH=
#{
CREW_LIB_PREFIX
}
/ccache/bin:
#{
CREW_PREFIX
}
/bin:/usr/bin:/bin \
CFLAGS=
\"
#{
@ARCH_C_LTO_FLAGS
}
\"
CXXFLAGS=
\"
#{
@ARCH_CXX_LTO_FLAGS
}
\"
\
CFLAGS=
\"
#{
@ARCH_C_LTO_FLAGS
}
\"
CXXFLAGS=
\"
#{
@ARCH_CXX_LTO_FLAGS
}
\"
\
LDFLAGS=
\"
#{
@ARCH_LDFLAGS
}
\"
\
./Configure --prefix=
#{
CREW_PREFIX
}
\
./Configure --prefix=
#{
CREW_PREFIX
}
\
--libdir=
#{
CREW_LIB_PREFIX
}
\
--libdir=
#{
CREW_LIB_PREFIX
}
\
--openssldir=
#{
CREW_PREFIX
}
/etc/ssl \
--openssldir=
#{
CREW_PREFIX
}
/etc/ssl \
#{
OPENSSL_CONFIGURE_TARGET
}
"
#{
@openssl_configure_target
}
"
system
"make"
system
'make'
end
end
def
self
.
check
def
self
.
check
system
"make test"
system
'make test'
end
end
def
self
.
install
def
self
.
install
system
"make DESTDIR=
#{
CREW_DEST_DIR
}
install_sw install_ssldirs"
system
"make DESTDIR=
#{
CREW_DEST_DIR
}
install_sw install_ssldirs"
# For Libressl Compatibility
# For Libressl Compatibility
#FileUtils.ln_s "#{CREW_LIB_PREFIX}/libssl.so", "#{CREW_DEST_LIB_PREFIX}/libssl.so.48"
#
FileUtils.ln_s "#{CREW_LIB_PREFIX}/libssl.so", "#{CREW_DEST_LIB_PREFIX}/libssl.so.48"
#FileUtils.ln_s "#{CREW_LIB_PREFIX}/libcrypto.so", "#{CREW_DEST_LIB_PREFIX}/libcrypto.so.46"
#
FileUtils.ln_s "#{CREW_LIB_PREFIX}/libcrypto.so", "#{CREW_DEST_LIB_PREFIX}/libcrypto.so.46"
end
end
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