Date: Thu, 13 Jul 2000 13:10:03 -0700 (PDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: bin/19897: Allow building more then 1 SENDMAIL_CF Message-ID: <200007132010.NAA71061@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/19897; it has been noted by GNATS.
From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: jim@thehousleys.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/19897: Allow building more then 1 SENDMAIL_CF
Date: Thu, 13 Jul 2000 16:03:45 -0400 (EDT)
<<On Thu, 13 Jul 2000 15:11:39 -0400 (EDT), jim@thehousleys.net said:
> The attached patch adds ADDITIONAL_SENDMAIL_CF will multiple
> files maybe specified to be built. None are installed, only
> the file specified by SENDMAIL_CF is installed.
Here is how we do something similar:
RCS file: /home/ncvs/src/etc/sendmail/Makefile,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 Makefile
--- Makefile 1999/08/29 14:20:01 1.1.2.1
+++ Makefile 2000/01/08 18:07:34
@@ -15,25 +15,22 @@
$(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
$(CHMOD) $(ROMODE) ${.TARGET}
-ALL= freebsd.cf
+ALL= freebsd.cf mintaka.cf ossipee.cf lampang.cf
-# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this
-# causes 'make install' to always copy it over /etc/sendmail.cf!!!
-# Caveat emptor! Be sure you want this before you enable it.
-.if defined(SENDMAIL_CF)
-ALL+= ${SENDMAIL_CF}
-.endif
-
CLEANFILES+=$(ALL)
all: $(ALL)
depend:
+# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this
+# causes 'make install' to always copy it over /etc/sendmail.cf!!!
+# Caveat emptor! Be sure you want this before you enable it.
install:
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${ALL} \
+ ${DESTDIR}/etc/mail
.if defined(SENDMAIL_CF)
- ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \
- ${DESTDIR}/etc/sendmail.cf
+ ln -f ${DESTDIR}/etc/mail/${SENDMAIL_CF} /etc/sendmail.cf
.endif
# Helper for src/etc/Makefile
If I were doing this again, I would probably do it like this:
.if defined(SENDMAIL_CF)
set ${SENDMAIL_CF}; ln -f ${DESTDIR}/etc/mail/$1 /etc/sendmail.cf
.endif
In our application, we want all of the cf files to be installed; we
define the role of a particular machine by linking the ``official''
configuration file names to the machine-specific versions.
-GAWollman
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007132010.NAA71061>
