OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sde-debug/sde-debug.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. main_rd() {
  17. if [ -z "$root" ] ; then
  18. rm -f /var/adm/*/sde-debug
  19. mkdir -p /var/adm/sde-debug
  20. cd $root/
  21. cat << 'EOT' |
  22. shares.txt shares.sh 'shared' files
  23. bindups.txt bindups.sh duplicated binary names
  24. rootfsbin.txt rootfsbin.sh binaries in /bin and /sbin
  25. unarchived.txt unarchived.sh files 'liggering' arround
  26. baduidgid.txt baduidgid.sh files with unknown UID/GID
  27. usrlocal.txt usrlocal.sh files in /usr/local tree
  28. empty.txt empty.sh empty files or packages
  29. badfiles.txt badfiles.sh known bad files in packages
  30. EOT
  31. while read file script desc ; do
  32. echo -n "Checking for $desc ..." ; lang=bash
  33. $lang $confdir/test_$script > /var/adm/sde-debug/$file 2>&1
  34. if [ -s /var/adm/sde-debug/$file ] ; then
  35. echo " found errors!"
  36. else
  37. echo " ok." ; rm -f /var/adm/sde-debug/$file
  38. fi
  39. done
  40. dump_env > /var/adm/sde-debug/buildenv.txt
  41. cp -a $base/config/$config/config /var/adm/sde-debug/config.txt
  42. touch /var/adm/sde-debug/*
  43. fi
  44. }
  45. custmain="main_rd"
  46. srctar=none