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/prerm8
2 files changed, 16 insertions, 0 deletions
diff --git a/libwolfssl.24-dbg.pkg/postinst b/libwolfssl.24-dbg.pkg/postinst
new file mode 100644
index 0000000..9344a9f
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+soname='libwolfssl.so.24'
+lib="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+
+if [ x"${1}" = x'configure' ]; then
+ update-alternatives --install "${lib}" "${soname}" "${lib}.dbg" 20
+fi
diff --git a/libwolfssl.24-dbg.pkg/prerm b/libwolfssl.24-dbg.pkg/prerm
new file mode 100644
index 0000000..8f8fc95
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+soname='libwolfssl.so.24'
+lib="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+
+if [ x"${1}" = x'remove' ]; then
+ update-alternatives --remove "${soname}" "${lib}.dbg"
+fi