From a20a95a49f69d3b986f7321d2b240019142c1216 Mon Sep 17 00:00:00 2001 From: "D.M.D. Ljungmark" Date: Sat, 13 Apr 2002 00:48:03 +0000 Subject: split scanning script to bins and libs --- media-libs/libpng/files/libpng-update-bins.sh | 21 +++++++++++++++++++++ media-libs/libpng/files/libpng-update-libs.sh | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 media-libs/libpng/files/libpng-update-bins.sh create mode 100644 media-libs/libpng/files/libpng-update-libs.sh (limited to 'media-libs/libpng/files') diff --git a/media-libs/libpng/files/libpng-update-bins.sh b/media-libs/libpng/files/libpng-update-bins.sh new file mode 100644 index 000000000000..80422f3c365f --- /dev/null +++ b/media-libs/libpng/files/libpng-update-bins.sh @@ -0,0 +1,21 @@ +#!/bin/bash +if [ ! -f /usr/sbin/qpkg ]; then + echo "qpkg not found, will emerge gentoolkit" + emerge gentoolkit +fi +rm -f /tmp/pngstuff.* +echo "scanning /usr do not be alarmed of error messages" +find /usr -type f -perm +u+x | while read FOO; do + ldd "${FOO}" | grep libpng.so.2 && /usr/sbin/qpkg -nc -f ${FOO} >>/tmp/pngstuff.bins +done + + +cat /tmp/pngstuff.bins |sort | uniq | sed 's:\(.*/.*\)-[0-9]\+.*:\1:g' >/tmp/pngstuff.bins.rebuild +echo "You will now need to rebuild the following packages" +echo "-----------" +cat /tmp/pngstuff.bins.rebuild +echo "-----------" +# cat /tmp/pngstuff.bins.rebuild | while read PACK; do emerge ${PACK}; done +echo "done, deleting tempfiles" +rm -f /tmp/pngstuff.* + diff --git a/media-libs/libpng/files/libpng-update-libs.sh b/media-libs/libpng/files/libpng-update-libs.sh new file mode 100644 index 000000000000..d3be235a2b7e --- /dev/null +++ b/media-libs/libpng/files/libpng-update-libs.sh @@ -0,0 +1,22 @@ +#!/bin/bash +if [ ! -f /usr/sbin/qpkg ]; then + echo "qpkg not found, will emerge gentoolkit" + emerge gentoolkit +fi +rm -f /tmp/pngstuff.* +echo "Scanning libraries. do not be alarmed of error messages" + +find /usr/lib -type f -perm +u+x | while read LIB; do + ldd "${LIB}" | grep "libpng.so.2" && /usr/sbin/qpkg -nc -f "${LIB}" >>/tmp/pngstuff.libs +done +cat /tmp/pngstuff.libs |sort | uniq | sed 's:\(.*/.*\)-[0-9]\+.*:\1:g' >/tmp/pngstuff.libs.rebuild +echo "You will now need to rebuild the following packages" +echo "------------" +cat /tmp/pngstuff.libs.rebuild +echo "------------" +# cat /tmp/pngstuff.libs.rebuild | while read PACK; do emerge ${PACK}; done +echo "--- Done with libraries ---" + + +rm -f /tmp/pngstuff.* + -- cgit v1.2.3-65-gdbad