Linux From Scratch - Version 7.5-systemd

Chapter 6. Installing Basic System Software

6.23. Acl-2.2.52

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.

Approximate build time:0.2 SBU

Required disk space:5.4 MB

6.23.1. Installation of Acl

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

Prepare Acl for compilation:

./configure --prefix=/usr --libexecdir=/usr/lib

Compile the package:

make

The Acl tests need to be run on a filesystem that supports access
controls. Coreutils needs to be compiled with ACL support in order
for the testsuite to complete successfully. To test the results,
issue:

make tests

Install the package:

make install install-dev install-lib
chmod -v 755 /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: