The Acl package contains utilities to administer Access Control Lists, which are used to define more fine-grained discretionary access rights for files and directories.
Modify the documentation directory so that it is a versioned directory:
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
Fix some broken tests:
sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test
Additionally, fix a bug that causes getfacl -e to segfault on overly long group name:
sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \ libacl/__acl_to_any_text.c
Prepare Acl for compilation:
./configure --prefix=/usr \ --disable-static \ --libexecdir=/usr/lib
Compile the package:
make
The Acl tests need to be run on a filesystem that supports access controls after Coreutils has been built with the Acl libraries. If desired, return to this package and run make -j1 tests after Coreutils has been built later in this chapter.
Install the package to a temporary directory:
make install install-dev install-lib DESTDIR=$(pwd)/debian/tmp chmod -v 755 debian/tmp/usr/lib/libacl.so
The shared library needs to be moved to /lib
, and as a result the .so
file in /usr/lib
will need to be recreated:
mkdir -pv debian/tmp/lib mv -v debian/tmp/usr/lib/libacl.so.* debian/tmp/lib ln -sfv ../../lib/$(readlink debian/tmp/usr/lib/libacl.so) \ debian/tmp/usr/lib/libacl.so
Create the package archive:
buildpkg
Install the package:
dpkg -i ../acl_2.2.52_*.deb