Major overhaul -- most scripts rewritten or updated.
authorSteve Youngs <steve@sxemacs.org>
Sun, 9 Mar 2014 06:33:48 +0000 (16:33 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sun, 9 Mar 2014 06:33:48 +0000 (16:33 +1000)
commitf42935ec1d3286f3644fc39a4f437a19e966e3bb
treee10ddc05aabe8370792948643f67673279dbf60e
parent90738259aed952673346ee99b8481ecc9469ce05
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>
25 files changed:
LFS-pkgusr-hint.txt
README
etc/pkgusr/bash_profile
etc/pkgusr/bashrc
etc/pkgusr/handy_funcs
etc/pkgusr/skel-package/.project
etc/pkgusr/skel-package/build
etc/pkgusr/zsh/zsh-pkgtools
etc/sudoers.d/99-pkgusr [new file with mode: 0644]
installdir.lst
usr/bin/forall_direntries_from
usr/bin/grep_all_regular_files_for
usr/bin/header-symbol-search
usr/bin/lesspipe.sh
usr/bin/library-symbol-search
usr/bin/list_suspicious_files
usr/bin/list_suspicious_files_from
usr/lib/pkgusr/chgrp
usr/lib/pkgusr/chmod
usr/lib/pkgusr/chown
usr/lib/pkgusr/install
usr/lib/pkgusr/ldconfig [new file with mode: 0755]
usr/lib/pkgusr/mkdir
usr/lib/pkgusr/uninstall_package [moved from usr/bin/uninstall_package with 63% similarity]
usr/lib/pkgusr/update-pkg-project