diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-02 14:45:04 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-02 14:45:04 (EDT) |
commit | 09a968aeffda6fe17fca07474699cfc39ce77472 (patch) | |
tree | e54c2f50d4ea73992f22b82145f7b6686deb4700 | |
parent | f3a128d85881844715fe3f7db6a9b241d864382c (diff) |
Manage /usr/bin/strings with update-alternatives.
-rw-r--r-- | binutils.pkg.in/postinst | 2 | ||||
-rw-r--r-- | binutils.pkg.in/prerm | 1 | ||||
-rwxr-xr-x | build | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/binutils.pkg.in/postinst b/binutils.pkg.in/postinst index ebd719d..c2bdc2a 100644 --- a/binutils.pkg.in/postinst +++ b/binutils.pkg.in/postinst @@ -4,5 +4,7 @@ if [ "x${1}" = 'xconfigure' ]; then if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then update-alternatives --install /usr/bin/ar ar \ /usr/bin/ar.binutils 20 + update-alternatives --install /usr/bin/strings strings \ + /usr/bin/strings.binutils 20 fi fi diff --git a/binutils.pkg.in/prerm b/binutils.pkg.in/prerm index 0eda014..6966487 100644 --- a/binutils.pkg.in/prerm +++ b/binutils.pkg.in/prerm @@ -3,5 +3,6 @@ if [ "${1}" = remove ]; then if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then update-alternatives --remove ar /usr/bin/ar.binutils + update-alternatives --remove strings /usr/bin/strings.binutils fi fi @@ -115,6 +115,8 @@ install: build for util in "binutils-$${target}.data/usr/bin/$${target}-"*; do \ if [ "$${util##*/$${target}-}" = 'ar' ]; then \ dest='ar.binutils'; \ + elif [ "$${util##*/$${target}-}" = 'strings' ]; then \ + dest='strings.binutils'; \ else \ dest="$${util##*/$${target}-}"; \ fi; \ |