Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3746222
D929.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D929.diff
View Options
diff --git a/roles/shellserver/userland-software/openssl-legacy.sls b/roles/shellserver/userland-software/openssl-legacy.sls
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/userland-software/openssl-legacy.sls
@@ -0,0 +1,53 @@
+# -------------------------------------------------------------
+# Salt — Deploy legacy OpenSSL 1.0
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2017-02-25
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Source code
+# -------------------------------------------------------------
+
+openssl_src:
+ file.directory:
+ - name: /usr/local/src/openssl-legacy
+ - user: builder
+ - group: deployment
+ - dir_mode: 755
+ cmd.run:
+ - name: curl ftp://openssl.org/source/openssl-1.0.2k.tar.gz | tar xz --strip-components=1
+ - cwd: /usr/local/src/openssl-legacy
+ - runas: builder
+ - require:
+ - file: openssl_src
+ - unless: test -f /usr/local/src/openssl-legacy/Makefile
+
+# -------------------------------------------------------------
+# Build
+# -------------------------------------------------------------
+
+openssl_build:
+ cmd.run:
+ - name: |
+ ./config --prefix=/opt/openssl-legacy --openssldir=/etc/ssl-legacy shared zlib-dynamic
+ make depend
+ make
+ - cwd: /usr/local/src/openssl-legacy
+ - runas: builder
+ - require:
+ - file: openssl_src
+ - unless: test -f /usr/local/src/openssl-legacy/libcrypto.so
+
+# -------------------------------------------------------------
+# Install
+# -------------------------------------------------------------
+
+openssl_install:
+ cmd.run:
+ - name: make MANDIR=/opt/openssl-legacy/man MANSUFFIX=ssl install
+ - cwd: /usr/local/src/openssl-legacy
+ - require:
+ - cmd: openssl_build
+ - unless: test -f /opt/openssl-legacy/bin/openssl
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 19:24 (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247988
Default Alt Text
D929.diff (2 KB)
Attached To
Mode
D929: Install OpenSSL 1.0.2k on Eglide
Attached
Detach File
Event Timeline
Log In to Comment