1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
<!--
$FML: fml_on_unix.sgml,v 1.3 2005/09/24 13:53:42 fukachan Exp $
$jaFML: fml_on_unix.sgml,v 1.5 2003/04/15 14:51:39 fukachan Exp $
-->
<chapter id="install.fml.unix">
<title>
&fml8; Installation On Unix
</title>
<sect1 id="install.fml.unix.prepare">
<title>
Preparation Of Installation
</title>
<para>
Create the user "fml" and the group "fml" before running configure.
<screen>
% su root
# groupadd fml
# useradd -g fml -m fml
</screen>
</para>
</sect1>
<!-- ====================================================== -->
<sect1 id="install.fml.unix.configure">
<title>
Run Configure
</title>
<para>
Run configure (GNU autoconf) and make.
<screen>
% su root
# groupadd fml
# useradd -g fml -m fml
# ./configure
# make install
</screen>
where configure replaces variables in scripts and .cf files.
</para>
<para>
After runnig configure, run "make install". The fml installer (perl
scripts) reads ./etc/fml/install.cf configure created and install
&fml8; to e.g. /usr/local/.
</para>
<para>
You can specify the user name and fundamental directory names by
configure arguments. Customizable variables are follows:
configure --help shows them.
<screen>
variables default value example
--------------------------------------------------------
prefix /usr/local /usr/local
exec_prefix /usr/local
bindir ${exec_prefix}/bin /usr/local/bin
sbindir ${exec_prefix}/sbin /usr/local/sbin
libexecdir ${exec_prefix}/libexec /usr/local/libexec/fml
datadir ${prefix}/share /usr/local/share/fml
sysconfdir ${prefix}/etc /usr/local/etc/fml
sharedstatedir ${prefix}/com
localstatedir ${prefix}/var
libdir ${exec_prefix}/lib /usr/local/lib/fml
includedir ${prefix}/include
oldincludedir /usr/include
infodir ${prefix}/info
mandir ${prefix}/man
</screen>
You can overwrite the following variables by configure arguments.
<screen>
fmlconfdir $sysconfidr/fml /usr/local/etc/fml
mlspooldir /var/spool/ml /var/spool/ml
fml_owner fml fml
fml_group fml fml
default_domain (spaculated by configure) (spaculated by configure)
</screen>
These options are shown by runnig
<screen>
configure --help
</screen>
.
<screen>
--without-warning run perl as perl without -w
--with-fmlconfdir=DIR use DIR instead of SYSCONFDIR/fml
--with-mlspooldir=DIR use DIR instead of /var/spool/ml
--with-fml-owner=USER use USER instead of fml
--with-fml-group=GROUP use GROUP instead of fml
--with-default-domain=DOMAIN use DOMAIN as the ML domain
</screen>
</para>
<sect2>
<title>
Example: Running Configure
</title>
<para>
Example: On NetBSD, you should install 3rd party programs into /usr/pkg.
<screen>
% ./configure --prefix=/usr/pkg
</screen>
</para>
<para>
Example: On FreeBSD, use /usr/local.
<screen>
% ./configure
</screen>
</para>
<para>
If you use /etc/fml as configuration directory on e.g. Debian,
<screen>
# ./configure --with-fmlconfdir=/etc/fml
loading cache ./config.cache
checking for perl... (cached) perl
checking for perl... (cached) /usr/local/bin/perl
checking whether optional useful commands are available or not
checking for cksum... (cached) /usr/bin/cksum
checking for md5... (cached) /usr/bin/md5
checking for ls... (cached) /bin/ls
checking for tar... (cached) /usr/bin/tar
checking for gzip... (cached) /usr/bin/gzip
checking for zcat... (cached) /usr/bin/zcat
checking for gunzip... (cached) /usr/bin/gunzip
checking for lha... (cached) /usr/pkg/bin/lha
checking for ish... no
checking for bzip2... (cached) /usr/bin/bzip2
checking for bunzip2... (cached) /usr/bin/bunzip2
checking for uuencode... (cached) /usr/bin/uuencode
checking for compress... (cached) /usr/bin/compress
checking for sendmail... (cached) /usr/sbin/sendmail
checking for newaliases... (cached) /usr/bin/newaliases
checking for postfix... (cached) /usr/sbin/postfix
checking for postalias... (cached) /usr/sbin/postalias
checking for postconf... (cached) /usr/sbin/postconf
checking for postmap... (cached) /usr/sbin/postmap
checking for nkf... (cached) /usr/pkg/bin/nkf
checking for kakasi... no
checking for namazu... no
checking for pgp... (cached) /usr/pkg/bin/pgp
checking for pgp5... no
checking for pgpe... no
checking for pgpk... no
checking for pgps... no
checking for pgpv... no
checking for gpg... no
checking for less... (cached) /usr/bin/less
checking for more... (cached) /usr/bin/more
checking for w3m... (cached) /usr/pkg/bin/w3m
updating cache ./config.cache
creating ./config.status
creating config.sh
creating fml/etc/main.cf
creating fml/etc/default_config.cf.ja
creating fml/etc/site_default_config.cf
creating fml/libexec/loader
creating fml/bin/fmlalias
creating fml/bin/fmlconf
creating fml/bin/fmldoc
creating fml/bin/fmlhtmlify
creating fml/bin/fmlsch
creating fml/bin/fmlthread
creating fml/bin/fmlspool
creating fml/bin/makefml
enabled perl -w
fml has been configure with the following options:
prefix: /usr/local
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
lib_dir: ${exec_prefix}/lib
libexec_dir: ${exec_prefix}/libexec
mandir: ${prefix}/man
datadir: ${prefix}/share
fml process owner: fml
fml process group: fml
fmlconfdir: /etc/fml
mlspooldir: /var/spool/ml
default domain: home.fml.org
Now you must run "make install".
</screen>
</para>
</sect2>
</sect1>
<!-- ====================================================== -->
<!--
XXX-TODO directory roles ? here?
-->
<sect1>
<title>
Appendix: Directory Roles
</title>
<para>
&fml8; installs files under /usr/local by default.
</para>
<para>
<table>
<title>
directory structure
</title>
<tgroup cols=2>
<thead>
<row>
<entry> directory </entry>
<entry> description </entry>
</row>
</thead>
<tbody>
<row>
<entry> /usr/local/etc/fml </entry>
<entry>
Configuration files.
It corresponds with
&fml4;'s /usr/local/fml/.fml and default_config.ph.
/usr/local/etc/fml/main.cf
has fml version and library paths et.al.
</entry>
</row>
<row>
<entry> /usr/local/libexec/fml </entry>
<entry>
Executables (corresponding with &fml4;'s /usr/local/fml )
</entry>
</row>
<row>
<entry>
/usr/local/lib/fml
</entry>
<entry>
Perl module location ( &fml4;'s /usr/local/fml )
</entry>
</row>
<row>
<entry>
/usr/local/share/fml
</entry>
<entry>
Message templates ( &fml4;'s /usr/local/fml/messages/).
Template files are language dependendent.
</entry>
</row>
<row>
<entry>
/var/spool/ml
</entry>
<entry>
The top directory for mailing lists of the default domain.
same as &fml4;.
caution: the owner of /var/spool/ml
can be specified by configure arguments.
Prepare different directory for each domain.
For example, /var/spool/ml for fml.org (default domain),
whereas /var/spool/nuinui.net for nuinui.net domain
(virtual domain).
See
<link linkend="virtualdomain.fml8.overview">
ml_home_prefix_maps
</link>
for the relation between domain and directory.
Also see
<link linkend="virtualdomain">
<xref linkend="virtualdomain">
</link>
for the virtual domain detail.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</sect1>
<!-- ====================================================== -->
<sect1 id="install.fml.unix.makeinstall">
<title>
Fml Installation: make install
</title>
<para>
change user to "root" and run "make install" after configure runs.
<screen>
% su root
# make install
</screen>
</para>
<warning>
<para>
You need not to run configure by the user root.
But, you need to run "make install" by root.
So, it may be better to run both by root.
<screen>
% su root
# ./configure
# make install
</screen>
</para>
</warning>
</sect1>
<sect1 id="install.fml.unix.edit.main.cf">
<title>
Edit main.cf
</title>
<para>
Please edit /usr/local/etc/fml/main.cf if needed,
though already configure rewrites main.cf to fit your environment.
</para>
<para>
The file main.cf contains the most fundamental configuration variables
to control &fml8; basic features: fml version control, library path,
virtual domain et.al.
</para>
<para>
Instead, the detail of each ML configuration depends on config.cf file
of each ML such as /var/spool/ml/elena/config.cf for elena ML.
"config.cf" can override all configuration variables: header
customizations, filter rules, member file locations et.al.
</para>
<!-- main.cf example -->
§.main.cf;
</sect1>
<sect1 id="install.fml.unix.edit.site.default.config.cf">
<title>
Edit site_default_config.cf (optional)
</title>
<para>
/usr/local/etc/fml/site_default_config.cf is the configuration file
common over all mailing list on this host (site).
<footnote>
<para>
This file corresponds to &fml4;'s site_force.ph.
</para>
</footnote>
</para>
<para>
site_default_config.cf overrides default_config.cf file.
Each ML configuration file (/var/spool/ml/elena/config.cf for elena
ML) overrides site_default_config.cf.
</para>
<para>
By default, some example configurations are added to this file.
<screen>
#
# site default_config.cf EXAMPLE
#
# fml-devel loads .cf files in this order for elena ML.
# 1. ${prefix}/etc/fml/defaults/$VERSION/default_config.cf
# 2. ${prefix}/etc/fml/site_default_config.cf
# 3. ${prefix}/etc/fml/domains/$DOMAIN/default_config.cf
# 4. /tmp/dir/elena/config.cf
#
# This file overrides the default "default_config.cf" configurations
# in the following way.
#
# We want to disable the subject tag in articles by default.
article_header_rewrite_rules -= rewrite_article_subject_tag
# mime based comonent filter
use_mime_component_filter = yes
# [site specific options]
# Example:
# key = value
# key += value
# key -= value
=cut
#
# you can write hooks here after.
# Example:
# $distribute_run_start_hook = q{ ... };
</screen>
</para>
</sect1>
<sect1>
<title>
Filter
</title>
<para>
All filter are enabled by default.
</para>
<para>
"mime component filter" is important.
By default mime component filter is enabled,
Only text/plain article can be passed through &fml8;.
</para>
<para>
To disable mime component filter on all ML's,
set
<screen>
use_mime_component_filter = no
</screen>
at site_default_config.cf.
</para>
<para>
To customize mime component filter, set
<screen>
use_mime_component_filter = yes
</screen>
at site_default_config.cf, and edit rules in
/usr/local/etc/fml/mime_component_filter file.
</para>
</sect1>
<sect1 id="install.virtual">
<title>
Virtual Domain
</title>
<para>
You do not need edit /usr/local/etc/fml/main.cf but you need to edit
$ml_home_prefix_maps (/usr/local/etc/fml/ml_home_prefix file by
default). You can use "makefml newdomain" command to control
$ml_home_prefix_maps. See
<link linkend="setup.newml">
"ML creation"
</link>
for newdomain command.
</para>
<para>
Suppose that fml.org is the default domain. In this case,
/var/spool/ml/$ml is used for $ml ML of fml.org. /var/spool/ml is used
only for the domain fml.org. If you want to set up elena@nuinui.net,
you need to specify other directory.
</para>
<para>
Specify the relation between domain and directory,
edit /usr/local/etc/fml/ml_home_prefix and set the following:
<screen>
nuinui.net /var/spool/nuinui.net
</screen>
Please use "makefml newdomain" command to change
/usr/local/etc/fml/ml_home_prefix file.
It is recommended that you do not edit this file directly.
</para>
<warning>
<para>
site_default_config.cf is applied to all domains.
</para>
</warning>
</sect1>
<!-- MTA configurations -->
§.install.postfix;
§.install.qmail;
<!-- recipes -->
<!-- recipes -->
<sect1 id="install.recipes">
<title>
recipes
</title>
§.install.recipes;
</sect1>
</chapter>
|