Attr is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.
Apply a sed to install the documentation with a versioned directory:
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
Prepare Attr for compilation:
./configure --prefix=/usr
Compile the package:
make
The tests need to run with a filesystem which supports extended attributes. Test the results:
make -j1 tests root-tests
Install the package:
make install install-dev install-lib
Move the shared library to /lib
and
recreate the symlink in /usr/lib
:
mv -v /usr/lib/libattr.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so
Set the proper permissions on the shared library:
chmod 755 -v /lib/libattr.so.1.1.0