From 09a968aeffda6fe17fca07474699cfc39ce77472 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 02 Jun 2013 14:45:04 -0400 Subject: Manage /usr/bin/strings with update-alternatives. --- 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 diff --git a/build b/build index 7ed10b6..a9fbab4 100755 --- a/build +++ b/build @@ -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; \ -- cgit v0.9.1