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/control11
-rw-r--r--libwolfssl.24-dbg.pkg/files1
-rw-r--r--libwolfssl.24-dbg.pkg/postinst11
-rw-r--r--libwolfssl.24-dbg.pkg/prerm9
4 files changed, 32 insertions, 0 deletions
diff --git a/libwolfssl.24-dbg.pkg/control b/libwolfssl.24-dbg.pkg/control
new file mode 100644
index 0000000..0f6a852
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/control
@@ -0,0 +1,11 @@
+Architecture: any
+Platform: all
+Section: dbg
+Depends:
+ libwolfssl.${Abi-Version}:${Host-Arch} (= ${Binary-Version}),
+ ${Shlib-Depends},
+Description: Lightweight TLS library - debugging library
+ ${Common-Description}
+ .
+ This package provides the wolfSSL TLS library with debugging symbols and error
+ strings.
diff --git a/libwolfssl.24-dbg.pkg/files b/libwolfssl.24-dbg.pkg/files
new file mode 100644
index 0000000..f2f486e
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/files
@@ -0,0 +1 @@
+/usr/lib/*/libwolfssl.so.*
diff --git a/libwolfssl.24-dbg.pkg/postinst b/libwolfssl.24-dbg.pkg/postinst
new file mode 100644
index 0000000..1b594c2
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+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 "${libfile}" "${libfile##*/}" \
+ "${libfile}.dbg" 20
+ update-alternatives --install "${liblink}" "${liblink##*/}" \
+ "${liblink}.dbg" 20
+fi
diff --git a/libwolfssl.24-dbg.pkg/prerm b/libwolfssl.24-dbg.pkg/prerm
new file mode 100644
index 0000000..3223c7d
--- /dev/null
+++ b/libwolfssl.24-dbg.pkg/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+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 "${libfile##*/}" "${libfile}.dbg"
+ update-alternatives --remove "${liblink##*/}" "${liblink}.dbg"
+fi