The FAM package contains a File Alteration Monitor which is useful for notifying applications of changes to the file system.
Download (HTTP): http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/fam-2.7.0.tar.gz
Download (FTP): ftp://oss.sgi.com/projects/fam/download/stable/fam-2.7.0.tar.gz
Download MD5 sum: 1bf3ae6c0c58d3201afc97c6a4834e39
Download size: 320 KB
Estimated disk space required: 6.9 MB
Estimated build time: 0.37 SBU
Dnotify patch (Recommended): http://www.linuxfromscratch.org/blfs/downloads/6.0/fam-2.7.0-dnotify-1.patch
Install FAM by running the following commands:
patch -Np1 -i ../fam-2.7.0-dnotify-1.patch &&
chmod 755 configure &&
autoreconf -f -i &&
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
patch -Np1 -i ../fam-2.7.0-dnotify-1.patch: This patch enables FAM to use the Linux kernel dnotify mechanism to inform the calling process of file modifications, rather than polling the file system for modifications.
chmod 755 configure: configure is set to read-only and autoreconf will fail if the permissions aren't changed.
autoreconf -f -i: The autotools need rebuilding because the dnotify patch affects configure.ac and Makefile.am.
Configuring the file alteration monitor.
If you use inetd, add the FAM entry to /etc/inetd.conf with the following command:
echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
>> /etc/inetd.conf
If you use xinetd, add an entry to /etc/xinetd.conf with the following command (be sure the "nogroup" group exists):
cat >> /etc/xinetd.conf << "EOF" # description: FAM - file alteration monitor service sgi_fam { type = RPC UNLISTED socket_type = stream user = root group = nogroup server = /usr/sbin/famd wait = yes protocol = tcp rpc_version = 2 rpc_number = 391002 } EOF
If you do not have an inetd daemon installed and have no wish to install one, you can also start famd during system startup by installing the /etc/rc.d/init.d/fam init script included in the blfs-bootscripts-6.0 package.
make install-fam
The FAM package contains the famd executable and libfam libraries.
Last updated on 2005-02-04 16:29:53 -0700