summaryrefslogtreecommitdiff
path: root/data/libssl1.0/_metadata/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'data/libssl1.0/_metadata/preinst')
-rwxr-xr-xdata/libssl1.0/_metadata/preinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/libssl1.0/_metadata/preinst b/data/libssl1.0/_metadata/preinst
new file mode 100755
index 000000000..f38225d1e
--- /dev/null
+++ b/data/libssl1.0/_metadata/preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ upgrade != "$1" ] || dpkg --compare-versions "$2" le "1.0.2s-1"; then
+ dpkg-divert --package libssl1.0 --add --rename \
+ --divert /usr/lib/libcrypto.1.0.0.dylib.old /usr/lib/libcrypto.1.0.0.dylib
+ dpkg-divert --package libssl1.0 --add --rename \
+ --divert /usr/lib/libssl.1.0.0.dylib.old /usr/lib/libssl.1.0.0.dylib
+fi