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 attr-${attr_version} ] && rm -rf attr-${attr_version}
|
|
|
|
|
|
|
|
tar -zxf ${attr_tarball}
|
|
|
|
|
|
|
|
cd attr-${attr_version}
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--docdir=/usr/share/doc/attr-${attr_version}
|
|
|
|
|
|
|
|
make
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed building attr"
|
|
|
|
fi
|
|
|
|
|
2024-10-09 03:43:22 +08:00
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
|
|
echo "running attr make check"
|
|
|
|
make check > ${GLSOURCES}/attr.check.log 2>&1
|
|
|
|
fi
|
2024-10-05 06:46:05 +08:00
|
|
|
|
|
|
|
make install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed installing attr"
|
|
|
|
fi
|
|
|
|
|
2024-10-08 12:28:55 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
|
|
|
pushd $GLSOURCES
|
|
|
|
|
|
|
|
rm -rf attr-${attr_version}
|
|
|
|
|
|
|
|
popd
|