Re: Zu dumm zum Bedienen von m4?

From: Oliver Fromme <olli(at)secnetix.de>
Date: Fri, 13 Dec 2002 13:15:27 +0100 (CET)

Bernd Muent <muent(at)euroscript-ls.de> wrote:
> auf einem Linux-System kann ich mit m4 <conf.mc >sendmailneu.cf z.B. eine neue
> sendmail-Konfigurationsdatei erzeugen.
> Wenn ich das auf meinem FreeBSD mache, steht anschliessend in der Ausgabe-Datei
> sendmailneu.cf genau der Inhalt der conf.mc ohne Änderungen.
>
> Tja, was mache ich falsch?

Erstens mußt Du dem m4 sagen, wo es die ganzen m4-includes
für sendmail findet (z.B. -D_CF_DIR_=/usr/share/sendmail/cf/).

Zweitens kannst Du es Dir eh viel einfacher machen, weil es
in /etc/mail schon ein Makefile für das alles gibt. Wenn
Deine mc-Datei foo.mc heißt, kopier sie einfach mal nach
/etc/mail, gehe dorthin und gib »make foo.cf« ein. Fertig.

(Das Makefile dort kann noch viel mehr. Es baut Dir bei
Bedarf auch die Datenbank-Dateien für aliases, access usw.
Siehe auch die Kommentare im Makefile, und natürlich der
entsprechende Abschnitt im handbook.)

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 13 Dec 2002 - 13:15:31 CET

search this site