The attr package contains utilities to administer the extended attributes on filesystem objects.
This package is known to build and work properly using an LFS-7.3 platform.
Download (HTTP): http://download.savannah.gnu.org/releases/attr/attr-2.4.46.src.tar.gz
Download MD5 sum: db557c17fdfa4f785333ecda08654010
Download size: 332 KB
Estimated disk space required: 3.5 MB
Estimated build time: 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/attr
Install attr by running the following commands:
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in && INSTALL_USER=root \ INSTALL_GROUP=root \ ./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib && make
There are three sets of tests that come with this package. Issue the following to execute all three: make tests root-tests ext-tests. For meaningful results, the tests need to be carried out on a file system that supports extended attributes.
Now, as the root user:
make install install-dev install-lib &&
chmod -v 0755 /lib/libattr.so.1.1.0 &&
rm -v /lib/libattr.{a,la,so} &&
sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la &&
ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so
sed ... include/builddefs.in: This command modifies the documentation directory so that it is a versioned directory.
sed -i ... /usr/lib/libattr.la: This command corrects the location of the installed static library as referenced in the libtool archive.
There is no configuration to attr itself, but to get any use out of attr, a filesystem needs to support extended attributes.
One way to achieve this is to add the user_xattr option to an
ext3 filesystem in the /etc/fstab
file as shown below:
# file system mount-point type options dump fsck # order /dev/sda1 / ext3 defaults,acl,user_xattr 0 2
Last updated on 2013-03-04 23:08:42 +0000