head	1.32;
access;
symbols
	RELENG_8_4:1.32.0.2
	RELENG_9_1_0_RELEASE:1.31.36.1.4.2
	RELENG_9_1:1.31.36.1.0.4
	RELENG_9_1_BP:1.31.36.1
	RELENG_8_3_0_RELEASE:1.31.30.1.8.1
	RELENG_8_3:1.31.30.1.0.8
	RELENG_8_3_BP:1.31.30.1
	RELENG_9_0_0_RELEASE:1.31.36.1.2.1
	RELENG_9_0:1.31.36.1.0.2
	RELENG_9_0_BP:1.31.36.1
	RELENG_9:1.31.0.36
	RELENG_9_BP:1.31
	RELENG_7_4_0_RELEASE:1.31.34.1
	RELENG_8_2_0_RELEASE:1.31.30.1.6.1
	RELENG_7_4:1.31.0.34
	RELENG_7_4_BP:1.31
	RELENG_8_2:1.31.30.1.0.6
	RELENG_8_2_BP:1.31.30.1
	RELENG_8_1_0_RELEASE:1.31.30.1.4.1
	RELENG_8_1:1.31.30.1.0.4
	RELENG_8_1_BP:1.31.30.1
	RELENG_7_3_0_RELEASE:1.31.32.1
	RELENG_7_3:1.31.0.32
	RELENG_7_3_BP:1.31
	RELENG_8_0_0_RELEASE:1.31.30.1.2.1
	RELENG_8_0:1.31.30.1.0.2
	RELENG_8_0_BP:1.31.30.1
	RELENG_8:1.31.0.30
	RELENG_8_BP:1.31
	RELENG_7_2_0_RELEASE:1.31.28.1
	RELENG_7_2:1.31.0.28
	RELENG_7_2_BP:1.31
	RELENG_7_1_0_RELEASE:1.31.26.1
	RELENG_6_4_0_RELEASE:1.31.24.1
	RELENG_7_1:1.31.0.26
	RELENG_7_1_BP:1.31
	RELENG_6_4:1.31.0.24
	RELENG_6_4_BP:1.31
	RELENG_7_0_0_RELEASE:1.31
	RELENG_6_3_0_RELEASE:1.31
	RELENG_7_0:1.31.0.22
	RELENG_7_0_BP:1.31
	RELENG_6_3:1.31.0.20
	RELENG_6_3_BP:1.31
	RELENG_7:1.31.0.18
	RELENG_7_BP:1.31
	RELENG_6_2_0_RELEASE:1.31
	RELENG_6_2:1.31.0.16
	RELENG_6_2_BP:1.31
	RELENG_5_5_0_RELEASE:1.31
	RELENG_5_5:1.31.0.14
	RELENG_5_5_BP:1.31
	RELENG_6_1_0_RELEASE:1.31
	RELENG_6_1:1.31.0.12
	RELENG_6_1_BP:1.31
	RELENG_6_0_0_RELEASE:1.31
	RELENG_6_0:1.31.0.10
	RELENG_6_0_BP:1.31
	RELENG_6:1.31.0.8
	RELENG_6_BP:1.31
	RELENG_5_4_0_RELEASE:1.31
	RELENG_5_4:1.31.0.6
	RELENG_5_4_BP:1.31
	RELENG_4_11_0_RELEASE:1.3.2.26
	RELENG_4_11:1.3.2.26.0.4
	RELENG_4_11_BP:1.3.2.26
	RELENG_5_3_0_RELEASE:1.31
	RELENG_5_3:1.31.0.4
	RELENG_5_3_BP:1.31
	RELENG_5:1.31.0.2
	RELENG_5_BP:1.31
	RELENG_4_10_0_RELEASE:1.3.2.26
	RELENG_4_10:1.3.2.26.0.2
	RELENG_4_10_BP:1.3.2.26
	RELENG_5_2_1_RELEASE:1.30
	RELENG_5_2_0_RELEASE:1.30
	RELENG_5_2:1.30.0.2
	RELENG_5_2_BP:1.30
	RELENG_4_9_0_RELEASE:1.3.2.24
	RELENG_4_9:1.3.2.24.0.2
	RELENG_4_9_BP:1.3.2.24
	RELENG_5_1_0_RELEASE:1.21
	RELENG_5_1:1.21.0.4
	RELENG_5_1_BP:1.21
	RELENG_4_8_0_RELEASE:1.3.2.17
	RELENG_4_8:1.3.2.17.0.4
	RELENG_4_8_BP:1.3.2.17
	RELENG_5_0_0_RELEASE:1.21
	RELENG_5_0:1.21.0.2
	RELENG_5_0_BP:1.21
	RELENG_4_7_0_RELEASE:1.3.2.17
	RELENG_4_7:1.3.2.17.0.2
	RELENG_4_7_BP:1.3.2.17
	RELENG_4_6_2_RELEASE:1.3.2.15
	RELENG_4_6_1_RELEASE:1.3.2.15
	RELENG_4_6_0_RELEASE:1.3.2.15
	RELENG_4_6:1.3.2.15.0.2
	RELENG_4_6_BP:1.3.2.15
	RELENG_4_5_0_RELEASE:1.3.2.9
	RELENG_4_5:1.3.2.9.0.2
	RELENG_4_5_BP:1.3.2.9
	RELENG_4_4_0_RELEASE:1.3.2.8
	RELENG_4_4:1.3.2.8.0.2
	RELENG_4_4_BP:1.3.2.8
	RELENG_4_3_0_RELEASE:1.3.2.5
	RELENG_4_3:1.3.2.5.0.2
	RELENG_4_3_BP:1.3.2.5
	RELENG_4_2_0_RELEASE:1.3
	RELENG_4_1_1_RELEASE:1.3
	PRE_SMPNG:1.3
	RELENG_4_1_0_RELEASE:1.3
	RELENG_3_5_0_RELEASE:1.1.2.1
	RELENG_4_0_0_RELEASE:1.3
	RELENG_4:1.3.0.2
	RELENG_4_BP:1.3
	RELENG_3_4_0_RELEASE:1.1.2.1
	RELENG_3_3_0_RELEASE:1.1.2.1
	RELENG_3_2_PAO:1.1.0.4
	RELENG_3_2_PAO_BP:1.1
	RELENG_3_2_0_RELEASE:1.1
	RELENG_3_1_0_RELEASE:1.1
	RELENG_3:1.1.0.2
	RELENG_3_BP:1.1
	RELENG_3_0_0_RELEASE:1.1;
locks; strict;
comment	@# @;


1.32
date	2012.11.17.01.49.06;	author svnexp;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2004.01.22.17.51.02;	author ru;	state Exp;
branches
	1.31.8.1
	1.31.18.1
	1.31.24.1
	1.31.26.1
	1.31.28.1
	1.31.30.1
	1.31.32.1
	1.31.34.1
	1.31.36.1;
next	1.30;

1.30
date	2003.10.19.00.03.13;	author gshapiro;	state Exp;
branches;
next	1.29;

1.29
date	2003.09.24.04.19.26;	author gshapiro;	state Exp;
branches;
next	1.28;

1.28
date	2003.09.01.03.40.33;	author gshapiro;	state Exp;
branches;
next	1.27;

1.27
date	2003.08.10.20.48.59;	author gshapiro;	state Exp;
branches;
next	1.26;

1.26
date	2003.07.10.04.53.32;	author gshapiro;	state Exp;
branches;
next	1.25;

1.25
date	2003.07.07.03.19.46;	author gshapiro;	state Exp;
branches;
next	1.24;

1.24
date	2003.07.06.18.54.18;	author gshapiro;	state Exp;
branches;
next	1.23;

1.23
date	2003.07.06.18.51.10;	author gshapiro;	state Exp;
branches;
next	1.22;

1.22
date	2003.07.06.18.07.06;	author gshapiro;	state Exp;
branches;
next	1.21;

1.21
date	2002.07.29.09.40.06;	author ru;	state Exp;
branches;
next	1.20;

1.20
date	2002.07.18.12.07.44;	author ru;	state Exp;
branches;
next	1.19;

1.19
date	2002.05.24.01.44.53;	author gshapiro;	state Exp;
branches;
next	1.18;

1.18
date	2002.04.21.20.32.26;	author gshapiro;	state Exp;
branches;
next	1.17;

1.17
date	2002.04.14.19.20.21;	author gshapiro;	state Exp;
branches;
next	1.16;

1.16
date	2002.04.05.02.30.46;	author gshapiro;	state Exp;
branches;
next	1.15;

1.15
date	2002.02.24.02.38.23;	author gshapiro;	state Exp;
branches;
next	1.14;

1.14
date	2002.02.17.22.09.15;	author gshapiro;	state Exp;
branches;
next	1.13;

1.13
date	2001.11.20.03.41.05;	author gshapiro;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.01.02.12.39;	author gshapiro;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.23.02.19.02;	author gshapiro;	state Exp;
branches;
next	1.10;

1.10
date	2001.07.23.01.33.53;	author gshapiro;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.01.03.50.28;	author gshapiro;	state Exp;
branches;
next	1.8;

1.8
date	2001.02.28.04.04.07;	author gshapiro;	state Exp;
branches;
next	1.7;

1.7
date	2001.02.22.19.44.11;	author gshapiro;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.22.04.11.50;	author gshapiro;	state Exp;
branches;
next	1.5;

1.5
date	2001.02.22.04.01.16;	author gshapiro;	state Exp;
branches;
next	1.4;

1.4
date	2001.02.22.03.55.01;	author gshapiro;	state Exp;
branches;
next	1.3;

1.3
date	99.12.19.19.55.18;	author obrien;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	99.08.27.23.24.09;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	98.08.04.15.53.18;	author peter;	state Exp;
branches
	1.1.2.1;
next	;

1.32.2.1
date	2012.11.17.01.49.06;	author svnexp;	state dead;
branches;
next	1.32.2.2;

1.32.2.2
date	2013.03.28.13.02.44;	author svnexp;	state Exp;
branches;
next	;

1.31.8.1
date	2012.11.17.07.39.10;	author svnexp;	state Exp;
branches;
next	;

1.31.18.1
date	2012.11.17.08.01.23;	author svnexp;	state Exp;
branches;
next	;

1.31.24.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.31.26.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.31.28.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.31.30.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.31.30.1.2.1
	1.31.30.1.4.1
	1.31.30.1.6.1
	1.31.30.1.8.1;
next	1.31.30.2;

1.31.30.2
date	2012.11.17.10.35.57;	author svnexp;	state Exp;
branches;
next	;

1.31.30.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.31.30.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.31.30.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.31.30.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.31.30.1.8.2;

1.31.30.1.8.2
date	2012.11.17.08.24.38;	author svnexp;	state Exp;
branches;
next	;

1.31.32.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.31.34.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.31.34.2;

1.31.34.2
date	2012.11.17.08.16.37;	author svnexp;	state Exp;
branches;
next	;

1.31.36.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.31.36.1.2.1
	1.31.36.1.4.1;
next	1.31.36.2;

1.31.36.2
date	2012.11.17.11.36.11;	author svnexp;	state Exp;
branches;
next	;

1.31.36.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.31.36.1.2.2;

1.31.36.1.2.2
date	2012.11.17.08.36.11;	author svnexp;	state Exp;
branches;
next	;

1.31.36.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.31.36.1.4.2;

1.31.36.1.4.2
date	2012.11.17.08.47.01;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1
date	2001.02.27.21.20.16;	author gshapiro;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2001.02.27.21.29.42;	author gshapiro;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2001.02.27.21.32.00;	author gshapiro;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	2001.03.06.01.54.56;	author gshapiro;	state Exp;
branches;
next	1.3.2.5;

1.3.2.5
date	2001.03.06.01.56.44;	author gshapiro;	state Exp;
branches;
next	1.3.2.6;

1.3.2.6
date	2001.07.31.00.16.48;	author gshapiro;	state Exp;
branches;
next	1.3.2.7;

1.3.2.7
date	2001.07.31.00.18.12;	author gshapiro;	state Exp;
branches;
next	1.3.2.8;

1.3.2.8
date	2001.08.01.03.38.44;	author gshapiro;	state Exp;
branches;
next	1.3.2.9;

1.3.2.9
date	2001.11.23.17.16.58;	author gshapiro;	state Exp;
branches;
next	1.3.2.10;

1.3.2.10
date	2002.03.05.03.09.46;	author gshapiro;	state Exp;
branches;
next	1.3.2.11;

1.3.2.11
date	2002.03.25.21.34.56;	author gshapiro;	state Exp;
branches;
next	1.3.2.12;

1.3.2.12
date	2002.04.11.23.25.54;	author gshapiro;	state Exp;
branches;
next	1.3.2.13;

1.3.2.13
date	2002.04.20.18.51.02;	author gshapiro;	state Exp;
branches;
next	1.3.2.14;

1.3.2.14
date	2002.04.24.17.28.10;	author gshapiro;	state Exp;
branches;
next	1.3.2.15;

1.3.2.15
date	2002.05.24.15.40.14;	author gshapiro;	state Exp;
branches;
next	1.3.2.16;

1.3.2.16
date	2002.07.18.13.31.20;	author ru;	state Exp;
branches;
next	1.3.2.17;

1.3.2.17
date	2002.08.07.16.31.41;	author ru;	state Exp;
branches;
next	1.3.2.18;

1.3.2.18
date	2003.07.12.23.19.16;	author gshapiro;	state Exp;
branches;
next	1.3.2.19;

1.3.2.19
date	2003.07.12.23.20.16;	author gshapiro;	state Exp;
branches;
next	1.3.2.20;

1.3.2.20
date	2003.07.12.23.20.48;	author gshapiro;	state Exp;
branches;
next	1.3.2.21;

1.3.2.21
date	2003.07.12.23.26.14;	author gshapiro;	state Exp;
branches;
next	1.3.2.22;

1.3.2.22
date	2003.07.12.23.26.46;	author gshapiro;	state Exp;
branches;
next	1.3.2.23;

1.3.2.23
date	2003.08.25.16.42.23;	author gshapiro;	state Exp;
branches;
next	1.3.2.24;

1.3.2.24
date	2003.09.05.01.12.28;	author gshapiro;	state Exp;
branches;
next	1.3.2.25;

1.3.2.25
date	2003.10.30.22.37.06;	author gshapiro;	state Exp;
branches;
next	1.3.2.26;

1.3.2.26
date	2003.10.30.22.38.33;	author gshapiro;	state Exp;
branches;
next	1.3.2.27;

1.3.2.27
date	2012.11.17.07.22.39;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1
date	99.08.29.14.20.01;	author peter;	state Exp;
branches;
next	;


desc
@@


1.32
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.19 (Berkeley) 1/14/97
# $FreeBSD: head/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $

M4=		m4
CHMOD=		chmod
ROMODE=		444
RM=		rm -f

SENDMAIL_DIR=	${.CURDIR}/../../contrib/sendmail
SMDIR=		${SENDMAIL_DIR}/src
SENDMAIL_CF_DIR?=${SENDMAIL_DIR}/cf

# this is overkill, but....
M4FILES!=	find ${SENDMAIL_CF_DIR} -type f -name '*.m4' -print

.SUFFIXES: .mc .cf

.mc.cf: ${M4FILES}
	${RM} ${.TARGET}
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${SENDMAIL_CF_DIR}/m4/cf.m4 ${.IMPSRC} > ${.TARGET}
	${CHMOD} ${ROMODE} ${.TARGET}

DEST_CF=	${DESTDIR}/etc/mail/sendmail.cf
DEST_SUBMIT_CF=	${DESTDIR}/etc/mail/submit.cf

ALL=		freebsd.cf freebsd.submit.cf
CLEANFILES=	freebsd.cf freebsd.submit.cf

# Local SENDMAIL_MC or SENDMAIL_CF may be set in /etc/make.conf.
# Warning!  If set, this causes 'make install' to always copy it
# over /etc/mail/sendmail.cf!!!
# Caveat emptor!  Be sure you want this before you enable it.
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
.error Both SENDMAIL_MC and SENDMAIL_CF cannot be set.
.elif defined(SENDMAIL_MC)
INSTALL_CF=	${SENDMAIL_MC:T:R}.cf
ALL+=		${INSTALL_CF}
CLEANFILES+=	${SENDMAIL_MC:T:R}.cf
${INSTALL_CF}: ${SENDMAIL_MC}
.elif defined(SENDMAIL_CF)
ALL+=		${SENDMAIL_CF}
INSTALL_CF=	${SENDMAIL_CF}
.endif

.if !defined(SENDMAIL_SET_USER_ID) && defined(SENDMAIL_SUBMIT_MC)
INSTALL_SUBMIT_CF= ${SENDMAIL_SUBMIT_MC:T:R}.cf
ALL+=		${INSTALL_SUBMIT_CF}
CLEANFILES+=	${INSTALL_SUBMIT_CF}
${INSTALL_SUBMIT_CF}: ${SENDMAIL_SUBMIT_MC}
.endif

# Additional .cf files to build.
.if defined(SENDMAIL_ADDITIONAL_MC)
SENDMAIL_ADDITIONAL_CF= ${SENDMAIL_ADDITIONAL_MC:T:S/.mc$/.cf/}
ALL+=		${SENDMAIL_ADDITIONAL_CF}
CLEANFILES+=	${SENDMAIL_ADDITIONAL_CF}
.for mc in ${SENDMAIL_ADDITIONAL_MC}
${mc:T:R}.cf: ${mc}
.endfor
.endif

all: ${ALL}

distribution:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${SMDIR}/helpfile ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
	    /dev/null ${DESTDIR}/var/log/sendmail.st
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    freebsd.cf ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    freebsd.submit.cf ${DEST_SUBMIT_CF}

install:
.if defined(INSTALL_CF) && ${INSTALL_CF} != ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${INSTALL_CF} ${DEST_CF}
.endif
.if defined(SENDMAIL_ADDITIONAL_CF)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
.endif
.if !defined(SENDMAIL_SET_USER_ID) && \
    defined(INSTALL_SUBMIT_CF) && ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.endif

.include <bsd.prog.mk>
@


1.32.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:02:44 +0000
@
text
@d1 94
@


1.32.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 94
#	@@(#)Makefile	8.19 (Berkeley) 1/14/97
# $FreeBSD: releng/8.4/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $

M4=		m4
CHMOD=		chmod
ROMODE=		444
RM=		rm -f

SENDMAIL_DIR=	${.CURDIR}/../../contrib/sendmail
SMDIR=		${SENDMAIL_DIR}/src
SENDMAIL_CF_DIR?=${SENDMAIL_DIR}/cf

# this is overkill, but....
M4FILES!=	find ${SENDMAIL_CF_DIR} -type f -name '*.m4' -print

.SUFFIXES: .mc .cf

.mc.cf: ${M4FILES}
	${RM} ${.TARGET}
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${SENDMAIL_CF_DIR}/m4/cf.m4 ${.IMPSRC} > ${.TARGET}
	${CHMOD} ${ROMODE} ${.TARGET}

DEST_CF=	${DESTDIR}/etc/mail/sendmail.cf
DEST_SUBMIT_CF=	${DESTDIR}/etc/mail/submit.cf

ALL=		freebsd.cf freebsd.submit.cf
CLEANFILES=	freebsd.cf freebsd.submit.cf

# Local SENDMAIL_MC or SENDMAIL_CF may be set in /etc/make.conf.
# Warning!  If set, this causes 'make install' to always copy it
# over /etc/mail/sendmail.cf!!!
# Caveat emptor!  Be sure you want this before you enable it.
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
.error Both SENDMAIL_MC and SENDMAIL_CF cannot be set.
.elif defined(SENDMAIL_MC)
INSTALL_CF=	${SENDMAIL_MC:T:R}.cf
ALL+=		${INSTALL_CF}
CLEANFILES+=	${SENDMAIL_MC:T:R}.cf
${INSTALL_CF}: ${SENDMAIL_MC}
.elif defined(SENDMAIL_CF)
ALL+=		${SENDMAIL_CF}
INSTALL_CF=	${SENDMAIL_CF}
.endif

.if !defined(SENDMAIL_SET_USER_ID) && defined(SENDMAIL_SUBMIT_MC)
INSTALL_SUBMIT_CF= ${SENDMAIL_SUBMIT_MC:T:R}.cf
ALL+=		${INSTALL_SUBMIT_CF}
CLEANFILES+=	${INSTALL_SUBMIT_CF}
${INSTALL_SUBMIT_CF}: ${SENDMAIL_SUBMIT_MC}
.endif

# Additional .cf files to build.
.if defined(SENDMAIL_ADDITIONAL_MC)
SENDMAIL_ADDITIONAL_CF= ${SENDMAIL_ADDITIONAL_MC:T:S/.mc$/.cf/}
ALL+=		${SENDMAIL_ADDITIONAL_CF}
CLEANFILES+=	${SENDMAIL_ADDITIONAL_CF}
.for mc in ${SENDMAIL_ADDITIONAL_MC}
${mc:T:R}.cf: ${mc}
.endfor
.endif

all: ${ALL}

distribution:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${SMDIR}/helpfile ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
	    /dev/null ${DESTDIR}/var/log/sendmail.st
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    freebsd.cf ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    freebsd.submit.cf ${DEST_SUBMIT_CF}

install:
.if defined(INSTALL_CF) && ${INSTALL_CF} != ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${INSTALL_CF} ${DEST_CF}
.endif
.if defined(SENDMAIL_ADDITIONAL_CF)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
.endif
.if !defined(SENDMAIL_SET_USER_ID) && \
    defined(INSTALL_SUBMIT_CF) && ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.endif

.include <bsd.prog.mk>
@


1.31
log
@Catch up with etc/Makefile,v 1.324 -- split "install" and "distribution"
targets, have "distribution" always install original (as from the release
media) files, whether SENDMAIL_MC is set or not.  Do error handling the
make(1) way.

Reviewed by:	gshapiro
Approved by:	gshapiro
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.31.18.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.8.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.36.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.31.36.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.36.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.31.36.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.36.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.31.36.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.34.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.31.34.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.32.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.31.30.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.31.30.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.30.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.31.30.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/etc/sendmail/Makefile 124839 2004-01-22 17:51:02Z ru $
@


1.31.30.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.31.30.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.31.30.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.31.28.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.31.26.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.31.24.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.30
log
@Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
the number of broken DNS servers out there in the world.  Since we are
diverging from the sendmail.org submit.mc, it's time to make our own
freebsd.submit.mc.

PR:		conf/57733
Reviewed by:	nork
MFC after:	2 weeks
@
text
@d34 3
a36 1
.if defined(SENDMAIL_MC)
d65 1
a65 6
install distribution:
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
	@@echo ">>> ERROR: Both SENDMAIL_MC and SENDMAIL_CF cannot be set"
	@@false
.endif
.if make(distribution)
d74 6
a79 1
.endif
a82 3
.elif make(distribution)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    freebsd.cf ${DEST_CF}
d84 1
a84 1
.if defined(SENDMAIL_ADDITIONAL_CF) && make(install)
d88 2
a89 2
.if !defined(SENDMAIL_SET_USER_ID)
.if defined(INSTALL_SUBMIT_CF) && ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
a91 4
.elif make(distribution)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    freebsd.submit.cf ${DEST_SUBMIT_CF}
.endif
@


1.29
log
@Turn SENDMAIL_CF_DIR into an officially supported make.conf variable
and use it in src/etc/sendmail/Makefile in case the user wants to use
a different path to the sendmail m4 sources (e.g., sendmail port users).

Submitted by:	dinoex
MFC after:	21 days
X-MFC after:	RELENG_4 code freeze ends
@
text
@a62 7
# Build the installed submit.cf from the sendmail distributed submit.mc.
freebsd.submit.cf:	${SENDMAIL_CF_DIR}/cf/submit.mc
	${RM} ${.TARGET}
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${SENDMAIL_CF_DIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
	${CHMOD} ${ROMODE} ${.TARGET}

d72 1
a72 4
	    ${SENDMAIL_CF_DIR}/cf/submit.mc \
	    ${DESTDIR}/etc/mail/freebsd.submit.mc
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    freebsd.submit.cf ${DESTDIR}/etc/mail
@


1.28
log
@Build the submit.cf file instead of installing the version that ships
with the vendor sendmail distribution.  By doing so, we avoid mergemaster
warnings after every 'make' in /etc/mail/.

Reported by:	Jeremy Chadwick <koitsu@@parodius.com>
MFC after:	3 days
X-MFC after:	and re approval
@
text
@d11 1
a11 1
CFDIR=		${SENDMAIL_DIR}/cf
d14 1
a14 1
M4FILES!=	find ${CFDIR} -type f -name '*.m4' -print
d20 2
a21 2
	${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${CFDIR}/m4/cf.m4 ${.IMPSRC} > ${.TARGET}
d64 1
a64 1
freebsd.submit.cf:	${CFDIR}/cf/submit.mc
d66 2
a67 2
	${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${CFDIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
d79 2
a80 1
	    ${CFDIR}/cf/submit.mc ${DESTDIR}/etc/mail/freebsd.submit.mc
@


1.27
log
@Revert revision 1.25 now that mergemaster does a 'make all' to build
the required .cf file(s).

Submitted by:	ru
X-MFC after:	mergemaster MFC
@
text
@d27 2
a28 2
ALL=		freebsd.cf
CLEANFILES=	freebsd.cf
d63 7
d81 1
a81 1
	    ${CFDIR}/cf/submit.cf ${DESTDIR}/etc/mail/freebsd.submit.cf
d104 1
a104 1
	    ${CFDIR}/cf/submit.cf ${DEST_SUBMIT_CF}
@


1.26
log
@Continue trying to build SENDMAIL_CF if the user uses SENDMAIL_CF
instead of SENDMAIL_MC but don't remove on it 'make clean' as the
user may not have the original .mc file and removing it could be
dangerous (e.g., make SENDMAIL_CF=/etc/mail/sendmail.cf clean).

Noticed by:	peter
MFC after:	3 days
@
text
@d63 1
a63 1
install distribution: ${ALL}
@


1.25
log
@Put back install/distribution dependency on the buildable .cf
files to get mergemaster working again.

Noticed by:	Shin-ichi YOSHIMOTO <yosimoto@@waishi.jp>
@
text
@d28 1
d37 1
d40 1
d47 1
d55 1
a59 2

CLEANFILES=	${ALL}
@


1.24
log
@Get rid of unneeded depend target

Submitted by:	ru
MFC after:	5 days
@
text
@d60 1
a60 1
install distribution:
@


1.23
log
@- Prevent buildworld from trying to write to /etc/mail/
- Stop 'make clean' from removing SENDMAIL_CF
- install and distribute targets should not attempt to build anything
- SENDMAIL_ADDITIONAL_CF were not installed in the distribution case
- If SENDMAIL_SET_USER_ID was defined, submit.cf was needlessly installed
  in the distribution case
- Collapse install and distribution target into one to remove code
  duplication

Submitted by:	ru
MFC after:	5 days
@
text
@a59 2
depend:

@


1.22
log
@Style fixes: tab after a dependency operator should be a single space
             second level indent of tab should be four spaces

Submitted by:	ru
MFC after:	3 days
@
text
@d20 2
a21 3
	(cd ${.CURDIR} && \
	    ${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
		${CFDIR}/m4/cf.m4 ${@@:R}.mc) > ${.TARGET}
d24 3
a27 1
CLEANFILES+=	freebsd.cf
d30 1
a30 1
# Warning! If set, this causes 'make install' to always copy it
d34 4
a37 3
INSTALL_CF=	${SENDMAIL_MC:R}.cf
.else
.if defined(SENDMAIL_CF)
a39 20
.endif

.ifndef SENDMAIL_SET_USER_ID
.if defined(SENDMAIL_SUBMIT_MC)
INSTALL_SUBMIT_CF=${SENDMAIL_SUBMIT_MC:R}.cf
.endif
.endif

DEST_CF=	${DESTDIR}/etc/mail/sendmail.cf
DEST_SUBMIT_CF=	${DESTDIR}/etc/mail/submit.cf

ALL+=		${INSTALL_CF} ${INSTALL_SUBMIT_CF}

# Make sure we don't remove /etc/mail/sendmail.cf on make clean
# since this will break a running system during a buildworld.
.if defined(INSTALL_CF)
.if ${INSTALL_CF} != ${DEST_CF}
CLEANFILES+=	${INSTALL_CF}
.endif
.endif
d41 4
a44 4
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
CLEANFILES+=	${INSTALL_SUBMIT_CF}
.endif
d47 1
a47 1
# Additional .cf files to build
d49 1
a49 1
SENDMAIL_ADDITIONAL_CF=	${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
d51 3
a53 1
CLEANFILES+=	${SENDMAIL_ADDITIONAL_CF}
d56 2
d62 3
a64 3
install: ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
	@@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
d67 11
a77 4
.if defined(INSTALL_CF)
.if ${INSTALL_CF} != ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
	    ${DEST_CF}
d79 6
d86 1
a86 1
.if defined(SENDMAIL_ADDITIONAL_CF)
d90 2
a91 35
.ifndef SENDMAIL_SET_USER_ID
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.endif
.endif
.endif

# Helper for src/etc/Makefile
distribution: freebsd.cf freebsd.mc ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
	@@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
	@@false
.endif
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/freebsd.mc \
	    ${DESTDIR}/etc/mail/freebsd.mc
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
	    ${DESTDIR}/etc/mail/freebsd.cf
.if defined(INSTALL_CF)
.if ${INSTALL_CF} != ${DEST_CF}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
	    ${DEST_CF}
.endif
.else
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
	    ${DEST_CF}
.endif
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
	    ${DESTDIR}/etc/mail/freebsd.submit.mc
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
	    ${DESTDIR}/etc/mail/freebsd.submit.cf
.ifndef SENDMAIL_SET_USER_ID
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
d94 3
a96 4
.endif
.else
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
	    ${DEST_SUBMIT_CF}
a98 4
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
	    ${DESTDIR}/etc/mail/helpfile
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
	    ${DESTDIR}/var/log/sendmail.st
@


1.21
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@d16 1
a16 1
.SUFFIXES:	.mc .cf
d18 1
a18 1
.mc.cf:		${M4FILES}
d72 1
a72 1
all:		${ALL}
d76 1
a76 1
install:	${INSTALL_CF} ${INSTALL_SUBMIT_CF}
d84 1
a84 1
		${DEST_CF}
d89 1
a89 1
		${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
d95 1
a95 1
		${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
d101 1
a101 1
distribution:	freebsd.cf freebsd.mc ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
d107 1
a107 1
		${DESTDIR}/etc/mail/freebsd.mc
d109 1
a109 1
		${DESTDIR}/etc/mail/freebsd.cf
d113 1
a113 1
		${DEST_CF}
d117 1
a117 1
		${DEST_CF}
d127 1
a127 1
		${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
@


1.20
log
@s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d83 1
a83 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
d88 1
a88 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
d94 1
a94 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
d106 1
a106 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/freebsd.mc \
d108 1
a108 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
d112 1
a112 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
d116 1
a116 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
d119 1
a119 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
d121 1
a121 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d126 1
a126 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
d130 1
a130 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d134 1
a134 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
d136 1
a136 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@


1.19
log
@Change the default permissions for the sendmail statistics file to 0640
instead of 0644 to help protect users against a file locking local
denial of service.

MFC after:	1 day
		pending RE approval
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.18 2002/04/21 20:32:26 gshapiro Exp $
d119 1
a119 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
d121 1
a121 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d130 1
a130 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d134 1
a134 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
d136 1
a136 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@


1.18
log
@Non-sendmail users use the FreeBSD sendmail startup functionality to start
alternative MTAs.  Therefore, always install rc.sendmail, regardless of
NO_SENDMAIL make.conf setting.  Users can still set mta_start_script to a
different script.

This commit is after a repo-copy of src/etc/sendmail/rc.sendmail to
src/etc/rc.sendmail.

Noticed by:	Calvin NG <calvinng@@brel.com>
MFC after:	3 days
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.17 2002/04/14 19:20:21 gshapiro Exp $
d136 1
a136 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
@


1.17
log
@Provide a new make.conf knob, SENDMAIL_SUBMIT_MC to allow users to pick
the .mc file used for /etc/mail/submit.cf.  By default,
/etc/mail/freebsd.submit.mc is installed and used.

Requested by:	fenner
Submitted by:	ume
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.16 2002/04/05 02:30:46 gshapiro Exp $
a105 2
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/rc.sendmail \
		${DESTDIR}/etc
@


1.16
log
@Quoting Peter Wemm, "At great personal risk, touch the sendmail startup
again."

As an alternative to sendmail_enable=NONE, solve the boot time problem
for non-sendmail users completely by moving all of the sendmail startup
code from /etc/rc to /etc/rc.sendmail.  The source for that script will
be kept in src/etc/sendmail/rc.sendmail so make.conf's NO_SENDMAIL will
prevent it from being installed.  A new rc.conf variable,
mta_start_script specifies the script to run to start the user's
preferred MTA.  For backward compatibility, it will default to
/etc/rc.sendmail.  The specified script is called out of /etc/rc after
checking to make sure it exists.  A new rc.sendmail.8 man page has also
been added which now houses the sendmail_* variable descriptions
formerly in rc.conf.5.

Use /etc/rc.sendmail in /etc/mail/Makefile to reduce code duplication.

Reviewed by:	-current, -stable, obrien, peter, ru
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.15 2002/02/24 02:38:23 gshapiro Exp $
d40 6
d47 1
d49 1
a49 1
ALL+=		${INSTALL_CF}
d59 6
d76 1
a76 1
install:	${INSTALL_CF}
d86 1
d91 7
d101 1
a101 1
distribution:	freebsd.cf freebsd.mc ${INSTALL_CF}
d121 4
d126 6
a131 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
	    ${DESTDIR}/etc/mail/submit.mc
d133 2
a134 1
	    ${DESTDIR}/etc/mail/submit.cf
@


1.15
log
@Make sure we don't remove /etc/mail/sendmail.cf on make clean since this
will break a running system during a buildworld.

Noticed by:	Alexandr Listopad <laa@@laa.zp.ua>
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.14 2002/02/17 22:09:15 gshapiro Exp $
d85 2
@


1.14
log
@Add new build knob, SENDMAIL_SET_USER_ID, which installs sendmail as a
set-user-ID root binary instead of the new method (set-group-ID smmsp).
Therefore, we shouldn't install /etc/mail/submit.cf if it is set.
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.13 2001/11/20 03:41:05 gshapiro Exp $
d25 2
a26 1
ALL=	freebsd.cf
d44 8
d56 1
a57 2

CLEANFILES+=	${ALL}
@


1.13
log
@Since buildworld builds cf files specified in SENDMAIL_ADDITIONAL_MC,
installworld should install them.

PR:		29928
Submitted by:	wollman
MFC after:	3 days
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.12 2001/08/01 02:12:39 gshapiro Exp $
d89 6
@


1.12
log
@Revert change to always include _FFR_TLS_O_T as it requires FEATURE(access_db)

Problem found by:	nsayer
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.11 2001/07/23 02:19:02 gshapiro Exp $
d45 2
a46 1
ALL+=		${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
d64 4
@


1.11
log
@If the user sets SENDMAIL_MC to /etc/mail/sendmail.mc, install is told to
install /etc/mail/sendmail.cf to /etc/mail/sendmail.cf and exits with an
error:

===> etc/sendmail
install -c -o root -g wheel -m 644 /etc/mail/sendmail.cf /etc/mail/sendmail.cf
install: /etc/mail/sendmail.cf and /etc/mail/sendmail.cf are the same file
*** Error code 64

Catch this in the Makefile and don't call install if the source and target
are the same file.

Reported by:	Alexandr Listopad <laa@@reis.zp.ua>
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.10 2001/07/23 01:33:53 gshapiro Exp $
a11 2

SENDMAIL_M4_FLAGS+=	-D_FFR_TLS_O_T
@


1.10
log
@New make knob, SENDMAIL_M4_FLAGS, modifies the flags passed to m4 when
building a .cf file from a .mc file.

Include -D_FFR_TLS_O_T to enable tls policy control since the sendmail binary
build enables that FFR as well.

PR:		conf/28361
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.9 2001/03/01 03:50:28 gshapiro Exp $
d41 2
d62 1
d64 2
a65 1
		${DESTDIR}/etc/mail/sendmail.cf
d79 1
d81 2
a82 1
		${DESTDIR}/etc/mail/sendmail.cf
d85 1
a85 1
		${DESTDIR}/etc/mail/sendmail.cf
@


1.9
log
@Move installation of sendmail helpfile into etc/sendmail/Makefile.  It is
a user configurable file and it would benefit from mergemaster.
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.8 2001/02/28 04:04:07 gshapiro Exp $
d13 2
d23 2
a24 1
	    ${M4} -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@@:R}.mc) > ${.TARGET}
@


1.8
log
@Fix dependencies and cleanup spacing in the file
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.7 2001/02/22 19:44:11 gshapiro Exp $
d8 4
a11 1
CFDIR=		${.CURDIR}/../../contrib/sendmail/cf
d78 2
@


1.7
log
@Need one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy bug
report.  It allows building multiple .cf files at build time.

PR:		bin/19897
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.6 2001/02/22 04:11:50 gshapiro Exp $
d4 5
a8 5
M4=	m4
CFDIR=	${.CURDIR}/../../contrib/sendmail/cf
CHMOD=	chmod
ROMODE=	444
RM=	rm -f
d10 4
a13 1
.SUFFIXES:  .mc .cf
d15 2
a16 2
.mc.cf:
	$(RM) ${.TARGET}
d18 2
a19 2
	    $(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@@:R}.mc) > ${.TARGET}
	$(CHMOD) $(ROMODE) ${.TARGET}
d35 1
a35 3
.if defined(INSTALL_CF)
ALL+=	${INSTALL_CF}
.endif
d39 1
a39 1
ALL+=	${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
d42 1
a42 1
CLEANFILES+=$(ALL)
d44 1
a44 1
all: $(ALL)
d48 1
a48 2
.if defined(INSTALL_CF)
install: ${INSTALL_CF}
d53 1
a55 2
.else
install:
d59 1
a59 1
distribution: freebsd.cf freebsd.mc
a76 5

# this is overkill, but....
M4FILES!= find ${CFDIR} -type f -name '*.m4' -print

$(ALL):  $(M4FILES)
@


1.6
log
@Add a new make knob, SENDMAIL_MC, which is meant to replace SENDMAIL_CF as
users should be configuring via m4 now.  If set, use m4 to create the .cf
file.  Also, if either SENDMAIL_MC or SENDMAIL_CF is set, 'make install' or
'make distribution' in src/etc/sendmail/ will install the appropriate .cf as
/etc/mail/sendmail.cf.  This fixes some mergemaster problems.

PR:		conf/13016
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.5 2001/02/22 04:01:16 gshapiro Exp $
d34 5
@


1.5
log
@Install freebsd.mc and freebsd.cf in /etc/mail so users have the base files
for creating their own configuration.
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.4 2001/02/22 03:55:01 gshapiro Exp $
d20 3
a22 2
# Local sendmail.cf, may be set in /etc/make.conf.  Warning! If set, this
# causes 'make install' to always copy it over /etc/mail/sendmail.cf!!!
d24 3
d28 6
a33 1
ALL+=	${SENDMAIL_CF}
d42 9
a51 3
.if defined(SENDMAIL_CF)
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \
		${DESTDIR}/etc/mail/sendmail.cf
d56 4
d64 4
d70 3
a72 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 
		${DESTDIR}/var/log/sendmail.st 
@


1.4
log
@Move creation of the sendmail statistics file from the usr.sbin/sendmail
Makefile to the etc/sendmail Makefile to be consistent with all of the
other /var file creations.  In doing so, change the Makefile target from
etc-sendmail.cf to distribution as it installs more than just the sendmail.cf.
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3 1999/12/19 19:55:18 obrien Exp $
d40 5
a44 1
distribution: freebsd.cf
@


1.3
log
@Install sendmail.cf into /etc/mail.

The current offical Sendmail Inc. version uses /var/mail/ and when we upgrade
our repository to that version, we will get the change.  It is best to make
the path change in 4.0-R (which may not have the latest Sendmail Inc. version,
than to change in mid-4.x stream when we may upgrade.

Ok'ed by:	Peter (quite a while ago)
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.2 1999/08/27 23:24:09 peter Exp $
d40 1
a40 1
etc-sendmail.cf: freebsd.cf
d43 2
@


1.3.2.1
log
@MFC: Move creation of the sendmail statistics file from the usr.sbin/sendmail
     Makefile to the etc/sendmail Makefile to be consistent with all of the
     other /var file creations.  In doing so, change the Makefile target from
     etc-sendmail.cf to distribution as it installs more than just the
     sendmail.cf.

 Revision  Changes    Path
  1.242     +2 -2      src/etc/Makefile
  1.4       +4 -2      src/etc/sendmail/Makefile
  1.30      +1 -3      src/usr.sbin/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3 1999/12/19 19:55:18 obrien Exp $
d40 1
a40 1
distribution: freebsd.cf
a42 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
		${DESTDIR}/var/log/sendmail.st
@


1.3.2.2
log
@MFC: Add a new make knob, SENDMAIL_MC, which is meant to replace SENDMAIL_CF
     as users should be configuring via m4 now.  If set, use m4 to create
     the .cf file.  Also, if either SENDMAIL_MC or SENDMAIL_CF is set,
     'make install' or 'make distribution' in src/etc/sendmail/ will install
     the appropriate .cf as /etc/mail/sendmail.cf.  This fixes some
     mergemaster problems.

     Revision  Changes    Path
     1.139     +9 -1      src/etc/defaults/make.conf
     1.141     +3 -3      src/etc/defaults/make.conf
     1.6       +33 -9     src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.1 2001/02/27 21:20:16 gshapiro Exp $
d20 2
a21 3
# Local SENDMAIL_MC or SENDMAIL_CF may be set in /etc/make.conf.
# Warning! If set, this causes 'make install' to always copy it
# over /etc/mail/sendmail.cf!!!
a22 3
.if defined(SENDMAIL_MC)
INSTALL_CF=	${SENDMAIL_MC:R}.cf
.else
d24 1
a24 6
INSTALL_CF=	${SENDMAIL_CF}
.endif
.endif

.if defined(INSTALL_CF)
ALL+=	${INSTALL_CF}
d33 3
a35 7
.if defined(INSTALL_CF)
install: ${INSTALL_CF}
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
	@@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
	@@false
.endif
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
a36 2
.else
install:
d40 1
a40 7
distribution: freebsd.cf freebsd.mc
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
	@@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
	@@false
.endif
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/freebsd.mc \
		${DESTDIR}/etc/mail/freebsd.mc
a41 3
		${DESTDIR}/etc/mail/freebsd.cf
.if defined(INSTALL_CF)
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
a42 4
.else
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
		${DESTDIR}/etc/mail/sendmail.cf
.endif
d44 1
a44 1
	    ${DESTDIR}/var/log/sendmail.st
@


1.3.2.3
log
@MFC: Need one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy
     bug report (PR bin/19897).  It allows building multiple .cf files at
     build time.

     Revision  Changes    Path
     1.142     +6 -1      src/etc/defaults/make.conf
     1.7       +6 -1      src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.2 2001/02/27 21:29:42 gshapiro Exp $
a33 5
.endif

# Additional .cf files to build
.if defined(SENDMAIL_ADDITIONAL_MC)
ALL+=	${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
@


1.3.2.4
log
@MFC: Fix dependencies and cleanup spacing in the file

     Revision  Changes    Path
     1.8       +21 -27    src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.3 2001/02/27 21:32:00 gshapiro Exp $
d4 5
a8 5
M4=		m4
CHMOD=		chmod
ROMODE=		444
RM=		rm -f
CFDIR=		${.CURDIR}/../../contrib/sendmail/cf
d10 1
a10 4
# this is overkill, but....
M4FILES!=	find ${CFDIR} -type f -name '*.m4' -print

.SUFFIXES:	.mc .cf
d12 2
a13 2
.mc.cf:		${M4FILES}
	${RM} ${.TARGET}
d15 2
a16 2
	    ${M4} -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@@:R}.mc) > ${.TARGET}
	${CHMOD} ${ROMODE} ${.TARGET}
d32 3
a34 1
ALL+=		${INSTALL_CF}
d38 1
a38 1
ALL+=		${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
d41 1
a41 1
CLEANFILES+=	${ALL}
d43 1
a43 1
all:		${ALL}
d47 2
a48 1
install:	${INSTALL_CF}
a52 1
.if defined(INSTALL_CF)
d55 2
d60 1
a60 1
distribution:	freebsd.cf freebsd.mc ${INSTALL_CF}
d78 5
@


1.3.2.5
log
@MFC: Move installation of sendmail helpfile into etc/sendmail/Makefile.  It is
     a user configurable file and it would benefit from mergemaster.

     Revision  Changes    Path
     1.9       +7 -2      src/etc/sendmail/Makefile
     1.31      +1 -5      src/usr.sbin/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.4 2001/03/06 01:54:56 gshapiro Exp $
d8 1
a8 4

SENDMAIL_DIR=	${.CURDIR}/../../contrib/sendmail
SMDIR=		${SENDMAIL_DIR}/src
CFDIR=		${SENDMAIL_DIR}/cf
a74 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
	    ${DESTDIR}/etc/mail/helpfile
@


1.3.2.6
log
@MFC: New make knob, SENDMAIL_M4_FLAGS, modifies the flags passed to m4 when
     building a .cf file from a .mc file.

     Include -D_FFR_TLS_O_T to enable tls policy control since the sendmail
     binary build enables that FFR as well.

     Revision  Changes    Path
     1.166     +7 -1      src/etc/defaults/make.conf
     1.18      +5 -3      src/etc/mail/Makefile
     1.10      +5 -2      src/etc/sendmail/Makefile
     1.23      +4 -1      src/share/man/man5/make.conf.5
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.5 2001/03/06 01:56:44 gshapiro Exp $
a12 2
SENDMAIL_M4_FLAGS+=	-D_FFR_TLS_O_T

d21 1
a21 2
	    ${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
		${CFDIR}/m4/cf.m4 ${@@:R}.mc) > ${.TARGET}
@


1.3.2.7
log
@MFC: If the user sets SENDMAIL_MC to /etc/mail/sendmail.mc, install is told to
     install /etc/mail/sendmail.cf to /etc/mail/sendmail.cf and exits with an
     error.

     Catch this in the Makefile and don't call install if the source and target
     are the same file.

     Revision  Changes    Path
     1.19      +3 -1      src/etc/mail/Makefile
     1.11      +10 -4     src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.6 2001/07/31 00:16:48 gshapiro Exp $
a40 2
DEST_CF=	${DESTDIR}/etc/mail/sendmail.cf

a59 1
.if ${INSTALL_CF} != ${DEST_CF}
d61 1
a61 2
		${DEST_CF}
.endif
a74 1
.if ${INSTALL_CF} != ${DEST_CF}
d76 1
a76 2
		${DEST_CF}
.endif
d79 1
a79 1
		${DEST_CF}
@


1.3.2.8
log
@MFC: Revert change to always include _FFR_TLS_O_T as it requires
     FEATURE(access_db)

     Revision  Changes    Path
     1.20      +1 -3      src/etc/mail/Makefile
     1.12      +1 -3      src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.7 2001/07/31 00:18:12 gshapiro Exp $
d12 2
@


1.3.2.9
log
@MFC: Since buildworld builds cf files specified in SENDMAIL_ADDITIONAL_MC,
     installworld should install them.

     Revision  Changes    Path
     1.13      +7 -2      src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.8 2001/08/01 03:38:44 gshapiro Exp $
d45 1
a45 2
SENDMAIL_ADDITIONAL_CF=	${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
ALL+=		${SENDMAIL_ADDITIONAL_CF}
a62 4
.endif
.if defined(SENDMAIL_ADDITIONAL_CF)
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
		${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
@


1.3.2.10
log
@MFC: Make sure we don't remove /etc/mail/sendmail.cf on make clean since this
     will break a running system during a buildworld.

     Revision  Changes    Path
     1.15      +12 -4     src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.9 2001/11/23 17:16:58 gshapiro Exp $
d25 1
a25 2
ALL=		freebsd.cf
CLEANFILES+=	freebsd.cf
a42 8
# Make sure we don't remove /etc/mail/sendmail.cf on make clean
# since this will break a running system during a buildworld.
.if defined(INSTALL_CF)
.if ${INSTALL_CF} != ${DEST_CF}
CLEANFILES+=	${INSTALL_CF}
.endif
.endif

a46 1
CLEANFILES+=	${SENDMAIL_ADDITIONAL_CF}
d48 2
@


1.3.2.11
log
@MFC: Add new build knob, SENDMAIL_SET_USER_ID, which installs sendmail as a
     set-user-ID root binary instead of the new method (set-group-ID smmsp).
     Therefore, we shouldn't install /etc/mail/submit.cf if it is set.

     Revision  Changes    Path
     1.14      +7 -1      src/etc/sendmail/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.10 2002/03/05 03:09:46 gshapiro Exp $
a96 6
.endif
.ifndef SENDMAIL_SET_USER_ID
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
	    ${DESTDIR}/etc/mail/submit.mc
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
	    ${DESTDIR}/etc/mail/submit.cf
@


1.3.2.12
log
@MFC: Quoting Peter Wemm, "At great personal risk, touch the sendmail startup
     again."

     As an alternative to sendmail_enable=NONE, solve the boot time problem
     for non-sendmail users completely by moving all of the sendmail startup
     code from /etc/rc to /etc/rc.sendmail.  The source for that script will
     be kept in src/etc/sendmail/rc.sendmail so make.conf's NO_SENDMAIL will
     prevent it from being installed.  A new rc.conf variable,
     mta_start_script specifies the script to run to start the user's
     preferred MTA.  For backward compatibility, it will default to
     /etc/rc.sendmail.  The specified script is called out of /etc/rc after
     checking to make sure it exists.  A new rc.sendmail.8 man page has also
     been added which now houses the sendmail_* variable descriptions
     formerly in rc.conf.5.

     Use /etc/rc.sendmail in /etc/mail/Makefile to reduce code duplication.

     Reviewed by:    -current, -stable, obrien, peter, ru
     MFC after:      1 week

     Revision  Changes    Path
     1.142     +19 -10    src/etc/defaults/rc.conf
     1.27      +38 -70    src/etc/mail/Makefile
     1.308     +5 -39     src/etc/rc
     1.16      +3 -1      src/etc/sendmail/Makefile
     1.1       +193 -0    src/etc/sendmail/rc.sendmail (new)
     1.160     +13 -105   src/share/man/man5/rc.conf.5
     1.26      +4 -0      src/share/man/man8/Makefile
     1.1       +241 -0    src/share/man/man8/rc.sendmail.8 (new)
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.11 2002/03/25 21:34:56 gshapiro Exp $
a84 2
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/rc.sendmail \
		${DESTDIR}/etc
@


1.3.2.13
log
@MFC: Provide a new make.conf knob, SENDMAIL_SUBMIT_MC to allow users to pick
     the .mc file used for /etc/mail/submit.cf.  By default,
     /etc/mail/freebsd.submit.mc is installed and used.

     1.28      +34 -12    src/etc/mail/Makefile
     1.14      +7 -5      src/etc/mail/README
     1.17      +37 -7     src/etc/sendmail/Makefile
     1.185     +7 -0      src/share/examples/etc/make.conf
     1.42      +10 -0     src/share/man/man5/make.conf.5
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.12 2002/04/11 23:25:54 gshapiro Exp $
a39 6
.ifndef SENDMAIL_SET_USER_ID
.if defined(SENDMAIL_SUBMIT_MC)
INSTALL_SUBMIT_CF=${SENDMAIL_SUBMIT_MC:R}.cf
.endif
.endif

a40 1
DEST_SUBMIT_CF=	${DESTDIR}/etc/mail/submit.cf
d42 1
a42 1
ALL+=		${INSTALL_CF} ${INSTALL_SUBMIT_CF}
a51 6
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
CLEANFILES+=	${INSTALL_SUBMIT_CF}
.endif
.endif

d63 1
a63 1
install:	${INSTALL_CF} ${INSTALL_SUBMIT_CF}
a72 1
.endif
a76 7
.ifndef SENDMAIL_SET_USER_ID
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
		${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.endif
.endif
d80 1
a80 1
distribution:	freebsd.cf freebsd.mc ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
d100 1
d102 1
a102 1
	    ${DESTDIR}/etc/mail/freebsd.submit.mc
d104 1
a104 11
	    ${DESTDIR}/etc/mail/freebsd.submit.cf
.ifndef SENDMAIL_SET_USER_ID
.if defined(INSTALL_SUBMIT_CF)
.if ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
		${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.endif
.else
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
	    ${DEST_SUBMIT_CF}
.endif
@


1.3.2.14
log
@MFC: Non-sendmail users use the FreeBSD sendmail startup functionality to start
     alternative MTAs.  Therefore, always install rc.sendmail, regardless of
     NO_SENDMAIL make.conf setting.  Users can still set mta_start_script to a
     different script.

     This commit is after a repo-copy of src/etc/sendmail/rc.sendmail to
     src/etc/rc.sendmail.

     Revision  Changes    Path
     1.281     +2 -2      src/etc/Makefile
     1.18      +1 -3      src/etc/sendmail/Makefile
     1.3       +0 -194    src/etc/sendmail/rc.sendmail (dead)
     1.27      +1 -4      src/share/man/man8/Makefile
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.13 2002/04/20 18:51:02 gshapiro Exp $
d106 2
@


1.3.2.15
log
@MFC: Change the default permissions for the sendmail statistics file to 0640
     instead of 0644 to help protect users against a file locking local
     denial of service.

     Revision  Changes    Path
     1.39      +2 -2      src/etc/newsyslog.conf
     1.19      +2 -2      src/etc/sendmail/Makefile

Approved by:	re (bmah)
@
text
@d2 1
a2 1
# $FreeBSD: src/etc/sendmail/Makefile,v 1.3.2.14 2002/04/24 17:28:10 gshapiro Exp $
d136 1
a136 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@


1.3.2.16
log
@MFC: s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d2 1
a2 1
# $FreeBSD$
d119 1
a119 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
d121 1
a121 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d130 1
a130 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d134 1
a134 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
d136 1
a136 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@


1.3.2.17
log
@MFC: Drop support for COPY.
@
text
@d83 1
a83 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
d88 1
a88 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
d94 1
a94 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
d106 1
a106 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/freebsd.mc \
d108 1
a108 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
d112 1
a112 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
d116 1
a116 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
d119 1
a119 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
d121 1
a121 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d126 1
a126 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
d130 1
a130 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
d134 1
a134 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
d136 1
a136 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@


1.3.2.18
log
@MFC: Style fixes: tab after a dependency operator should be a single space
                  second level indent of tab should be four spaces

     Revision  Changes    Path
     1.34      +16 -16    src/etc/mail/Makefile
     1.22      +13 -13    src/etc/sendmail/Makefile
@
text
@d16 1
a16 1
.SUFFIXES: .mc .cf
d18 1
a18 1
.mc.cf: ${M4FILES}
d72 1
a72 1
all: ${ALL}
d76 1
a76 1
install: ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
d84 1
a84 1
	    ${DEST_CF}
d89 1
a89 1
	    ${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
d95 1
a95 1
	    ${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
d101 1
a101 1
distribution: freebsd.cf freebsd.mc ${INSTALL_CF} ${INSTALL_SUBMIT_CF}
d107 1
a107 1
	    ${DESTDIR}/etc/mail/freebsd.mc
d109 1
a109 1
	    ${DESTDIR}/etc/mail/freebsd.cf
d113 1
a113 1
	    ${DEST_CF}
d117 1
a117 1
	    ${DEST_CF}
d127 1
a127 1
	    ${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
@


1.3.2.19
log
@MFC: - Prevent buildworld from trying to write to /etc/mail/
     - Stop 'make clean' from removing SENDMAIL_CF
     - install and distribute targets should not attempt to build anything
     - SENDMAIL_ADDITIONAL_CF were not installed in the distribution case
     - If SENDMAIL_SET_USER_ID was defined, submit.cf was needlessly installed
       in the distribution case
     - Collapse install and distribution target into one to remove code
       duplication

     Revision  Changes    Path
     1.23      +47 -86    src/etc/sendmail/Makefile
@
text
@d20 3
a22 2
	${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${CFDIR}/m4/cf.m4 ${.IMPSRC} > ${.TARGET}
a24 3
DEST_CF=	${DESTDIR}/etc/mail/sendmail.cf
DEST_SUBMIT_CF=	${DESTDIR}/etc/mail/submit.cf

d26 1
d29 1
a29 1
# Warning!  If set, this causes 'make install' to always copy it
d33 3
a35 4
INSTALL_CF=	${SENDMAIL_MC:T:R}.cf
ALL+=		${INSTALL_CF}
${INSTALL_CF}: ${SENDMAIL_MC}
.elif defined(SENDMAIL_CF)
d38 20
d59 4
a62 4
.if !defined(SENDMAIL_SET_USER_ID) && defined(SENDMAIL_SUBMIT_MC)
INSTALL_SUBMIT_CF= ${SENDMAIL_SUBMIT_MC:T:R}.cf
ALL+=		${INSTALL_SUBMIT_CF}
${INSTALL_SUBMIT_CF}: ${SENDMAIL_SUBMIT_MC}
d65 1
a65 1
# Additional .cf files to build.
d67 1
a67 1
SENDMAIL_ADDITIONAL_CF= ${SENDMAIL_ADDITIONAL_MC:T:S/.mc$/.cf/}
d69 1
a69 3
.for mc in ${SENDMAIL_ADDITIONAL_MC}
${mc:T:R}.cf: ${mc}
.endfor
a71 2
CLEANFILES=	${ALL}

d76 3
a78 3
install distribution:
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
	@@echo ">>> ERROR: Both SENDMAIL_MC and SENDMAIL_CF cannot be set"
d81 7
a87 1
.if make(distribution)
d89 1
a89 9
	    ${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${CFDIR}/cf/submit.mc ${DESTDIR}/etc/mail/freebsd.submit.mc
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${CFDIR}/cf/submit.cf ${DESTDIR}/etc/mail/freebsd.submit.cf
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${SMDIR}/helpfile ${DESTDIR}/etc/mail
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
	    /dev/null ${DESTDIR}/var/log/sendmail.st
d91 3
a93 1
.if defined(INSTALL_CF) && ${INSTALL_CF} != ${DEST_CF}
d95 3
a97 4
	    ${INSTALL_CF} ${DEST_CF}
.elif make(distribution)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    freebsd.cf ${DEST_CF}
d99 6
a104 3
.if defined(SENDMAIL_ADDITIONAL_CF) && make(install)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
d106 20
a125 2
.if !defined(SENDMAIL_SET_USER_ID)
.if defined(INSTALL_SUBMIT_CF) && ${INSTALL_SUBMIT_CF} != ${DEST_SUBMIT_CF}
d128 4
a131 3
.elif make(distribution)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${CFDIR}/cf/submit.cf ${DEST_SUBMIT_CF}
d134 4
@


1.3.2.20
log
@MFC: Get rid of unneeded depend target

     Revision  Changes    Path
     1.24      +0 -2      src/etc/sendmail/Makefile
@
text
@d60 2
@


1.3.2.21
log
@MFC: Put back install/distribution dependency on the buildable .cf
     files to get mergemaster working again.

     Revision  Changes    Path
     1.25      +1 -1      src/etc/sendmail/Makefile
@
text
@d60 1
a60 1
install distribution: ${ALL}
@


1.3.2.22
log
@MFC: Continue trying to build SENDMAIL_CF if the user uses SENDMAIL_CF
     instead of SENDMAIL_MC but don't remove on it 'make clean' as the
     user may not have the original .mc file and removing it could be
     dangerous (e.g., make SENDMAIL_CF=/etc/mail/sendmail.cf clean).

     Revision  Changes    Path
     1.26      +5 -2      src/etc/sendmail/Makefile
@
text
@a27 1
CLEANFILES=	freebsd.cf
a35 1
CLEANFILES+=	${SENDMAIL_MC:T:R}.cf
a37 1
ALL+=		${SENDMAIL_CF}
a43 1
CLEANFILES+=	${INSTALL_SUBMIT_CF}
a50 1
CLEANFILES+=	${SENDMAIL_ADDITIONAL_CF}
d55 2
@


1.3.2.23
log
@MFC: Revert revision 1.25 now that mergemaster does a 'make all' to build
     the required .cf file(s).

     Revision  Changes    Path
     1.27      +1 -1      src/etc/sendmail/Makefile
@
text
@d63 1
a63 1
install distribution:
@


1.3.2.24
log
@MFC: Build the submit.cf file instead of installing the version that ships
     with the vendor sendmail distribution.  By doing so, we avoid mergemaster
     warnings after every 'make' in /etc/mail/.

     Revision  Changes    Path
     1.28      +11 -4     src/etc/sendmail/Makefile

Approved by:	re (murray)
@
text
@d27 2
a28 2
ALL=		freebsd.cf freebsd.submit.cf
CLEANFILES=	freebsd.cf freebsd.submit.cf
a62 7
# Build the installed submit.cf from the sendmail distributed submit.mc.
freebsd.submit.cf:	${CFDIR}/cf/submit.mc
	${RM} ${.TARGET}
	${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${CFDIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
	${CHMOD} ${ROMODE} ${.TARGET}

d74 1
a74 1
	    freebsd.submit.cf ${DESTDIR}/etc/mail
d97 1
a97 1
	    freebsd.submit.cf ${DEST_SUBMIT_CF}
@


1.3.2.25
log
@MFC: Turn SENDMAIL_CF_DIR into an officially supported make.conf variable
     and use it in src/etc/sendmail/Makefile in case the user wants to use
     a different path to the sendmail m4 sources (e.g., sendmail port users).
@
text
@d11 1
a11 1
SENDMAIL_CF_DIR?=${SENDMAIL_DIR}/cf
d14 1
a14 1
M4FILES!=	find ${SENDMAIL_CF_DIR} -type f -name '*.m4' -print
d20 2
a21 2
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${SENDMAIL_CF_DIR}/m4/cf.m4 ${.IMPSRC} > ${.TARGET}
d64 1
a64 1
freebsd.submit.cf:	${SENDMAIL_CF_DIR}/cf/submit.mc
d66 2
a67 2
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
	    ${SENDMAIL_CF_DIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
d79 1
a79 2
	    ${SENDMAIL_CF_DIR}/cf/submit.mc \
	    ${DESTDIR}/etc/mail/freebsd.submit.mc
@


1.3.2.26
log
@MFC: Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
     the number of broken DNS servers out there in the world.  Since we are
     diverging from the sendmail.org submit.mc, it's time to make our own
     freebsd.submit.mc.
@
text
@d63 7
d79 4
a82 1
	    ${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
@


1.3.2.27
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/etc/sendmail/Makefile 121762 2003-10-30 22:38:33Z gshapiro $
@


1.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d21 1
a21 1
# causes 'make install' to always copy it over /etc/sendmail.cf!!!
d36 1
a36 1
		${DESTDIR}/etc/sendmail.cf
d42 1
a42 1
		${DESTDIR}/etc/sendmail.cf
@


1.1
log
@Builder for sendmail.cf's, in particular freebsd.cf.
This needs to be revisited - we need a simple way of building/installing
these at runtime from the installed system's /etc/mail directory.
freebsd.mc,v and freefall.mc,v have been repository copied here.
@
text
@d2 1
a2 1
#	$Id$
@


1.1.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


