annotate man/gnats/p-inst.texi @ 112:48d667d6f17f r20-1b8

Import from CVS: tag r20-1b8
author cvs
date Mon, 13 Aug 2007 09:20:48 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
1 @c remember to put in the autoload stuff!!!! see the .el files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
2
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
3 @c This file is included as an appendix in gnats.texi.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
4
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
5 @cindex installing GNATS
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
6 @cindex configuring GNATS
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
7 @cindex setting up GNATS
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
8 @cindex building GNATS
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
9
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
10 @xref{Locations,,Where the tools and utilities reside}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
11
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
12 There are several steps you need to follow to fully configure and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
13 install @sc{gnats} on your system. You need @code{root} access in order
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
14 to create a new account for @code{gnats} and to install the @sc{gnats}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
15 utilities. You may need @code{root} access on some systems in order to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
16 set mail aliases in place and to allow this new account access to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
17 @code{cron} and @code{at}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
18
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
19 If you are updating an older version of @sc{gnats} rather than installing
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
20 from scratch, see @ref{Upgrading,,Upgrading from older versions}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
21
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
22 To build @sc{gnats}, you must:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
23
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
24 @itemize @bullet
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
25 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
26 Run @code{configure}, with correct options if the defaults are
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
27 unsuitable for your site. @xref{Configure and make,,Configuring and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
28 compiling the software}. Default installation locations are in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
29 @ref{Locations,,Where @sc{gnats} lives}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
30
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
31 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
32 Compile the @sc{gnats} programs on your system. @xref{Configure and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
33 make,,Configuring and compiling the software}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
34
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
35 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
36 Install the @sc{gnats} tools and utilities locally, and install the user
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
37 tools on every machine in your local network. @xref{Installing
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
38 utils,,Installing the utilities}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
39
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
40 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
41 Set up mail aliases for @sc{gnats}. @xref{Aliases,,Setting up mail
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
42 aliases}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
43
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
44 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
45 Install the @sc{gnats} user tools (@code{query-pr}, @code{nquery-pr}, @code{edit-pr},
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
46 @code{send-pr}) around your network. @xref{Installing tools,,Installing
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
47 the user tools}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
48
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
49 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
50 Install the @sc{gnats} daemon @file{gnatsd}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
51
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
52 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
53 Update the local configuration files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
54
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
55 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
56 config categories submitters responsible gnatsd.conf
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
57 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
58
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
59 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
60 in @w{@file{@var{GNATS_ROOT}/gnats-adm}}. @xref{Local
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
61 configuration,,Changing your local configuration}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
62
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
63 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
64 Create a distribution of @code{send-pr} for submitters outside your
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
65 organization. @xref{mkdist,,Configuring @code{send-pr} for the outside
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
66 world}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
67 @end itemize
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
68
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
69 @menu
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
70 * Configure and make:: Configuring and compiling the software
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
71 * Installing utils:: Installing the utilities
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
72 * Aliases:: Setting up mail aliases
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
73 * Installing the daemon:: Installing the daemon
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
74 * Installing tools:: Installing the user tools
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
75 * Upgrading:: Upgrading from older versions
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
76 @end menu
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
77
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
78 @node Configure and make
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
79 @section Configuring and compiling the software
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
80 @cindex unpacking the distribution
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
81 @cindex configuring and compiling the software
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
82 @cindex compiling the software
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
83 @cindex @code{configure}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
84 @cindex @code{make}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
85
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
86 @enumerate 1
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
87 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
88 First, unpack your distribution. We provide source code in a @code{tar}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
89 file which was compressed using @code{gzip}. The code can be extracted
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
90 into a directory @var{unpackdir} using
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
91
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
92 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
93 mkdir @var{unpackdir}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
94 cd @var{unpackdir}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
95 tar zxvf gnats-@value{VERSION}.tar.z
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
96 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
97
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
98 The sources reside in a directory called @file{gnats-@value{VERSION}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
99 when unpacked. We call this the @dfn{top level} of the source
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
100 directory, or @dfn{srcdir}. The sources for the @sc{gnats} tools are in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
101 the subdirectory @file{gnats-@value{VERSION}/gnats/*}. Lists of files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
102 included in the distribution are in each directory in the file
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
103 @file{MANIFEST}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
104
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
105 @cindex lisp file installation
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
106 @cindex Emacs lisp file installation
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
107 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
108 You may wish to alter the installation directory for the Emacs lisp
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
109 files. If your Emacs lisp library is not in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
110 @w{@file{@var{prefix}/lib/emacs/lisp}}, edit the files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
111
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
112 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
113 @var{srcdir}/gnats/Makefile.in @emph{and}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
114 @var{srcdir}/send-pr/Makefile.in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
115 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
116
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
117 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
118 Change the variable @samp{lispdir} from @samp{$(datadir)/emacs/lisp} to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
119 the directory containing your Emacs lisp library. For information on
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
120 @var{prefix}, see @ref{prefix,,@var{prefix}}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
121
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
122 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
123 Run @code{configure}. You can nearly always run @code{configure} with
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
124 the command
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
125
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
126 @example
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
127 ./configure --with-full-gnats
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
128 @end example
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
129
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
130 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
131 and the ``Right Thing'' happens:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
132
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
133 @itemize @bullet
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
134 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
135 @sc{gnats} is configured in the same directory you unpacked it in;
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
136
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
137 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
138 when built, @sc{gnats} runs on the machine you're building it on;
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
139
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
140 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
141 when installed, files are installed under @file{/usr/local}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
142 (@pxref{Locations,,Where @sc{gnats} lives}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
143
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
144 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
145 @sc{gnats} operates by default behavior (@pxref{default behavior,,Default
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
146 behavior}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
147 @end itemize
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
148
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
149 @cindex @code{configure}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
150 The full usage for @code{configure} is:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
151
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
152 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
153 configure [ --with-full-gnats ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
154 [ --prefix=@var{prefix} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
155 [ --exec-prefix=@var{exec-prefix} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
156 [ --with-gnats-root=@w{@var{GNATS_ROOT}} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
157 [ --with-gnats-server=@w{@var{hostname}} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
158 [ --with-gnats-service=@w{@var{service-name}} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
159 [ --with-gnats-user=@w{@var{username}} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
160 [ --with-gnats-port=@w{@var{port-number}} ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
161 [ --verbose ]
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
162 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
163
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
164 @table @code
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
165 @cindex @code{with-full-gnats}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
166 @item --with-full-gnats
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
167 All programs are to be built; this includes the user utilities, the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
168 administrative utilities, and the internal utilities. Use this when
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
169 configuring the utilities for the machine where @sc{gnats} is to run.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
170 Omit it when building only the user utilities for other machines on your
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
171 network; see @ref{Installing tools,,Installing the user tools}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
172
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
173 @cindex @var{prefix}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
174 @item --prefix=@var{prefix}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
175 All host-independent programs and files are to be installed under
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
176 @var{prefix}. (Host-dependent programs and files are also installed in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
177 @var{prefix} by default.) The default for @var{prefix} is
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
178 @w{@file{/usr/local}}. @xref{Locations,,Where @sc{gnats} lives}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
179
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
180 @cindex @var{exec-prefix}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
181 @item --exec-prefix=@var{exec-prefix}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
182 All host-dependent programs and files are to be installed under
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
183 @var{exec-prefix}. The default for @var{exec-prefix} is @var{prefix}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
184 @xref{Locations,,Where @sc{gnats} lives}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
185
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
186 @cindex @var{GNATS_ROOT}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
187 @item --with-gnats-root=@w{@var{GNATS_ROOT}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
188 The database and its data files are to be installed into
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
189 @w{@var{GNATS_ROOT}}. The default for @w{@var{GNATS_ROOT}} is
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
190 @w{@file{@var{prefix}/lib/gnats/gnats-db}}. @xref{Locations,,Where
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
191 @sc{gnats} lives}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
192
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
193 @cindex --with-gnats-server
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
194 @item --with-gnats-root=@w{hostname}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
195 FIXME
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
196
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
197 @cindex --with-gnats-service
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
198 @item --with-gnats-root=@w{@var{service-name}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
199 FIXME
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
200
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
201 @cindex --with-gnats-user
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
202 @item --with-gnats-user=@w{@var{username}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
203 FIXME
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
204
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
205 @cindex --with-gnats-port
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
206 @item --with-gnats-port=@w{@var{port-number}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
207 FIXME
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
208
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
209 @item --verbose
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
210 Give verbose output while @code{configure} runs.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
211 @end table
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
212
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
213 @xref{Using configure,,Using @code{configure},configure,Cygnus
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
214 configure}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
215
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
216 @cindex building in a different directory
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
217 @cindex @var{objdir}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
218 You can build @sc{gnats} in a different directory (@var{objdir}) from the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
219 source code by calling the @code{configure} program from the new
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
220 directory, as in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
221
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
222 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
223 mkdir @var{objdir}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
224 cd @var{objdir}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
225 @var{srcdir}/configure @dots{}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
226 make all
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
227 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
228
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
229 By default, @code{configure} compiles the programs in the same directory
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
230 as the sources (@var{srcdir}). Emacs lisp files are byte-compiled if
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
231 @code{make} can find Emacs on your local system.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
232
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
233 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
234 Run
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
235
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
236 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
237 make all info
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
238 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
239
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
240 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
241 from the directory where @code{configure} created a @file{Makefile}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
242 (This may not be the same directory as the source directory.) These
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
243 targets indicate:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
244
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
245 @table @code
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
246 @item all
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
247 Compile all programs
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
248
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
249 @item info
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
250 Create @samp{info} files using @code{makeinfo}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
251 @end table
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
252 @end enumerate
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
253
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
254 @node Installing utils
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
255 @section Installing the utilities
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
256 @cindex installing the utilities
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
257
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
258 The following steps are necessary for a complete installation. You may
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
259 need @code{root} access for these.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
260
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
261 @enumerate 1
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
262 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
263 Install the utilities by
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
264 invoking
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
265
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
266 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
267 make install install-info
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
268 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
269
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
270 These targets indicate:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
271
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
272 @table @code
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
273 @item install
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
274 Installs all programs into their configured locations
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
275 (@pxref{Locations,,Where @sc{gnats} lives}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
276
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
277 @item install-info
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
278 Installs @samp{info} files into their configured locations
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
279 (@pxref{Locations,,Where @sc{gnats} lives}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
280 @end table
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
281
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
282 After you have installed @sc{gnats}, you can remove the object files with
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
283
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
284 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
285 make clean
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
286 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
287
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
288 @cindex @code{autoload} commands
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
289 @cindex loading @code{.el} files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
290 @cindex Emacs functions
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
291 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
292 Place the following lines in the file @file{default.el} in your Emacs
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
293 lisp library, or instruct your local responsible parties to place the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
294 lines in their local editions of @file{.emacs}:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
295
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
296 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
297 (autoload 'edit-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
298 "Command to edit a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
299 (autoload 'view-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
300 "Command to view a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
301 (autoload 'unlock-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
302 "Unlock a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
303 (autoload 'query-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
304 "Command to query information about problem reports." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
305 (autoload 'send-pr-mode "send-pr"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
306 "Major mode for sending problem reports." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
307 (autoload 'send-pr "send-pr"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
308 "Command to create and send a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
309 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
310
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
311 Emacs lisp files are byte-compiled if @code{make} can find Emacs on your
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
312 local system.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
313
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
314
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
315 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
316 @cindex creating an account for @sc{gnats}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
317 Create an account for a user named @sc{gnats}. This user must have an
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
318 entry in the file @file{/etc/passwd}. The home directory for this
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
319 account should be the same directory you specified for @var{GNATS_ROOT}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
320 in the file @file{Makefile.in}. Also, the default @code{PATH} for this
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
321 user should contain @w{@file{@var{exec-prefix}/bin}} and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
322 @w{@file{@var{exec-prefix}/lib/gnats}}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
323
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
324 @cindex @code{cron}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
325 @cindex @code{at}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
326 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
327 Allow the new user @code{gnats} access to @code{cron} and @code{at}. To
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
328 do this, add the name @code{gnats} to the files @w{@file{cron.allow}} and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
329 @w{@file{at.allow}}, which normally reside in the directory
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
330 @w{@file{/var/spool/cron}}. If these files do not exist, make sure
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
331 @code{gnats} does not appear in either of the files @w{@file{cron.deny}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
332 and @w{@file{at.deny}} (in the same directory).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
333
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
334 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
335 For the following steps, log in as @code{gnats}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
336
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
337 @itemize @bullet
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
338 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
339 Edit the files @file{categories}, @file{responsible}, and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
340 @file{submitters} in the directory @w{@file{@var{GNATS_ROOT}/gnats-adm}}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
341 (@pxref{Local configuration,,Changing your local configuration}) to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
342 reflect your local needs. Be sure to run @code{mkcat} after you update
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
343 the @file{categories} file (@pxref{mkcat,,Adding a new problem
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
344 category}). @emph{Note:} these templates are not installed if they
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
345 already exist, i.e. if you are upgrading. @xref{Upgrading,,Upgrading
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
346 from older versions}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
347
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
348 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
349 If you wish to install the @sc{gnats} user tools on other machines on
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
350 your network, see @ref{Installing tools,,Installing the user tools}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
351 @end itemize
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
352
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
353 @cindex @code{crontab}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
354 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
355 Create a @code{crontab} entry that periodically runs the program
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
356 @code{queue-pr} with the @samp{--run} option. For example, to run
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
357 @w{@samp{queue-pr --run}} every ten minutes, create a file called
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
358 @file{.mycron} in the home directory of the user @code{gnats} which
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
359 contains the line:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
360
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
361 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
362 0,10,20,30,40,50 * * * * @var{exec-prefix}/lib/gnats/queue-pr --run
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
363 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
364
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
365 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
366 (Specify the full path name for @code{queue-pr}.) Then run
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
367
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
368 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
369 crontab .mycron
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
370 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
371
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
372 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
373 See the @code{man} pages for @code{cron} and @code{crontab} for details
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
374 on using @code{cron}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
375 @end enumerate
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
376
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
377 @node Aliases
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
378 @section Setting up mail aliases
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
379 @cindex mail aliases
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
380 @cindex aliases
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
381
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
382 The following mail aliases must be placed in the file
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
383 @w{@file{/etc/aliases}} on the same machine where the @sc{gnats} tools
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
384 are installed. You may need @code{root} access to add these aliases.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
385
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
386 @itemize @bullet
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
387 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
388 @cindex @code{gnats-admin} alias
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
389 Create an alias for the @sc{gnats} administrator. This address should
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
390 point to the address of the person in charge of administrating
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
391 @sc{gnats}:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
392
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
393 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
394 gnats-admin: @var{address}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
395 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
396
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
397 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
398 @cindex bug alias
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
399 @cindex incoming alias for Problem Reports
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
400 @cindex alias for incoming Problem Reports
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
401 @cindex @code{queue-pr -q}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
402 Create an alias to redirect incoming Problem Reports. This alias should
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
403 redirect incoming mail via a @dfn{pipe} to the program @w{@samp{queue-pr
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
404 -q}}. For example, if Problem Reports coming to your site are to arrive
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
405 at the address @samp{bugs@@your.company.com}, create an alias to the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
406 effect of:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
407
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
408 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
409 bugs: "| @var{exec-prefix}/lib/gnats/queue-pr -q"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
410 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
411
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
412 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
413 This places incoming Problem Reports in
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
414 @w{@file{@var{GNATS_ROOT}/gnats-queue}}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
415
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
416 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
417 @cindex @var{site} alias
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
418 @cindex mail alias for your @emph{site}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
419 @cindex alias for your @emph{site}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
420 Create an alias for your site. This alias should be the same nametag
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
421 indicated by the variable @w{@samp{GNATS_SITE}} in the file
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
422 @w{@file{@var{GNATS_ROOT}/gnats-adm/config}} (@pxref{config,,The
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
423 @code{config} file}), with an added suffix @samp{-gnats}. This alias,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
424 @w{@samp{@var{GNATS_SITE}-gnats}}, should point toward the local
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
425 submission address. For instance, if your site is Tofu Technologies,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
426 the presence of @sc{gnats} on your @var{site} would be aliased as the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
427 following (the previous example is also shown):
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
428
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
429 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
430 bugs: "| @var{exec-prefix}/lib/gnats/queue-pr -q"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
431 tofu-gnats: bugs
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
432 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
433
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
434 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
435 The report submission utility @code{send-pr} automatically appends the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
436 @samp{-gnats} to any arguments you specify (@pxref{send-pr,,Submitting
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
437 Problem Reports}). The @code{send-pr} which was installed when you
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
438 typed @w{@kbd{make install}} has a default argument of @var{GNATS_SITE},
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
439 your site, so that when your local users simply type @kbd{send-pr} mail
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
440 is sent to your local @sc{gnats}. Part of the installation process a
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
441 Submitter Site follows when installing @code{send-pr} is to set up an
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
442 alias for the Support Site from whom this submitter received
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
443 @code{send-pr}. In other words, anyone you distribute @code{send-pr} to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
444 is instructed to make an alias
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
445
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
446 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
447 tofu-gnats: bugs@@tofu.com
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
448 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
449
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
450 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
451 You may also wish to forward a copy of each incoming Problem Report to a
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
452 log. This can be accomplished with something like:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
453
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
454 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
455 bug-q: "| @var{exec-prefix}/lib/gnats/queue-pr -q"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
456 bug-log: @var{GNATS_ROOT}/gnats-adm/bugs.log
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
457 bugs: bug-q, bug-log
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
458 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
459
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
460 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
461 This configuration archives incoming Problem Reports in the file
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
462 @w{@file{@var{GNATS_ROOT}/gnats-adm/bug.log}}, and also feeds them to the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
463 program @code{queue-pr}. (Remember, @file{bug.log} needs to be
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
464 world-writable, and should be pruned regularly; @pxref{Management,,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
465 @sc{gnats} Administration}.)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
466
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
467 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
468 If you want your users to be able to query the database by mail, use the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
469 following alias:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
470
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
471 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
472 query-pr: "| @var{exec-prefix}/lib/gnats/mail-query"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
473 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
474
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
475 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
476 The @code{mail-query} program uses @samp{--restricted} to search on the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
477 database, and by default only searches for PRs that aren't closed
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
478 (@pxref{query-pr,,Querying the database}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
479
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
480 @end itemize
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
481
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
482 @c ---------------------------------------------------------------
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
483 @node Installing the daemon
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
484 @section Installing the daemon
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
485 @cindex daemon
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
486 @cindex using @sc{gnats} over a network
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
487
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
488 By default, the daemon and clients are set to use port 1529. Add the line
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
489
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
490 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
491 support 1529/tcp # GNATS
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
492 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
493
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
494 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
495 to your @file{/etc/services} file. If you want a different port,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
496 or a different service name or port, configure @sc{gnats} with
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
497
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
498 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
499 --with-gnats-service=@var{servicename}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
500 --with-gnats-port=@var{portnumber}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
501 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
502
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
503 In your @file{inetd.conf} file, add the line
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
504
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
505 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
506 support stream tcp nowait gnats /usr/local/lib/gnats/gnatsd gnatsd
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
507 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
508
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
509 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
510 adjusting the path accordingly. To make inetd start spawning the @sc{gnats} daemon
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
511 when connected on that port, send it a hangup signal (@code{HUP}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
512
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
513 By default, the server for the @sc{gnats} daemon is assumed to be one with the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
514 name of @samp{gnats}. If you'd like something else, use
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
515
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
516 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
517 --with-gnats-server=@var{hostname}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
518 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
519
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
520 In the @file{gnats-adm} directory, you'll want to edit @file{gnatsd.conf}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
521 It lists the hosts allowed to access your server. Or, if you're using
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
522 Kerberos, it shows the sites that don't require Kerberos authentication.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
523 The format is reserved for future revision; only the first field is
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
524 actually used:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
525
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
526 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
527 site.com::
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
528 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
529
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
530 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
531 The second field may be used for things like controlling what
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
532 categories, submitter-id'd PRs, etc., can be accessed from that site.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
533 In the file that logs syslog messages (@file{/var/adm/messages}, for
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
534 example) you'll find the notification of denied access.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
535
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
536
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
537 @c ---------------------------------------------------------------
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
538 @node Installing tools
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
539 @section Installing the user tools
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
540 @cindex networks
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
541 @cindex using @sc{gnats} over a network
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
542 @cindex configuring @sc{gnats} on a network
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
543
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
544 When you install the @sc{gnats} utilities, the user tools are installed
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
545 by default on the host machine. If your machine is part of a network,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
546 however, you may wish to install the user tools on each machine in the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
547 network so that responsible parties on those machines can submit new
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
548 Problem Reports, query the database, and edit existing PRs. To do this,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
549 follow these steps @emph{on each new host}. You may need root access on
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
550 each machine.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
551
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
552 @enumerate 1
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
553 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
554 Make sure that the directory where @sc{gnats} resides is mounted to each
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
555 system that will need access to it, so @var{GNATS_ROOT} will be the same
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
556 for each host. (You can do this with symbolic links as well.)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
557
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
558 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
559 Either mount the disk which contains your source directory, or make a
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
560 copy of the @sc{gnats} source code tree in a separate directory on each
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
561 system you wish to build on.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
562
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
563 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
564 Run @code{configure}, @emph{without} specifying
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
565 @w{@samp{--with-full-gnats}}, and using the same argument (if any) for
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
566 the option
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
567
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
568 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
569 --with-gnats-root=@var{GNATS_ROOT}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
570 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
571
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
572 that you specified when building the @sc{gnats} utilites
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
573 (@pxref{Configure and make,,Configuring and compiling the software}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
574 You may use different values for the other options to @code{configure}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
575 Again, @emph{do not} use @w{@samp{--with-full-gnats}} at this point, as
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
576 that creates all the @sc{gnats} programs. Without this option,
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
577 @code{configure} only instructs the resulting @file{Makefile} to create
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
578 the user utilities.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
579
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
580 @exdent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
581 @emph{You may need @code{root} access on each host for the following steps.}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
582
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
583 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
584 @cindex creating an account for @sc{gnats}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
585 Create an account for a user named @sc{gnats} on the new host. This user
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
586 must have an entry in the file @file{/etc/passwd}. The user ID for
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
587 @code{gnats} must be the same as on the main @sc{gnats} host.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
588
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
589 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
590 Run
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
591
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
592 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
593 make all info install install-info
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
594 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
595
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
596 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
597 This builds and installs the @code{gnats} user tools @w{@code{query-pr}},
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
598 @w{@code{edit-pr}}, and @w{@code{send-pr}} on the new host, and installs
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
599 them in @w{@file{@var{exec-prefix}/bin}} on the new host (@emph{Note:}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
600 the value for @var{exec-prefix} on the new host may be different from
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
601 the value you used when building the @sc{gnats} utilities;
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
602 @pxref{exec-prefix,,@var{exec-prefix}}). The programs @code{pr-edit}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
603 and @code{pr-addr} are installed into
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
604 @w{@file{@var{exec-prefix}/lib/gnats}}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
605
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
606 @code{info} files are created as well, and are installed into
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
607 @w{@file{@var{prefix}/info}}. The Elisp files @file{gnats.el} and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
608 @file{send-pr.el} (and possibly @file{gnats.elc}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
609 if @code{make} was able to compile them using Emacs) are installed into
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
610 @w{@file{@var{prefix}/lib/emacs/lisp}} unless you change the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
611 @samp{lispdir} variable in @file{Makefile.in} (@pxref{Configure and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
612 make,,Configuring and compiling the software}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
613
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
614 @cindex @code{autoload} commands
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
615 @cindex loading @code{.el} files
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
616 @cindex Emacs functions
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
617 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
618 Add the following lines to the file @w{@file{default.el}} in the Emacs
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
619 lisp repository on the new host, or instruct your responsible parties
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
620 who use these hosts to add them to their @file{.emacs} files:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
621
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
622 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
623 (autoload 'edit-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
624 "Command to edit a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
625 (autoload 'view-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
626 "Command to view a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
627 (autoload 'unlock-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
628 "Unlock a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
629 (autoload 'query-pr "gnats"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
630 "Command to query information about problem reports." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
631 (autoload 'send-pr-mode "send-pr"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
632 "Major mode for sending problem reports." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
633 (autoload 'send-pr "send-pr"
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
634 "Command to create and send a problem report." t)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
635 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
636
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
637 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
638 Copy the file @w{@file{@var{prefix}/lib/gnats/@var{site}}} from the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
639 original host to the new host (which may have a different value for
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
640 @var{prefix}). This is the list of valid categories that
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
641 @w{@code{send-pr}} uses (@pxref{Locations,,Where @sc{gnats} lives}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
642 @var{site} is your local site, the value of @w{@samp{GNATS_SITE}} in the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
643 @file{config} file (@pxref{config,,The @code{config} file}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
644
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
645 @end enumerate
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
646
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
647 @c ---------------------------------------------------------------
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
648 @node Upgrading
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
649 @section Upgrading from older versions
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
650 @cindex upgrading from older versions
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
651
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
652 If you are upgrading from a previous release of @sc{gnats}, you probably
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
653 do not want to delete your current configuration files or your current
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
654 database. The new @sc{gnats} can be installed around the older version.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
655
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
656 You need to:
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
657
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
658 @itemize @bullet
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
659 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
660 Specify your current @var{GNATS_ROOT} on the command line to
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
661 @code{configure} when you build the new tools, with
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
662
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
663 @smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
664 configure --with-full-gnats --with-gnats-root=@var{GNATS_ROOT}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
665 @end smallexample
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
666
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
667 @noindent
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
668 (@xref{Configure and make,,Configuring and compiling the software}.)
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
669
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
670 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
671 Remove the directory @w{@file{gnats-bin}} from @w{@var{GNATS_ROOT}}; it is
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
672 no longer used.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
673
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
674 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
675 Update your current mail aliases to reflect that @w{@code{queue-pr}} now
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
676 resides in @w{@file{@var{exec-prefix}/lib/gnats}} rather than
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
677 @w{@file{@var{GNATS_ROOT}/gnats-bin}} (@pxref{Locations,,Where @sc{gnats}
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
678 lives}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
679
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
680 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
681 Change the default @code{PATH} for the @code{gnats} user to search the
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
682 directories @w{@file{@var{exec-prefix}/bin}} and
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
683 @w{@file{@var{exec-prefix}/lib/gnats}}.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
684
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
685 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
686 Reinstall the @sc{gnats} user tools on all other hosts on your network
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
687 (@pxref{Installing tools,,Installing the user tools}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
688
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
689 @item
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
690 Redistribute @code{send-pr} to your Submitter Sites
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
691 (@pxref{mkdist,,Configuring @code{send-pr} for the outside world}).
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
692 This is not absolutely necessary, as @sc{gnats} can read Problem Reports
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
693 generated by older versions of @code{send-pr}. It should be done
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
694 eventually, however, as @w{@code{send-pr}} is improved over older
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
695 verisons.
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
696
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
697 @c FIXME - anything else?
48d667d6f17f Import from CVS: tag r20-1b8
cvs
parents:
diff changeset
698 @end itemize