summaryrefslogtreecommitdiffstats
path: root/libwolfssl.24-dbg.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'libwolfssl.24-dbg.pkg')
-rw-r--r--libwolfssl.24-dbg.pkg/postinst8
-rw-r--r--libwolfssl.24-dbg.pkg/prerm6
2 files changed, 10 insertions, 4 deletions
diff --git a/libwolfssl.24-dbg.pkg/postinst b/libwolfssl.24-dbg.pkg/postinst
index 9344a9f..7638dde 100644
--- a/libwolfssl.24-dbg.pkg/postinst
+++ b/libwolfssl.24-dbg.pkg/postinst
@@ -1,8 +1,12 @@
#!/bin/sh
soname='libwolfssl.so.24'
-lib="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+libfile="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+liblink="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24"
if [ x"${1}" = x'configure' ]; then
- update-alternatives --install "${lib}" "${soname}" "${lib}.dbg" 20
+ update-alternatives --install "${libfile}" "${soname}" \
+ "${libfile}.dbg" 20
+ update-alternatives --install "${liblink}" "${soname}" \
+ "${liblink}.dbg" 20
fi
diff --git a/libwolfssl.24-dbg.pkg/prerm b/libwolfssl.24-dbg.pkg/prerm
index 8f8fc95..7d26d18 100644
--- a/libwolfssl.24-dbg.pkg/prerm
+++ b/libwolfssl.24-dbg.pkg/prerm
@@ -1,8 +1,10 @@
#!/bin/sh
soname='libwolfssl.so.24'
-lib="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+libfile="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+liblink="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24"
if [ x"${1}" = x'remove' ]; then
- update-alternatives --remove "${soname}" "${lib}.dbg"
+ update-alternatives --remove "${soname}" "${libfile}.dbg"
+ update-alternatives --remove "${soname}" "${liblink}.dbg"
fi