diff options
author | Sam Bingner <sam@bingner.com> | 2019-12-03 10:53:47 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-05 13:30:41 -1000 |
commit | 56023e100e03c17137bc0fe9381790290bdc9f7c (patch) | |
tree | 960a246968cda33eede55c2dddca097c7e04fb6a /data/libssl1.0/_metadata/postrm | |
parent | 0ded6c2ba774897f958087828021c5109653dda1 (diff) |
Update openssl and make it work with AppleTV
Diffstat (limited to 'data/libssl1.0/_metadata/postrm')
-rwxr-xr-x | data/libssl1.0/_metadata/postrm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/libssl1.0/_metadata/postrm b/data/libssl1.0/_metadata/postrm new file mode 100755 index 000000000..131d336fe --- /dev/null +++ b/data/libssl1.0/_metadata/postrm @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then + dpkg-divert --package libssl1.0 --remove --rename \ + --divert /usr/lib/libcrypto.1.0.0.dylib.old /usr/lib/libcrypto.1.0.0.dylib + dpkg-divert --package libssl1.0 --remove --rename \ + --divert /usr/lib/libssl.1.0.0.dylib.old /usr/lib/libssl.1.0.0.dylib +fi + +if [ abort-upgrade = "$1" ] && dpkg --compare-versions "$2" le "1.0.2s-1"; then + dpkg-divert --package libssl1.0 --remove --rename \ + --divert /usr/lib/libcrypto.1.0.0.dylib.old /usr/lib/libcrypto.1.0.0.dylib + dpkg-divert --package libssl1.0 --remove --rename \ + --divert /usr/lib/libssl.1.0.0.dylib.old /usr/lib/libssl.1.0.0.dylib +fi |