The attr package contains utilities to administer the extended attributes on filesystem objects.
Modify the documentation directory so that it is a versioned directory:
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
Prevent installation of manual pages that were already installed by Man-Pages package:
sed -i -e "/SUBDIRS/s|man2||" man/Makefile
Prepare Attr for compilation:
./configure --prefix=/usr
Compile the package:
make
The Attr tests need to be run on a filesystem that supports extended attributes. To test the results, issue:
make tests root-tests
Install the package:
make install install-dev install-lib chmod -v 755 /usr/lib/libattr.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:
mv -v /usr/lib/libattr.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so