Prev | Current Page 1026 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

For example, GNU m4 version
1.2 allows this:
% setenv CFDIR /usr/local/src/mail/sendmail/cf/
% /usr/local/gnu/bin/m4 -D_CF_DIR_=${CFDIR} ${CFDIR}m4/cf.m4 localsun.mc \
> sendmail.cf
Notice that we store the value for _CF_DIR_ in an environment variable. Note that
GNU m4 can figure out the _CF_DIR_ path itself from the path of the cf.m4 file. We
include _CF_DIR_ here merely as an example. If your version of m4 lacks this ability,
you should consider upgrading.
Withth e _CF_DIR_ m4 macro, we can further simplify configuration and installation
by using make(1). To illustrate, consider the following few lines from a Makefile on a
SunOS system:
M4=/usr/local/gnu/bin/m4
CFDIR=/usr/local/src/mail/sendmail/cf/
localsun: localsun.mc
$(M4) -D_CF_DIR_=$(CFDIR) $(CFDIR)/m4/cf.m4 localsun.mc > sendmail.cf
Withth is Makefile the two complex command lines shown earlier are reduced to a
single, simple command line:
% make
17.2.2 The Minimal mc File
Every mc file requires minimal information. Table 17-1 shows which m4 items are
required and lists two that are recommended. We show them in the order that they
should be declared (OSTYPE first and MAILER last), and then describe the mandatory
and recommended information.
Note that what is minimally required for a workstation differs from what is
minimally required for a central mail server.


Pages:
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
dieta light mieszkania życzenia urodzinowe Tango Olsztyn katalog stron