Add /etc/mail/certs to prune_prefixes For Bastard settings * usr/bin/forall_direntries_from (prune_prefixes): Add /etc/mail/certs for bastard * usr/bin/grep_all_regular_files_for (prune_prefixes): Ditto. * usr/bin/list_suspicious_files (prune_prefixes): Ditto. Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Minor script tweaks * usr/bin/grep_all_regular_files_for (fs_to_scan): Adjust bastard settings. * usr/bin/forall_direntries_from (fs_to_scan): Adjust bastard settings. (IGNORE_READDIR_RACE): Allow it to be set, default to empty. Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Update prune_prefixes * usr/bin/forall_direntries_from (prune_prefixes): * usr/bin/grep_all_regular_files_for (prune_prefixes): * usr/bin/list_suspicious_files (prune_prefixes): Add /var/lib/{portables,private} to the bastard vars. Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Lots of juicy updates Updated the various scripts to deal with /usr/lib/deprecated in a better way (I hope). Deprecated libs are given special mention at the bottom of a package's .project. Re-wrote lesspipe.sh so that now it doesn't rely on filenames to decide how to process a file. vtar(), xtar() are now shell aliases in zsh-pkgtools. * usr/lib/pkgusr/uninstall_package (dry_run,run): Deal with stuff that might be in /usr/lib/deprecated * etc/pkgusr/zsh/zsh-pkgtools (vtar,xtar): Replace with shell aliases. * usr/lib/pkgusr/update-pkg-project (upd_pkg_deps): Guard against xargs getting no input. (list_deprecated): New. * usr/bin/list_suspicious_files (prune_prefixes): Update the bastard copy, adding /usr/lib/deprecated, and sorting the list. * usr/bin/lesspipe.sh: Complete re-write, eliminating the use of filenames to determine how to process a file. * usr/bin/grep_all_regular_files_for (prune_prefixes): Update the bastard copy, adding /usr/lib/deprecated, and sorting the list. If running as root, set prune_prefixes to something minimal. * usr/bin/forall_direntries_from (prune_prefixes): Update the bastard copy, adding /usr/lib/deprecated, and sorting the list because I'm anal like that. Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Add '/var/lib/colord/.cache' to Bastard prune_prefixes * usr/bin/forall_direntries_from (Bastard prune_prefixes): Add /var/lib/colord/.cache * usr/bin/list_suspicious_files (Bastard prune_prefixes): Ditto. * usr/bin/grep_all_regular_files_for (Bastard prune_prefixes): Ditto. Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Add /etc/mail/spamassassin to prune prefixes * usr/bin/forall_direntries_from (prune_prefixes): Add '/etc/mail/spamassassin' to the bastard settings. * usr/bin/list_suspicious_files (prune_prefixes): Ditto. * usr/bin/grep_all_regular_files_for (prune_prefixes): Ditto Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Add another dir to prune out Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Update prune_prefixes for bastard settings Signed-off-by: Steve Youngs <steve@steveyoungs.com>
Fix a bunch of little things from the previous changeset. * usr/lib/pkgusr/chgrp: Fix shell quoting. Better test for GIDs vs names * usr/lib/pkgusr/chmod: Fix shell quoting. Fix inf-loop in symbol->octal conversion. * usr/lib/pkgusr/chown: Fix shell quoting. Fix logic in user test. Better tests for UID/GID vs names. * usr/lib/pkgusr/install: Re-factor getopts cmdline parsing. (_dirs): Use $pristinecmd instead of $@, exit if not creating directory. (_leading_dirs): Removed, not needed. (_perms): Better test for symbol vs octal. Call /bin/chmod directly in the hack-o-matic. (_group): Better test for GID vs name (_owner): Better test for UID vs name * usr/lib/pkgusr/mkdir: Remove spurious `fi'. Logged 'install cmd suggestion' had incorrect -g option. * usr/bin/forall_direntries_from (prune_prefixes): Add /usr/lib/pkgusr. Non-pkgusrs are not allowed in this directory anymore. * usr/bin/grep_all_regular_files_for (prune_prefixes): Ditto. * etc/pkgusr/bash_profile (SUPPRESSLOCALEDIR): Typo. Signed-off-by: Steve Youngs <steve@sxemacs.org>
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>
Initial git import Signed-off-by: Steve Youngs <steve@sxemacs.org>