lfs-buildscripts/CH8Build/CH08.76-mandb.sh

37 lines
720 B
Bash
Raw Normal View History

2024-10-07 09:35:03 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d man-db-${mandb_version} ] && rm -rf man-db-${mandb_version}
tar -Jxf ${mandb_tarball}
cd man-db-${mandb_version}
./configure --prefix=/usr \
--docdir=/usr/share/doc/man-db-${mandb_version} \
--sysconfdir=/etc \
--disable-setuid \
--enable-cache-owner=bin \
--with-browser=/usr/bin/lynx \
--with-vgrind=/usr/bin/vgrind \
--with-grap=/usr/bin/grap
make
if [ $? -ne 0 ]; then
myfail "Failed building man-db"
fi
echo "running man-db make check"
make check > ${GLSOURCES}/man-db.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing man-db"
fi