-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override OpenSSL version in nginx node and python recipes
Co-authored-by: Daniel Thornton <dthornton@pivotal.io>
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
require_relative 'base' | ||
|
||
class OpenSSLRecipe < BaseRecipe | ||
def computed_options | ||
%w(--prefix=/usr --libdir=/lib/x86_64-linux-gnu --openssldir=/include/x86_64-linux-gnu/openssl) | ||
end | ||
|
||
def install | ||
return if installed? | ||
execute('install', [make_cmd, 'install', "DESTDIR=#{path}"]) | ||
end | ||
|
||
def configure | ||
execute('configure', ['bash', '-c', "./config #{computed_options.join ' '}"]) | ||
end | ||
|
||
def archive_files | ||
["#{path}/*"] | ||
end | ||
|
||
def archive_path_name | ||
'openssl' | ||
end | ||
|
||
def setup_tar | ||
`rm -Rf #{path}/html/ #{path}/conf/*` | ||
end | ||
|
||
def url | ||
"https://github.com/openssl/openssl/archive/OpenSSL_1_1_0g.tar.gz" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters