source: general/genlib/fam.xml@ 8d9eb0f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8d9eb0f was 8d9eb0f, checked in by Randy McMurchy <randy@…>, 19 years ago

Shortened line lengths in various package instructions so that the instructions fit into the PDF viewable area (through page 250)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3274 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY fam-download-http "http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/fam-&fam-version;.tar.gz">
8<!ENTITY fam-download-ftp "ftp://oss.sgi.com/projects/fam/download/stable/fam-&fam-version;.tar.gz">
9<!ENTITY fam-size "320 KB">
10<!ENTITY fam-buildsize "6.9 MB">
11<!ENTITY fam-time "0.37 SBU">
12]>
13
14<sect1 id="fam" xreflabel="FAM-&fam-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="fam.html"?>
20<title>FAM-&fam-version;</title>
21
22<sect2>
23<title>Introduction to <application><acronym>FAM</acronym></application></title>
24
25<para>The <application><acronym>FAM</acronym></application> package contains a
26File Alteration Monitor which is useful for notifying applications of
27changes to the file system.</para>
28
29<sect3><title>Package information</title>
30<itemizedlist spacing='compact'>
31<listitem><para>Download (HTTP): <ulink
32url="&fam-download-http;"/></para></listitem>
33<listitem><para>Download (FTP): <ulink
34url="&fam-download-ftp;"/></para></listitem>
35<listitem><para>Download size: &fam-size;</para></listitem>
36<listitem><para>Estimated disk space required:
37&fam-buildsize;</para></listitem>
38<listitem><para>Estimated build time:
39&fam-time;</para></listitem></itemizedlist>
40</sect3>
41
42<sect3><title>Additional downloads</title>
43<itemizedlist spacing='compact'>
44<listitem><para>Dnotify patch (Recommended): <ulink
45url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para></listitem>
46</itemizedlist>
47</sect3>
48
49<sect3><title><application><acronym>FAM</acronym></application> dependencies
50</title>
51<sect4><title>Required</title>
52<para><xref linkend="portmap"/></para></sect4>
53</sect3>
54
55</sect2>
56
57<sect2>
58<title>Installation of <application><acronym>FAM</acronym></application></title>
59
60<para>Install <application><acronym>FAM</acronym></application> by running the
61following commands:</para>
62
63<screen><userinput><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &amp;&amp;
64chmod 755 configure &amp;&amp;
65autoreconf -f -i &amp;&amp;
66./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
67make &amp;&amp;
68make install</command></userinput></screen>
69
70</sect2>
71
72<sect2>
73<title>Command explanations</title>
74
75<para><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch</command>:
76This patch enables <application><acronym>FAM</acronym></application> to use
77the Linux kernel dnotify mechanism to inform the calling process of
78file modifications, rather than polling the file system for
79modifications.</para>
80
81<para><command>chmod 755 configure</command>: <command>configure</command> is
82set to read-only and <command>autoreconf</command> will fail if the
83permissions aren't changed.</para>
84
85<para><command>autoreconf -f -i</command>: The autotools need rebuilding
86because the dnotify patch affects <filename>configure.ac</filename> and
87<filename>Makefile.am</filename>.</para>
88
89</sect2>
90
91<sect2>
92<title>Configuring <application><acronym>FAM</acronym></application></title>
93
94<sect3><title>Config files</title>
95
96<para><filename>/etc/rpc</filename>,
97 <filename>/etc/fam.conf</filename>,
98 <filename>/etc/inetd.conf</filename>,
99 <filename>/etc/xinetd.d/fam</filename>
100 or <filename>/etc/xinetd.conf</filename>
101 </para>
102</sect3>
103
104<sect3><title>Configuration Information</title>
105
106<para>Configuring the file alteration monitor.</para>
107
108<para>If you use <application>inetd</application>, add the
109<application><acronym>FAM</acronym></application> entry to
110<filename>/etc/inetd.conf</filename> with the
111following command:</para>
112
113<screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
114 &gt;&gt; /etc/inetd.conf</command></userinput></screen>
115
116<para>If you use <application>xinetd</application>, add an entry to
117<filename>/etc/xinetd.conf</filename> with the following command (be
118sure the "nogroup" group exists):</para>
119
120<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
121 # description: FAM - file alteration monitor
122 service sgi_fam
123 {
124 type = RPC UNLISTED
125 socket_type = stream
126 user = root
127 group = nogroup
128 server = /usr/sbin/famd
129 wait = yes
130 protocol = tcp
131 rpc_version = 2
132 rpc_number = 391002
133 }
134<command>EOF</command></userinput></screen>
135
136<para>If you do not have an <command>inetd</command> daemon installed and have
137no wish to install one, you can also start <command>famd</command> during
138system startup by installing the <filename>/etc/rc.d/init.d/fam</filename>
139init script included in the
140<xref linkend="intro-important-bootscripts"/> package.</para>
141
142<screen><userinput><command>make install-fam</command></userinput></screen>
143
144</sect3>
145
146</sect2>
147
148<sect2>
149<title>Contents</title>
150
151<para>The <application><acronym>FAM</acronym></application> package contains
152the <command>famd</command> executable and <filename>libfam</filename>
153libraries.</para>
154
155</sect2>
156
157<sect2><title>Description</title>
158
159<sect3><title>famd</title>
160
161<para><command>famd</command> is the file alteration monitor.</para>
162
163</sect3>
164
165</sect2>
166
167</sect1>
168
Note: See TracBrowser for help on using the repository browser.