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

38 lines
536 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d acl-${acl_version} ] && rm -rf acl-${acl_version}
tar -Jxf ${acl_tarball}
cd acl-${acl_version}
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/acl-${acl_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building acl"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing acl"
fi
popd
# cleanup
pushd $GLSOURCES
rm -rf acl-${acl_version}
popd