#!/bin/sh
#%%A5A5HAVELIST%%
#Auto Gen at instchk.awk

if [ "x$A5A5PKGCHK" = "xyes" ]; then
	export LANG=
	A5A5MD5FILE=/tmp/pkgchk.md5
	A5A5LSFILE=/tmp/pkgchk.ls
fi

if [ "x$A5A5MD5FILE" = "x" ]; then
	A5A5MD5FILE=/dev/null
fi
if [ "x$A5A5LSFILE" = "x" ]; then
	A5A5LSFILE=/dev/null
fi

#COMMAND: find . \( -not -name "doinst*" \) -a -type f -exec md5sum {} \; | sed '1,$s/ \.\// /'
cat <<A5A5MD5EOF>$A5A5MD5FILE
80e7446d8420a25727bd7d74e8f8a602  usr/man/man1/ps.1.gz
668e909eebe1814f349f11b9f09e4a19  usr/man/man1/w.1.gz
01591fe6ac23d6a66e56c11aa6f1a6fd  usr/man/man1/top.1.gz
ce47a596fde26a23250770d1450e84b6  usr/man/man1/watch.1.gz
918dd15f834c9a4b2b88d78ebf371055  usr/man/man1/snice.1.gz
8d505cc5e8d4584f2e38b2737c20fda9  usr/man/man1/tload.1.gz
247c29cd9da58d450ba4081af0436b94  usr/man/man1/pstree.1.gz
fd8bafccd13ddb9084c9a4798db31ad0  usr/man/man1/oldps.1.gz
077c32d6aa192da30c12208fbe3bd111  usr/man/man1/skill.1.gz
b6590f9be56f8f9e1a5d4f0d052e37bf  usr/man/man1/free.1.gz
9235ab6f7f03091bc9bb1820b056e239  usr/man/man1/fuser.1.gz
9db833f05dd8939ee071efd8febf9530  usr/man/man1/kill.1.gz
46d25062f09b3828a9ff7942c54a0f9b  usr/man/man1/killall.1.gz
bb535df8e3374c3327e89a2bd8113612  usr/man/man1/pgrep.1.gz
dab0fc4a2642b639bb61110630b71e41  usr/man/man1/pkill.1.gz
80937b0dcca4bcbe0d1c59ef13ff4631  usr/man/man1/uptime.1.gz
b05c325a990d64ebecdbe218669b295c  usr/man/man5/sysctl.conf.5.gz
0505a6d3e31454a01d805e6154aef746  usr/man/man8/sysctl.8.gz
3349dc4892b98ae2fbaf24ec1f51eb98  usr/man/man8/vmstat.8.gz
157459c485b26b4dfa8ccc6e15b604e2  usr/X11R6/bin/XConsole
c4283da387dd7ff0728f495b8e3ef813  usr/bin/skill
c4283da387dd7ff0728f495b8e3ef813  usr/bin/kill
38575d3252c3221f7671d0c0e24011bd  usr/bin/oldps
d741aba44bcb97fd6f730dd437477d76  usr/bin/uptime
a1679b6c1a3c5fc0f42582f7fef1d960  usr/bin/tload
e7ec5c1b5973c2218fc2b50b2e14d9b8  usr/bin/w
1e6d9b30f365fe40041b77ac91c01b1c  usr/bin/top
9a5f35f2739be1bee9021c17f2bb75bc  usr/bin/vmstat
a1f69a92e5ab0168173f70df2f2c2908  usr/bin/watch
c4283da387dd7ff0728f495b8e3ef813  usr/bin/snice
a57047b3900ab13599738105ee24a595  usr/bin/pgrep
a57047b3900ab13599738105ee24a595  usr/bin/pkill
b7078f4d046f3f9497e94e0ba25c73aa  usr/bin/fuser
f3f02076559fb5f250ff13949aae8471  usr/bin/pstree
f2dc61d85569c9fa921ef1878698b611  usr/doc/procps-2.0.7/Plamo/PATCH
191443351d1ceff7a2c7c2a853029125  usr/doc/procps-2.0.7/BUGS
8ca43cbc842c2336e835926c2166c28b  usr/doc/procps-2.0.7/COPYING
6e29c688d912da12b66b73e32b03d812  usr/doc/procps-2.0.7/COPYING.LIB
3b3c1208be753a5a97db0d462c47c472  usr/doc/procps-2.0.7/INSTALL
de884df12b6622b8991f85a2b27dce60  usr/doc/procps-2.0.7/NEWS
181f04fcfa12bc68a57cd1aac1dc3170  usr/doc/procps-2.0.7/TODO
f4d5a8574ba61986ac0ff40b5e445e98  usr/doc/procps-2.0.7/procps.lsm
7e88dbf60a8b228a9b627e0672190c54  usr/doc/procps-2.0.7/procps.spec
7c2f9817a1c887c2684e4bce18c49ec3  usr/doc/psmisc-19/Plamo/PATCH
c2bac05af38a6c8d010def1f71ef1124  usr/doc/psmisc-19/CHANGES
37d80906490ce9233f33bae9396bc2e9  usr/doc/psmisc-19/COPYING
9cd3a82dcb333bf585f54f8310fa79c4  usr/doc/psmisc-19/INSTALL
8dbbe16879c53ed97318e5dd5f650a58  usr/doc/psmisc-19/README
3bb50ff8eeb7ad116724b56a820139fa  usr/doc/psmisc-19/VERSION
55990dd1cf21bd88b87d7a40698ddbe5  usr/doc/psmisc-19/psmisc-19.lsm
a5521f1d368400ec31754c0fd32fec1d  bin/ps
50296c8dad0a3f337fb72b229c00a736  bin/killall
c036b1996fd2ade8ab9707078b246052  bin/free
b0f4f6756d0b8a78d73f27e5af4e7af5  sbin/sysctl
2db7157d60ee9f309110b9079e3f68f7  lib/libproc.so.2.0.7
A5A5MD5EOF
#COMMAND: find . \( -not -name "doinst*" \) -a \( -not -type d \) -exec ls -dils {} \; | sed '1,$s/ \.\// /'
cat <<A5A5LSEOF>$A5A5LSFILE
 212174    7 -r--r--r--   1 root     root         6525 Sep 16 01:40 usr/man/man1/ps.1.gz
 212164    2 -r--r--r--   1 root     root         1052 Sep 16 01:40 usr/man/man1/w.1.gz
 212165    6 -r--r--r--   1 root     root         5943 Sep 16 01:40 usr/man/man1/top.1.gz
 212167    2 -r--r--r--   1 root     root         1141 Sep 16 01:40 usr/man/man1/watch.1.gz
 212170    1 -r--r--r--   1 root     root           45 Sep 16 01:40 usr/man/man1/snice.1.gz
 212172    1 -r--r--r--   1 root     root          748 Sep 16 01:40 usr/man/man1/tload.1.gz
 212162    2 -r--r--r--   1 root     root         1182 Sep 16 01:50 usr/man/man1/pstree.1.gz
 212176    5 -r--r--r--   1 root     root         4385 Sep 16 01:40 usr/man/man1/oldps.1.gz
 212177    2 -r--r--r--   1 root     root         1632 Sep 16 01:40 usr/man/man1/skill.1.gz
 212178    1 -r--r--r--   1 root     root          793 Sep 16 01:40 usr/man/man1/free.1.gz
 212166    3 -r--r--r--   1 root     root         2203 Sep 16 01:50 usr/man/man1/fuser.1.gz
 212175    2 -r--r--r--   1 root     root         1355 Sep 16 01:40 usr/man/man1/kill.1.gz
 212171    2 -r--r--r--   1 root     root         1339 Sep 16 01:50 usr/man/man1/killall.1.gz
 212163    2 -r--r--r--   1 root     root         1782 Sep 16 01:40 usr/man/man1/pgrep.1.gz
 212173    1 -r--r--r--   1 root     root           45 Sep 16 01:40 usr/man/man1/pkill.1.gz
 212168    1 -r--r--r--   1 root     root          556 Sep 16 01:40 usr/man/man1/uptime.1.gz
 214203    1 -r--r--r--   1 root     root          771 Sep 16 01:40 usr/man/man5/sysctl.conf.5.gz
 216244    2 -r--r--r--   1 root     root         1090 Sep 16 01:40 usr/man/man8/sysctl.8.gz
 216243    2 -r--r--r--   1 root     root         1271 Sep 16 01:40 usr/man/man8/vmstat.8.gz
 224402    1 -r-xr-xr-x   1 root     root          213 Sep 16 01:40 usr/X11R6/bin/XConsole
 226443   16 -r-xr-xr-x   3 root     root        14524 Sep 16 01:40 usr/bin/skill
 226443   16 -r-xr-xr-x   3 root     root        14524 Sep 16 01:40 usr/bin/kill
 226444   15 -r-xr-xr-x   1 root     root        14204 Sep 16 01:40 usr/bin/oldps
 226445    4 -r-xr-xr-x   1 root     root         3328 Sep 16 01:40 usr/bin/uptime
 226446    6 -r-xr-xr-x   1 root     root         5948 Sep 16 01:40 usr/bin/tload
 226448    9 -r-xr-xr-x   1 root     root         8904 Sep 16 01:40 usr/bin/w
 226449   60 -r-xr-xr-x   1 root     root        59832 Sep 16 01:40 usr/bin/top
 226450    9 -r-xr-xr-x   1 root     root         8604 Sep 16 01:40 usr/bin/vmstat
 226451   86 -r-xr-xr-x   1 root     root        86272 Sep 16 01:40 usr/bin/watch
 226443   16 -r-xr-xr-x   3 root     root        14524 Sep 16 01:40 usr/bin/snice
 226452   11 -r-xr-xr-x   2 root     root        11160 Sep 16 01:40 usr/bin/pgrep
 226452   11 -r-xr-xr-x   2 root     root        11160 Sep 16 01:40 usr/bin/pkill
 218282   27 -r-xr-xr-x   1 root     root        26401 Sep 16 01:50 usr/bin/fuser
 226453   24 -r-xr-xr-x   1 root     root        22829 Sep 16 01:50 usr/bin/pstree
 238682    2 -rw-r--r--   1 root     root         1175 Sep 16 01:45 usr/doc/procps-2.0.7/Plamo/PATCH
 230522    4 -rw-r--r--   1 root     root         3258 Sep 16 01:46 usr/doc/procps-2.0.7/BUGS
 230523   19 -rw-r--r--   1 root     root        17982 Sep 16 01:46 usr/doc/procps-2.0.7/COPYING
 230524   26 -rw-r--r--   1 root     root        25275 Sep 16 01:46 usr/doc/procps-2.0.7/COPYING.LIB
 230525    4 -rw-r--r--   1 root     root         3175 Sep 16 01:46 usr/doc/procps-2.0.7/INSTALL
 230526   30 -rw-r--r--   1 root     root        29247 Sep 16 01:46 usr/doc/procps-2.0.7/NEWS
 230527    5 -rw-r--r--   1 root     root         4980 Sep 16 01:46 usr/doc/procps-2.0.7/TODO
 230528    1 -rw-r--r--   1 root     root          603 Sep 16 01:46 usr/doc/procps-2.0.7/procps.lsm
 230529    4 -rw-r--r--   1 root     root         3629 Sep 16 01:46 usr/doc/procps-2.0.7/procps.spec
 242762    1 -rw-r--r--   1 root     root          672 Sep 16 01:58 usr/doc/psmisc-19/Plamo/PATCH
 236642    9 -rw-r--r--   1 root     root         8258 Sep 16 01:57 usr/doc/psmisc-19/CHANGES
 236643    1 -rw-r--r--   1 root     root          553 Sep 16 01:57 usr/doc/psmisc-19/COPYING
 236644    1 -rw-r--r--   1 root     root          472 Sep 16 01:57 usr/doc/psmisc-19/INSTALL
 236645    1 -rw-r--r--   1 root     root          512 Sep 16 01:57 usr/doc/psmisc-19/README
 236646    1 -rw-r--r--   1 root     root            3 Sep 16 01:57 usr/doc/psmisc-19/VERSION
 236647    1 -rw-r--r--   1 root     root          524 Sep 16 01:57 usr/doc/psmisc-19/psmisc-19.lsm
 218283   63 -r-xr-xr-x   1 root     root        62476 Sep 16 01:40 bin/ps
 226442   22 -r-xr-xr-x   1 root     root        20846 Sep 16 01:50 bin/killall
 226447    8 -r-xr-xr-x   1 root     root         7228 Sep 16 01:40 bin/free
 220323    8 -r-xr-xr-x   1 root     root         7920 Sep 16 01:40 sbin/sysctl
 240722   45 -r-xr-xr-x   1 root     root        44391 Sep 16 01:40 lib/libproc.so.2.0.7
A5A5LSEOF

if [ "x$A5A5LISTOUT" = "xyes" ]; then
	exit 0;
fi

if [ "x$A5A5PKGCHK" = "xyes" ]; then
	echo "%-- PACKAGE:" $0 "--%"
	echo "%%Check 1 - MD5 CheckSum Check%%"
	md5sum -c $A5A5MD5FILE | gawk '($2 != "OK"){print}'
	gawk '{ system("ls -dils " $11);}' $A5A5LSFILE > /tmp/pkgchk.lstmp
	echo "%%Check 2 - File List Check%%"
	diff $A5A5LSFILE /tmp/pkgchk.lstmp
	rm /tmp/pkgchk.lstmp
	rm $A5A5MD5FILE
	rm $A5A5LSFILE
	exit 0;
fi

# Write script here.
if [ -x /sbin/ldconfig ]; then
	/sbin/ldconfig .
fi

