6.22. Attr-2.4.46

The attr package contains utilities to administer the extended attributes on filesystem objects.

Approximate build time: 0.1 SBU
Required disk space: 3.5 MB

6.22.1. Installation of Attr

Modify the documentation directory so that it is a versioned directory:

sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in

Prepare Attr for compilation:

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

Compile the package:

make

The Attr tests need to be run on a filesystem that supports extended attributes. To test the results, issue:

make -k tests root-tests

Install the package:

make install install-dev install-lib
chmod -v 0755 /lib/libattr.so.1.1.0

Remove static library and libtool archive from /lib, they exist in /usr/lib:

rm -v /lib/libattr.{a,la,so}

Change default location for the libtool archive and recreate symlink to shared library since it points to removed file:

sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la
ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so

6.22.2. Contents of Attr

Installed programs: attr, getfattr, and setattr
Installed library: libattr.{so,a}
Installed directories: /usr/include/attr and /usr/share/doc/attr-2.4.46

Short Descriptions

attr

Extends attributes on filesystem objects

getfattr

Gets the extended attributes of filesystem objects.

setattr

Sets the extended attributes of filesystem objects

libattr.{so,a}

Contains the Attr API functions.