lfs-buildscripts/CH8Build/CH08.30-psmisc.sh
2024-10-08 12:43:22 -07:00

41 lines
632 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d psmisc-${psmisc_version} ] && rm -rf psmisc-${psmisc_version}
tar -Jxf ${psmisc_tarball}
cd psmisc-${psmisc_version}
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building psmisc"
fi
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running psmisc make check"
make check > ${GLSOURCES}/psmisc.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing psmisc"
fi
popd
# cleanup
pushd $GLSOURCES
rm -rf psmisc-${psmisc_version}
popd