2024-10-05 06:46:05 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source versions.sh
|
|
|
|
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
|
2024-10-09 03:43:22 +08:00
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
2024-10-05 06:46:05 +08:00
|
|
|
|
|
|
|
[ -d libcap-${libcap_version} ] && rm -rf libcap-${libcap_version}
|
|
|
|
|
|
|
|
tar -Jxf ${libcap_tarball}
|
|
|
|
|
|
|
|
cd libcap-${libcap_version}
|
|
|
|
|
|
|
|
sed -i '/install -m.*STA/d' libcap/Makefile
|
|
|
|
|
|
|
|
make prefix=/usr lib=lib
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed building libcap"
|
|
|
|
fi
|
|
|
|
|
2024-10-09 03:43:22 +08:00
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
|
|
echo "running libcap make test"
|
|
|
|
make test > ${GLSOURCES}/libcap.check.log 2>&1
|
|
|
|
fi
|
2024-10-05 06:46:05 +08:00
|
|
|
|
2024-10-05 18:15:10 +08:00
|
|
|
make prefix=/usr lib=lib install
|
2024-10-05 06:46:05 +08:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed installing libcap"
|
|
|
|
fi
|
|
|
|
|
2024-10-08 12:28:55 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
|
|
|
pushd $GLSOURCES
|
|
|
|
|
|
|
|
rm -rf libcap-${libcap_version}
|
|
|
|
|
|
|
|
popd
|