# psmisc 22.14
# ============
# Slack bundles procps, psmisc, and procinfo together in the 'procps'
# package. If you're replacing it with the source versions of each one,
# run through each howto in that order.
# With an older libc (like the one that Slackware 7.1 comes with), pass
# --disable-ipv6 to configure to avoid IPv6 related errors with building
# fuser. ...or grab the older psmisc from sunsite/metalab/ibiblio.
# I would also suggest also putting "LIBS=-lintl" at the beginning of your
# configure line.
cd
test -f installed/psmisc-22.14.tar.gz && mv installed/psmisc-22.14.tar.gz .
test ! -f psmisc-22.14.tar.gz &&
wget http://download.sf.net/psmisc/psmisc-22.14.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "psmisc-*" -exec rm -r {} \;
tar xzvf ~/psmisc-22.14.tar.gz
cd psmisc-22.14
test $UID = 0 && chown -R root:root .
# Configure and build it
./configure --prefix=/usr --mandir=/usr/man --disable-nls
make
# Become root to install it
su
# This is from older Slackware procps packages
rm -f /usr/bin/pstree.x11
# Install it
make install
ln -sf /usr/bin/fuser /bin/fuser
ln -sf /usr/bin/killall /bin/killall
ln -sf /usr/bin/killall /sbin/pidof
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+rw .