# debianutils 2.8.4
# =================
# Slackware 8.0, 8.1, and 9.0 include the mktemp, savelog, and tempfile
# utilities from debianutils 1.13.3 in the 'bin' package. Slackware 10.0,
# 10.1, and 10.2 include them from debianutils 2.7 I have a separate howto
# for mktemp (same author, bundled seperately), so here we'll just
# install savelog and tempfile.
# FYI, some of the other things in this package are:
# mktemp - we use a different one
# run-parts - we use Slackware's
# which - we use a different one
# sensible-browser, sensible-editor, sensible-pager, installkernel, mkboot -
# we don't need/want these
# Remove lines in Slackware's 'bin' package file that reference the files
# and man pages that we replaced above. If you've run this before, it won't
# do anything.
PKGFILE=`find /var/adm/packages -type f -name "bin-*" | head -1`
test -z "$PKGFILE" &&
test -r /var/adm/packages/bin &&
PKGFILE="/var/adm/packages/bin"
test -r "$PKGFILE" &&
cat $PKGFILE |
egrep -v "^usr/bin/savelog$" |
egrep -v "^usr/man/man8/savelog.8.gz$" |
egrep -v "^usr/bin/tempfile$" |
egrep -v "^usr/man/man1/tempfile.1.gz$" > $PKGFILE.new
test -s $PKGFILE.new &&
( mkdir -p -m 0700 ~/backup/packages
mv -f $PKGFILE ~/backup/packages/`basename $PKGFILE`.`date +%Y%m%d`
mv -f $PKGFILE.new $PKGFILE )
test -e $PKGFILE.new && rm $PKGFILE.new
unset PKGFILE