Major overhaul -- most scripts rewritten or updated.
* etc/pkgusr/bash_profile (LESSCHARSET): Everything's god-damned
UTF-8 these days
(PKG_CONFIG_PATH): More readable.
(SUPPRESSLOCALEDIR): Add.
* etc/pkgusr/handy_funcs (find_pkg_deps): New.
(instg): New, for grepping install logs for '*** msg'.
(less-or-cat): New, for log viewing, does what it says.
(H-pkg): Much nicer format, pipe through less.
General tidy up. Convert a lot of tiny functions to aliases, plus
added a couple of new ones... ipkg->showinst, gpkg->showgen
* etc/pkgusr/skel-package/build (SRCTREE): New.
(configure_commands): Use $SRCTREE
(update_commands): Use find_pkg_deps()
* etc/pkgusr/zsh/zsh-pkgtools (pkgwant): Use grep -w to eliminate
false positives.
* etc/sudoers.d/99-pkgusr: New. Sudo config to allow pkgusrs to
run ldconfig as root.
* usr/bin/forall_direntries_from: Update Bastard settings.
Make -noleaf optional, default off.
Update comments.
* usr/bin/grep_all_regular_files_for: Ditto.
* usr/bin/list_suspicious_files: Ditto.
* usr/bin/header-symbol-search: Update Bastard settings.
* usr/bin/library-symbol-search: Ditto.
* usr/bin/lesspipe.sh: Get charset from `file -i' to see if
strings can be used.
* usr/bin/uninstall_package (run): Only remove directories if they
are empty.
Do NOT let root use this script.
* usr/lib/pkgusr/chgrp: Handle cases where chgrp options are used
and also where the user is not a member of the group trying to be
changed to. Handle both names and GIDs
Don't let root use this script.
* usr/lib/pkgusr/chmod: Handle cases where chmod options are used
and also all set{uid,gid,sticky} bit operations.
Don't let root use this script.
* usr/lib/pkgusr/chown: Rewrite. Handle all chown scenarios.
Don't let root use this script.
* usr/lib/pkgusr/mkdir: Comment about the irrelevance to my
needs.
Don't let root use this script.
* usr/lib/pkgusr/update-pkg-project (upd_pkg_deps): New, use it,
does what it says.
* usr/lib/pkgusr/install: Complete rewrite.
Don't let root use this script.
* usr/lib/pkgusr/ldconfig: New. Wrapper to run ldconfig via sudo.
* installdir.lst: Update.
* README: Update.
* LFS-pkgusr-hint.txt: Updated to current version of the
LFS hint.
Signed-off-by: Steve Youngs <steve@sxemacs.org>