# util-linux 2.12r
# ================
# Slackware 8.1's 'util-linux' package includes version 2.11r, 9.0's
# includes 2.11z, 9.1's includes 2.12, 10.0's includes 2.12a, 10.1
# and 10.2's include 2.12p, and 11.0's and 12.0's include 2.12r
# Prerequisites:
# gettext
# PAM (optional)
# shadow (regular shadow or shadow w/ PAM support if you use PAM)
cd
test -f installed/util-linux-2.12r.tar.bz2 &&
mv installed/util-linux-2.12r.tar.bz2 .
test ! -f util-linux-2.12r.tar.bz2 &&
wget http://ftp.kernel.org/pub/linux/utils/util-linux/\
util-linux-2.12r.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "af9d9e03038481fbf79ea3ac33f116f9 util-linux-2.12r.tar.bz2" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "740b7eb5ae1148b2200b2cd34a0a6c4b0db577e4 util-linux-2.12r.tar.bz2" | \
sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "util-linux-*" -exec rm -r {} \;
tar xjvf ~/util-linux-2.12r.tar.bz2
cd util-linux-2.12r
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# If you use loop-aes, apply the patch
patch -p1 < ../loop-AES-v3.2a/util-linux-2.12r.diff
# Either open up MCONFIG to select what you need or don't need or apply this
# patch to do it for you. Use this first one if you have PAM installed:
wget http://englanders.cc/pub/linux/patches/util-linux.MCONFIG.pam.patch &&
patch < util-linux.MCONFIG.pam.patch && rm util-linux.MCONFIG.pam.patch
# and this one if not:
wget http://englanders.cc/pub/linux/patches/util-linux.MCONFIG.patch &&
patch < util-linux.MCONFIG.patch && rm util-linux.MCONFIG.patch
# If you use an older version of Slackware, comment out lines in rc.K and rc.S
# that run /sbin/update (which no longer exists).
# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/clear, or if you have the util-linux /usr/bin/clear that's just a
# script that runs 'tput clear', you can install a replacement from a compiled
# ncurses source tree:
test ! -f /usr/bin/clear &&
find ../ncurses-*/progs -type f -name clear \
-exec install -s {} /usr/bin/ \;
# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/tput, you can install one from a compiled ncurses source tree:
test ! -f /usr/bin/tput &&
find ../ncurses-*/progs -type f -name tput \
-exec install -s {} /usr/bin/ \;
# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/strings, you can install one from a compiled binutils source tree:
test ! -f /usr/bin/strings &&
find ../binutils-* -type f -name strings \
-exec install -s {} /usr/bin/ \;