mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
37 lines
720 B
Bash
37 lines
720 B
Bash
#!/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
|
|
|