diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-27 07:20:16 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-27 07:22:12 (EDT) |
commit | fd935fcebe18a42dad8f9e9be3a09c829a029ae1 (patch) | |
tree | 8ffc93fc59d7fefc561eac4c5c008bfafe19ac20 | |
parent | 11218e9a094cc4768ae777430acf916f6b0a85ef (diff) |
Manage /usr/bin/ar with update-alternatives.
-rwxr-xr-x | build | 1 | ||||
-rwxr-xr-x | busybox.pkg/postinst | 5 | ||||
-rwxr-xr-x | busybox.pkg/prerm | 5 | ||||
-rw-r--r-- | changelog | 1 |
4 files changed, 12 insertions, 0 deletions
@@ -13,4 +13,5 @@ install: oh-fixperms oh-strip chmod u+s dest/bin/busybox + mv dest/usr/bin/ar dest/usr/bin/ar.busybox oh-installfiles diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst new file mode 100755 index 0000000..829a73d --- /dev/null +++ b/busybox.pkg/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + update-alternatives --install /usr/bin/ar ar /usr/bin/ar.busybox 10 +fi diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm new file mode 100755 index 0000000..7f466ae --- /dev/null +++ b/busybox.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "${1}" = remove ]; then + update-alternatives --remove ar /usr/bin/ar.busybox +fi @@ -5,6 +5,7 @@ busybox (1.21.0-1) trunk * Build-Depend on config-busybox-${Host-Plat}. * Add "source" target to download and verify source. * Cherry pick patch to install man applet in /usr/bin, not /sbin. + * Manage /usr/bin/ar with update-alternatives. * Add self to maintainers. -- "P. J. McDermott" <pjm@nac.net> Mon, 27 May 2013 06:22:21 -0400 |