diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-10 10:33:58 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-11 01:06:24 (EST) |
commit | 960bc63bf71108bb91513022eb5d848441f45f66 (patch) | |
tree | 317b8901d66da3b86da0f4644584620b44219af0 | |
parent | 6ea3071112bc5cfab7dc5bf552e7a912537ff6cf (diff) |
update-alternatives /usr/bin/dialog
-rwxr-xr-x | build | 1 | ||||
-rw-r--r-- | dialog-ncursesw.pkg/files | 2 | ||||
-rw-r--r-- | dialog-ncursesw.pkg/postinst | 6 | ||||
-rw-r--r-- | dialog-ncursesw.pkg/prerm | 6 |
4 files changed, 14 insertions, 1 deletions
@@ -20,6 +20,7 @@ build: install: build set -e; for lib in $(curses_libs); do \ oh-autoinstall -B build_$${lib}; \ + mv dest/usr/bin/dialog dest/usr/bin/dialog.$${lib}; \ done rm dest/usr/lib/$(OPK_HOST_ARCH)/libdialog.a oh-fixperms diff --git a/dialog-ncursesw.pkg/files b/dialog-ncursesw.pkg/files index 78fab77..05d5a66 100644 --- a/dialog-ncursesw.pkg/files +++ b/dialog-ncursesw.pkg/files @@ -1 +1 @@ -/usr/bin/dialog +/usr/bin/dialog.ncursesw diff --git a/dialog-ncursesw.pkg/postinst b/dialog-ncursesw.pkg/postinst new file mode 100644 index 0000000..ab6650c --- /dev/null +++ b/dialog-ncursesw.pkg/postinst @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ x"${1}" = x'configure' ]; then + update-alternatives --install /usr/bin/dialog dialog \ + /usr/bin/dialog.ncursesw 30 +fi diff --git a/dialog-ncursesw.pkg/prerm b/dialog-ncursesw.pkg/prerm new file mode 100644 index 0000000..ab7d26c --- /dev/null +++ b/dialog-ncursesw.pkg/prerm @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ x"${1}" = x'remove' ] || [ x"${1}" = x'purge' ] || [ x"${1}" = x'upgrade' ] +then + update-alternatives --remove /usr/bin/dialog /usr/bin/dialog.ncursesw +fi |