summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog6
-rw-r--r--libwolfssl.24-dbg.pkg/postinst5
-rw-r--r--libwolfssl.24-dbg.pkg/prerm5
-rw-r--r--libwolfssl.24.pkg/postinst5
-rw-r--r--libwolfssl.24.pkg/prerm5
5 files changed, 14 insertions, 12 deletions
diff --git a/changelog b/changelog
index 16dd5e9..cabccc5 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+wolfssl.24 (4.4.0-3) trunk
+
+ * Fix maintainer scripts.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Fri, 07 Aug 2020 01:04:04 -0400
+
wolfssl.24 (4.4.0-2) trunk
* Drop variants. On amd64-linux-glibc for example, libwolfssl.24-client was
diff --git a/libwolfssl.24-dbg.pkg/postinst b/libwolfssl.24-dbg.pkg/postinst
index 7638dde..1b594c2 100644
--- a/libwolfssl.24-dbg.pkg/postinst
+++ b/libwolfssl.24-dbg.pkg/postinst
@@ -1,12 +1,11 @@
#!/bin/sh
-soname='libwolfssl.so.24'
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}" "${soname}" \
+ update-alternatives --install "${libfile}" "${libfile##*/}" \
"${libfile}.dbg" 20
- update-alternatives --install "${liblink}" "${soname}" \
+ update-alternatives --install "${liblink}" "${liblink##*/}" \
"${liblink}.dbg" 20
fi
diff --git a/libwolfssl.24-dbg.pkg/prerm b/libwolfssl.24-dbg.pkg/prerm
index 7d26d18..3223c7d 100644
--- a/libwolfssl.24-dbg.pkg/prerm
+++ b/libwolfssl.24-dbg.pkg/prerm
@@ -1,10 +1,9 @@
#!/bin/sh
-soname='libwolfssl.so.24'
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}" "${libfile}.dbg"
- update-alternatives --remove "${soname}" "${liblink}.dbg"
+ update-alternatives --remove "${libfile##*/}" "${libfile}.dbg"
+ update-alternatives --remove "${liblink##*/}" "${liblink}.dbg"
fi
diff --git a/libwolfssl.24.pkg/postinst b/libwolfssl.24.pkg/postinst
index ab80e84..9a23324 100644
--- a/libwolfssl.24.pkg/postinst
+++ b/libwolfssl.24.pkg/postinst
@@ -1,12 +1,11 @@
#!/bin/sh
-soname='libwolfssl.so.24'
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}" "${soname}" \
+ update-alternatives --install "${libfile}" "${libfile##*/}" \
"${libfile}.std" 10
- update-alternatives --install "${liblink}" "${soname}" \
+ update-alternatives --install "${liblink}" "${liblink##*/}" \
"${liblink}.std" 10
fi
diff --git a/libwolfssl.24.pkg/prerm b/libwolfssl.24.pkg/prerm
index a028b4c..c1f779c 100644
--- a/libwolfssl.24.pkg/prerm
+++ b/libwolfssl.24.pkg/prerm
@@ -1,10 +1,9 @@
#!/bin/sh
-soname='libwolfssl.so.24'
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}" "${libfile}.std"
- update-alternatives --remove "${soname}" "${liblink}.std"
+ update-alternatives --remove "${libfile##*/}" "${libfile}.std"
+ update-alternatives --remove "${liblink##*/}" "${liblink}.std"
fi