View | Details | Raw Unified | Return to bug 23088
Collapse All | Expand All

(-)defaults/make.conf (+5 lines)
Lines 301-303 Link Here
301
#SENDMAIL_LDFLAGS=
301
#SENDMAIL_LDFLAGS=
302
#SENDMAIL_LDADD=
302
#SENDMAIL_LDADD=
303
#SENDMAIL_DPADD=
303
#SENDMAIL_DPADD=
304
#
305
# Local sendmail.cf.  Warning! If set, this causes 'make install'
306
# to always copy it over /etc/mail/sendmail.cf!!!
307
# Caveat emptor!  Be sure you want this before you enable it.
308
#SENDMAIL_CF?=	freefall.cf
(-)sendmail/Makefile (-11 / +8 lines)
Lines 15-27 Link Here
15
	    $(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
15
	    $(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
16
	$(CHMOD) $(ROMODE) ${.TARGET}
16
	$(CHMOD) $(ROMODE) ${.TARGET}
17
17
18
ALL=	freebsd.cf
19
20
# Local sendmail.cf, may be set in /etc/make.conf.  Warning! If set, this
21
# causes 'make install' to always copy it over /etc/mail/sendmail.cf!!!
22
# Caveat emptor!  Be sure you want this before you enable it.
23
.if defined(SENDMAIL_CF)
18
.if defined(SENDMAIL_CF)
24
ALL+=	${SENDMAIL_CF}
19
ALL=	${SENDMAIL_CF}
20
.else
21
ALL=	freebsd.cf
25
.endif
22
.endif
26
23
27
CLEANFILES+=$(ALL)
24
CLEANFILES+=$(ALL)
Lines 30-44 Link Here
30
27
31
depend:
28
depend:
32
29
33
install:
34
.if defined(SENDMAIL_CF)
30
.if defined(SENDMAIL_CF)
35
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \
31
install: etc-sendmail.cf
36
		${DESTDIR}/etc/mail/sendmail.cf
32
.else
33
install:
37
.endif
34
.endif
38
35
39
# Helper for src/etc/Makefile
36
# Helper for src/etc/Makefile
40
etc-sendmail.cf: freebsd.cf
37
etc-sendmail.cf: $(ALL)
41
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
38
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 $(ALL) \
42
		${DESTDIR}/etc/mail/sendmail.cf
39
		${DESTDIR}/etc/mail/sendmail.cf
43
40
44
# this is overkill, but....
41
# this is overkill, but....

Return to bug 23088