diff options
Diffstat (limited to 'data/libssl1.1.1/_metadata')
-rw-r--r-- | data/libssl1.1.1/_metadata/in.1200.00 | 0 | ||||
-rwxr-xr-x | data/libssl1.1.1/_metadata/postrm | 9 | ||||
-rwxr-xr-x | data/libssl1.1.1/_metadata/preinst | 8 |
3 files changed, 17 insertions, 0 deletions
diff --git a/data/libssl1.1.1/_metadata/in.1200.00 b/data/libssl1.1.1/_metadata/in.1200.00 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/data/libssl1.1.1/_metadata/in.1200.00 diff --git a/data/libssl1.1.1/_metadata/postrm b/data/libssl1.1.1/_metadata/postrm new file mode 100755 index 000000000..b68bb66da --- /dev/null +++ b/data/libssl1.1.1/_metadata/postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ] || \ + ( [ abort-upgrade = "$1" ] && dpkg --compare-versions "$2" le "1.1.1c-1" ); then + dpkg-divert --package libssl1.1.1 --remove --rename \ + --divert /usr/lib/libcrypto.1.1.dylib.old /usr/lib/libcrypto.1.1.dylib + dpkg-divert --package libssl1.1.1 --remove --rename \ + --divert /usr/lib/libssl.1.1.dylib.old /usr/lib/libssl.1.1.dylib +fi 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 |