summaryrefslogtreecommitdiff
path: root/data/libssl1.1.1/_metadata/preinst
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-12-03 10:53:47 -1000
committerSam Bingner <sam@bingner.com>2019-12-05 13:30:41 -1000
commit56023e100e03c17137bc0fe9381790290bdc9f7c (patch)
tree960a246968cda33eede55c2dddca097c7e04fb6a /data/libssl1.1.1/_metadata/preinst
parent0ded6c2ba774897f958087828021c5109653dda1 (diff)
Update openssl and make it work with AppleTV
Diffstat (limited to 'data/libssl1.1.1/_metadata/preinst')
-rwxr-xr-xdata/libssl1.1.1/_metadata/preinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/libssl1.1.1/_metadata/preinst b/data/libssl1.1.1/_metadata/preinst
new file mode 100755
index 000000000..b99249de8
--- /dev/null
+++ b/data/libssl1.1.1/_metadata/preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ upgrade != "$1" ] || dpkg --compare-versions "$2" le "1.1.1c-1"; then
+ dpkg-divert --package libssl1.1.1 --add --rename \
+ --divert /usr/lib/libcrypto.1.1.dylib.old /usr/lib/libcrypto.1.1.dylib
+ dpkg-divert --package libssl1.1.1 --add --rename \
+ --divert /usr/lib/libssl.1.1.dylib.old /usr/lib/libssl.1.1.dylib
+fi