debianutils - Some debian utils that prove useful with other distros ChangeLog

HOWTO


# 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.

# Prerequisites:
# gawk
# grep

cd
test -f installed/debianutils_2.8.4.tar.gz &&
mv installed/debianutils_2.8.4.tar.gz .
test ! -f debianutils_2.8.4.tar.gz &&
wget http://ftp.debian.org/debian/pool/main/d/debianutils/\
debianutils_2.8.4.tar.gz

# Verify tarball w/ md5sum:
echo "d5ece24fb8c24f353c3c93218f8fb24b  debianutils_2.8.4.tar.gz" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "debianutils-*" -exec rm -r {} \;
tar xzvf ~/debianutils_2.8.4.tar.gz
cd debianutils-2.8.4
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make

# Become root to install it
su

rm -f /usr/man/man1/tempfile.1.gz /usr/man/man8/savelog.8.gz \
/usr/man/cat8/savelog.8.bz2
install savelog /usr/bin/
install -s tempfile /usr/bin/
install -m 644 tempfile.1 /usr/man/man1/
install -m 644 savelog.8 /usr/man/man8/

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/debianutils_*.tar.*
mv debianutils_2.8.4.tar.gz installed/

# 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

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2005-12-14 5:36pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]