head	1.28;
access;
symbols
	old_RELENG_4_1_1_RELEASE:1.15.2.2
	old_PRE_SMPNG:1.18
	old_RELENG_4_1_0_RELEASE:1.15
	old_RELENG_3_5_0_RELEASE:1.9.2.4
	old_RELENG_4_0_0_RELEASE:1.15
	old_RELENG_4:1.15.0.2
	old_RELENG_4_BP:1.15
	old_RELENG_3_4_0_RELEASE:1.9.2.4
	old_RELENG_3_3_0_RELEASE:1.9.2.4
	old_RELENG_3_2_PAO:1.9.2.3.0.2
	old_RELENG_3_2_PAO_BP:1.9.2.3
	old_RELENG_3_2_0_RELEASE:1.9.2.3
	old_RELENG_3_1_0_RELEASE:1.9.2.1
	old_RELENG_3:1.9.0.2
	old_RELENG_3_BP:1.9
	old_RELENG_2_2_8_RELEASE:1.6
	old_RELENG_3_0_0_RELEASE:1.8
	old_RELENG_2_2_7_RELEASE:1.6
	old_RELENG_2_2_6_RELEASE:1.6
	old_RELENG_2_2_5_RELEASE:1.6
	old_v8_8_6:1.1.1.4
	old_RELENG_2_2_2_RELEASE:1.6
	old_RELENG_2_2_1_RELEASE:1.6
	old_RELENG_2_2_0_RELEASE:1.6
	old_RELENG_2_1_7_RELEASE:1.1.1.1.6.5
	old_v8_8_5:1.1.1.4
	old_v8_8_4:1.1.1.4
	old_RELENG_2_1_6_1_RELEASE:1.1.1.1.6.5
	old_v8_8_3:1.1.1.4
	old_RELENG_2_1_6_RELEASE:1.1.1.1.6.4
	old_RELENG_2_2:1.6.0.2
	old_RELENG_2_2_BP:1.6
	old_v8_8_2:1.1.1.4
	old_v8_7_6:1.1.1.3
	old_RELENG_2_1_5_RELEASE:1.1.1.1.6.4
	old_v8_7_5:1.1.1.3
	old_v8_7_4:1.1.1.3
	old_v8_7_3:1.1.1.3
	old_v8_7_2:1.1.1.3
	old_ALLMAN:1.1.1
	old_RELENG_2_1_0_RELEASE:1.1.1.1.6.1
	old_v8_6_12:1.1.1.2
	old_RELENG_2_1_0:1.1.1.1.0.6
	old_RELENG_2_1_0_BP:1.1.1.1
	old_RELENG_2_0_5_RELEASE:1.1.1.1
	old_RELENG_2_0_5:1.1.1.1.0.4
	old_RELENG_2_0_5_BP:1.1.1.1
	old_RELENG_2_0_5_ALPHA:1.1.1.1
	old_RELEASE_2_0:1.1.1.1
	old_BETA_2_0:1.1.1.1
	old_ALPHA_2_0:1.1.1.1.0.2
	old_bsd_44_lite:1.1.1.1
	old_CSRG:1.1.1;
locks; strict;
comment	@# @;


1.28
date	2000.10.24.16.04.54;	author gshapiro;	state dead;
branches;
next	1.27;

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

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

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

1.24
date	2000.10.11.12.19.42;	author peter;	state Exp;
branches;
next	1.23;

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

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

1.21
date	2000.10.10.18.15.41;	author gshapiro;	state Exp;
branches;
next	1.20;

1.20
date	2000.09.17.00.41.32;	author gshapiro;	state Exp;
branches;
next	1.19;

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

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

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

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

1.15
date	99.12.29.18.56.55;	author peter;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	99.12.29.18.40.56;	author peter;	state Exp;
branches;
next	1.13;

1.13
date	99.08.28.01.19.55;	author peter;	state Exp;
branches;
next	1.12;

1.12
date	99.03.28.10.53.21;	author markm;	state Exp;
branches;
next	1.11;

1.11
date	99.02.07.09.48.52;	author peter;	state Exp;
branches;
next	1.10;

1.10
date	99.01.24.07.54.30;	author peter;	state Exp;
branches;
next	1.9;

1.9
date	99.01.12.12.47.54;	author peter;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	98.09.19.22.42.12;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	98.08.04.15.24.04;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	96.10.24.05.06.19;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	96.04.22.20.30.09;	author pst;	state Exp;
branches;
next	1.4;

1.4
date	96.04.21.19.47.56;	author pst;	state Exp;
branches;
next	1.3;

1.3
date	95.12.02.20.56.59;	author peter;	state Exp;
branches;
next	1.2;

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

1.1
date	94.05.26.05.22.39;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.26.05.22.40;	author rgrimes;	state Exp;
branches
	1.1.1.1.6.1;
next	1.1.1.2;

1.1.1.2
date	95.08.17.04.34.33;	author peter;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	95.12.02.17.22.54;	author peter;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	96.10.24.04.46.42;	author peter;	state Exp;
branches;
next	;

1.1.1.1.6.1
date	95.08.26.12.28.49;	author davidg;	state Exp;
branches;
next	1.1.1.1.6.2;

1.1.1.1.6.2
date	96.03.25.06.52.35;	author peter;	state Exp;
branches;
next	1.1.1.1.6.3;

1.1.1.1.6.3
date	96.04.22.06.34.31;	author pst;	state Exp;
branches;
next	1.1.1.1.6.4;

1.1.1.1.6.4
date	96.04.22.20.31.16;	author pst;	state Exp;
branches;
next	1.1.1.1.6.5;

1.1.1.1.6.5
date	96.11.22.05.30.59;	author nate;	state Exp;
branches;
next	;

1.9.2.1
date	99.01.24.08.01.34;	author peter;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	99.04.07.09.31.37;	author peter;	state Exp;
branches;
next	1.9.2.3;

1.9.2.3
date	99.05.05.18.52.17;	author obrien;	state Exp;
branches;
next	1.9.2.4;

1.9.2.4
date	99.08.29.15.48.12;	author peter;	state Exp;
branches;
next	;

1.15.2.1
date	2000.08.27.17.31.46;	author gshapiro;	state Exp;
branches;
next	1.15.2.2;

1.15.2.2
date	2000.09.19.23.37.13;	author gshapiro;	state Exp;
branches;
next	1.15.2.3;

1.15.2.3
date	2000.10.11.05.09.07;	author gshapiro;	state Exp;
branches;
next	1.15.2.4;

1.15.2.4
date	2000.10.11.12.41.28;	author peter;	state Exp;
branches;
next	;


desc
@@


1.28
log
@Fix up the build for the STARTTLS version of sendmail (again).  This method
mimics that of tcpdump in that for normal builds, sendmail will only be
built once.  For 'make release', it is built once for the bin dist and
once for the crypto dist.  This method also removes the need for two separate
Makefiles (which could become out of sync).

Suggested by: bde
Assisted by: kris
@
text
@#	@@(#)Makefile	8.8 (Berkeley) 3/28/97
# $FreeBSD: src/secure/usr.sbin/sendmail/Makefile,v 1.27 2000/10/13 16:51:05 gshapiro Exp $

SENDMAIL_DIR=${.CURDIR}/../../../contrib/sendmail
SMDIR=	${SENDMAIL_DIR}/src
.PATH:	${SMDIR}

BINDIR=	/usr/libexec/sendmail

PROG=	sendmail

# Define the database format to use for aliases et al.
DBMDEF=	-DNEWDB

# If you don't want NIS alias/map support, comment out this line
NIS=	-DNIS

# Map extensions
MAPS=	-DMAP_REGEX

CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS}

SRCS=	alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \
	convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
	macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
	readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \
	stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \
	version.c
DPADD=	${LIBUTIL} ${LIBWRAP}
LDADD=	-lutil -lwrap
MAN1=	mailq.1 newaliases.1
MAN5=	aliases.5
MAN8=	sendmail.8 
BINMODE=4555

.if exists(${.OBJDIR}/../../../lib/libsmutil)
LIBSMUTILDIR:=	${.OBJDIR}/../../../lib/libsmutil
.else
LIBSMUTILDIR!=	cd ${.CURDIR}/../../../lib/libsmutil; make -V .OBJDIR
.endif
LIBSMUTIL:=	${LIBSMUTILDIR}/libsmutil.a

DPADD+=	${LIBSMUTIL}
LDADD+=	${LIBSMUTIL}

.if !defined(NO_OPENSSL)
# STARTTLS support
CFLAGS+=-DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
LDADD+=	-lssl -lcrypto
DPADD+=	${LIBSSL} ${LIBCRYPTO}
.endif

# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
DPADD+=${SENDMAIL_DPADD}
LDADD+=${SENDMAIL_LDADD}
LDFLAGS+=${SENDMAIL_LDFLAGS}

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
	    ${DESTDIR}/var/log/sendmail.st
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
	    ${DESTDIR}/etc/mail/helpfile

afterinstall:
	@@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \
	      ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \
		set -x; \
		mv -f ${DESTDIR}/etc/sendmail.cf \
		    ${DESTDIR}/etc/mail/sendmail.cf; \
	fi

.include <bsd.prog.mk>
@


1.27
log
@../Makefile.inc was clobbering BINDIR so sendmail was being installed in
/usr/sbin/ instead of /usr/libexec/sendmail/

Submitted by:	bde
@
text
@d2 1
a2 1
# $FreeBSD: src/secure/usr.sbin/sendmail/Makefile,v 1.26 2000/10/13 03:20:43 gshapiro Exp $
@


1.26
log
@Given that sendmail's STARTTLS support requires OpenSSL and the bootstrap
issues that brings, build the non-TLS version of sendmail in
src/usr.sbin/sendmail and the TLS version in src/secure/usr.sbin/sendmail.
This allows the TLS version to be part of the secure distribution when
building a release.
@
text
@d2 1
a2 1
# $FreeBSD: src/secure/usr.sbin/sendmail/Makefile,v 1.25 2000/10/12 17:04:32 gshapiro Exp $
d8 1
a8 1
BINDIR?=/usr/libexec/sendmail
@


1.25
log
@Remove STARTTLS support as it breaks builds without crypto installed.
Waiting to hear back regarding the best way to do this.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.24 2000/10/11 12:19:42 peter Exp $
d4 1
a4 1
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
d37 2
a38 2
.if exists(${.OBJDIR}/../../lib/libsmutil)
LIBSMUTILDIR:=	${.OBJDIR}/../../lib/libsmutil
d40 1
a40 1
LIBSMUTILDIR!=	cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
d46 7
@


1.24
log
@With apoligies to Greg Shapiro, fix the world.  The previous commit
lost -lutil and -lwrap by replacing $LDADD and $DPADD rather than
appending to them with +=.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.23 2000/10/11 05:04:21 gshapiro Exp $
a45 7

.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
# STARTTLS support
CFLAGS+=-DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
LDADD+=	-lssl -lcrypto
DPADD+=	${LIBSSL} ${LIBCRYPTO}
.endif
@


1.23
log
@Style fixes
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.22 2000/10/11 03:35:32 gshapiro Exp $
d44 2
a45 2
DPADD=	${LIBSMUTIL}
LDADD=	${LIBSMUTIL}
@


1.22
log
@NOCRYPT imples NO_OPENSSL.
Still need to solve the distribution problem.

Submitted by:	kris
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.21 2000/10/10 18:15:41 gshapiro Exp $
d44 2
a45 2
DPADD+=	${LIBSMUTIL}
LDADD+=	${LIBSMUTIL}
d56 2
a58 2
LDADD+=${SENDMAIL_LDADD}
DPADD+=${SENDMAIL_DPADD}
@


1.21
log
@Build sendmail with STARTTLS support unless NO_OPENSSL is set.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.20 2000/09/17 00:41:32 gshapiro Exp $
d47 1
a47 1
.if !defined(NO_OPENSSL)
@


1.20
log
@Give users a way to alter the sendmail (and related utilities) build
environment so they can enable functionality such as SASL, LDAP, Hesiod.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.19 2000/09/13 04:16:16 gshapiro Exp $
d46 7
@


1.19
log
@Allow users to add libraries for sendmail (e.g. Cyrus SASL)

Obtained from:	Sergei Vyshenski <svysh@@pn.sinp.msu.ru>
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.18 2000/08/14 02:36:29 gshapiro Exp $
d31 1
a31 1
LDADD+=	-lutil -lwrap
d46 6
@


1.18
log
@Turn on support for IPv6
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.17 2000/08/13 08:36:40 gshapiro Exp $
d31 1
a31 1
LDADD=	-lutil -lwrap
@


1.17
log
@Get rid of the /etc/aliases -> /etc/mail/aliases hack.  /etc/mail/aliases
now exists in the distribution.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.16 2000/08/12 22:39:25 gshapiro Exp $
d22 1
a22 1
CFLAGS+=${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS}
@


1.16
log
@The rest of the changes needed to support the new version of sendmail (8.11.0).
Beyond changes to the build system, this includes fixing up the sample
freebsd.mc configuration for changes in defaults and syntax, removing
outdated documentation, and updating the release notes.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15 1999/12/29 18:56:55 peter Exp $
a58 6
	fi
	@@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/aliases -a \
	      ! -f ${DESTDIR}/etc/mail/aliases ]; then \
		set -x; \
		cp ${DESTDIR}/etc/aliases \
		   ${DESTDIR}/etc/mail/aliases; \
@


1.15
log
@Since /etc/sendmail.cf got moved to /etc/mail/sendmail.cf, a 'make world'
would leave you with a broken sendmail and local mail loss.
This evil hack moves sendmail.cf from the old location to the new one (if
required) at install time.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.14 1999/12/29 18:40:56 peter Exp $
d4 2
a5 1
SMDIR=	${.CURDIR}/../../contrib/sendmail/src
d21 9
a29 9
CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS}
CFLAGS+=-D_FFR_MAX_MIME_HEADER_LENGTH
CFLAGS+=-D_FFR_MAX_HEADERS_LENGTH

SRCS=	alias.c arpadate.c clock.c collect.c conf.c control.c convtime.c \
	daemon.c deliver.c domain.c envelope.c err.c headers.c macro.c \
	main.c map.c mci.c mime.c parseaddr.c queue.c readcf.c recipient.c \
	safefile.c savemail.c snprintf.c srvrsmtp.c stab.c stats.c \
	sysexits.c trace.c udb.c usersmtp.c util.c version.c
d37 10
d50 2
a51 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/sendmail.hf \
	    ${DESTDIR}/usr/share/misc
d59 6
@


1.15.2.1
log
@MFC: Import of sendmail 8.11.0.
     Includes: moving /etc/aliases to /etc/mail/aliases, removing outdated
               documentation, and updating freebsd.mc for new syntax.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15 1999/12/29 18:56:55 peter Exp $
d4 1
a4 2
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
SMDIR=	${SENDMAIL_DIR}/src
d20 9
a28 9
CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS}

SRCS=	alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \
	convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
	macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
	readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \
	stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \
	version.c
a35 10
.if exists(${.OBJDIR}/../../lib/libsmutil)
LIBSMUTILDIR:=	${.OBJDIR}/../../lib/libsmutil
.else
LIBSMUTILDIR!=	cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
.endif
LIBSMUTIL:=	${LIBSMUTILDIR}/libsmutil.a

DPADD+=	${LIBSMUTIL}
LDADD+=	${LIBSMUTIL}

d39 2
a40 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
	    ${DESTDIR}/etc/mail/helpfile
@


1.15.2.2
log
@MFC: Give users a way to alter the sendmail (and related utilities) build
     environment so they can enable functionality such as SASL, LDAP, Hesiod.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15.2.1 2000/08/27 17:31:46 gshapiro Exp $
a45 6

# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
LDFLAGS+=${SENDMAIL_LDFLAGS}
LDADD+=${SENDMAIL_LDADD}
DPADD+=${SENDMAIL_DPADD}
@


1.15.2.3
log
@MFC: Style fixes
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15.2.2 2000/09/19 23:37:13 gshapiro Exp $
d44 2
a45 2
DPADD=	${LIBSMUTIL}
LDADD=	${LIBSMUTIL}
d49 2
a51 2
LDADD+=${SENDMAIL_LDADD}
LDFLAGS+=${SENDMAIL_LDFLAGS}
@


1.15.2.4
log
@MFC: unbreak sendmail build (do not override LDADD with -lutil -lwrap)
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15.2.3 2000/10/11 05:09:07 gshapiro Exp $
d44 2
a45 2
DPADD+=	${LIBSMUTIL}
LDADD+=	${LIBSMUTIL}
@


1.14
log
@Install sendmail in it's new location.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.13 1999/08/28 01:19:55 peter Exp $
d41 8
@


1.13
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d7 2
a33 4
LINKS=	${BINDIR}/sendmail /usr/bin/newaliases \
	${BINDIR}/sendmail /usr/bin/mailq \
	${BINDIR}/sendmail /usr/bin/hoststat \
	${BINDIR}/sendmail ${BINDIR}/purgestat
@


1.12
log
@Enable tcp_wrapper support by default.
@
text
@d2 1
a2 1
#	$Id$
@


1.11
log
@MaxHeaderLines is now MaxHeadersLength (in bytes)
@
text
@d2 1
d18 1
a18 5
# If you want tcp wrapper support, uncomment the following two lines
#TCPWRAPPERSBASEDIR=	/usr/local
#TCPWRAPPERS=		-DTCPWRAPPERS -I${TCPWRAPPERSBASEDIR}/include

CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} ${TCPWRAPPERS} ${MAPS}
d27 2
a28 5
DPADD=	${LIBUTIL}
LDADD=	-lutil
.if defined(TCPWRAPPERS)
LDADD+=	-L${TCPWRAPPERSBASEDIR}/lib -lwrap
.endif
@


1.10
log
@Support 'O MaxHeaderLines=' to override the default header count and line
length limits.  The configuration keyword is: confMAX_HEADER_LINES
@
text
@d23 1
a23 1
CFLAGS+=-D_FFR_MAX_HEADER_LINES
@


1.9
log
@Update for 8.9.2 (new file, control.c)
Also, turn on support for the MaxMimeHeaderLength option in sendmail.cf.
@
text
@d23 1
@


1.9.2.1
log
@MFC: turn on MaxHeaderLines= option
@
text
@a22 1
CFLAGS+=-D_FFR_MAX_HEADER_LINES
@


1.9.2.2
log
@Update for official 8.9.3 header lines patch
@
text
@d23 1
a23 1
CFLAGS+=-D_FFR_MAX_HEADERS_LENGTH
@


1.9.2.3
log
@MFC: hookup to libwrap/tcp_wrappers.
@
text
@a1 1
#	$Id: Makefile,v 1.12 1999/03/28 10:53:21 markm Exp $
d17 5
a21 1
CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS}
d30 5
a34 2
DPADD=	${LIBUTIL} ${LIBWRAP}
LDADD=	-lutil -lwrap
@


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


1.8
log
@Remove useless `BINOWN=root' now that it is the default.
@
text
@d22 1
d24 3
a26 3
SRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
	deliver.c domain.c envelope.c err.c headers.c macro.c main.c \
	map.c mci.c mime.c parseaddr.c queue.c readcf.c recipient.c \
@


1.7
log
@Connect up sendmail-8.9.1
@
text
@a39 1
BINOWN=	root
@


1.6
log
@Fold sendmail-8.8.2 changes into files that have been touched.

(^!&@@$#&^! delete !!@@^@@^ trailing !@@^&#$!& whitespace!!!)
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.15 (Berkeley) 9/21/96
d3 2
a4 48
VER=	XX
SUBDIR= src mailstats makemap praliases smrsh cf/cf
FTPDIR=	mastodon:/disks/barad-dur/ftp/sendmail/.
DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
	RELEASE_NOTES FAQ KNOWNBUGS
FILES=	Files.base Files.cf Files.misc Files.xdoc

tar: sccs-check compile-world run-pax

sccs-check:
	sccs check
	(cd src; sccs check)
	(cd mail.local; sccs check)
	(cd mailstats; sccs check)
	(cd makemap; sccs check)
	(cd praliases; sccs check)
	(cd smrsh; sccs check)
	(cd doc/op; sccs check)
	(cd doc/intro; sccs check)
	(cd doc/usenix; sccs check)
	(cd cf; sccs check)
	(cd cf/m4; sccs check)
	(cd cf/mailer; sccs check)
	(cd cf/feature; sccs check)
	(cd cf/cf; sccs check)
	(cd cf/ostype; sccs check)
	(cd cf/domain; sccs check)

compile-world:
	(cd src; sh makesendmail)
	(cd mail.local; ${MAKE})
	(cd mailstats; ${MAKE})
	(cd makemap; ${MAKE})
	(cd praliases; ${MAKE})
	(cd smrsh; ${MAKE})
	(cd doc; PRINTER=ps ${MAKE})
	(cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps)
	(cd cf/cf; ${MAKE})

run-pax: Files.base Files.cf Files.misc Files.xdoc
	chmod +x src/makesendmail
	pax -w -x tar -L \
		-s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
		-s ",^,sendmail-${VER}/," \
		-f sendmail.${VER}.tar \
		`cat ${FILES} | grep -v ^#`
	gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
	compress sendmail.${VER}.tar
d6 1
a6 2
ftp: sendmail.${VER}.tar.Z
	rcp ${DISTFILES} ${FTPDIR}
d8 42
a49 1
.include <bsd.subdir.mk>
@


1.5
log
@typo shmrsh -> smrsh
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.12 (Berkeley) 5/29/95
d15 5
d32 6
a37 1
	(cd src; ${MAKE})
@


1.4
log
@Enable proper installation of sendmail restricted shell smrsh(8).

This program is a wrapper for the prog mailer in sendmail.  It does shell
meta character masking and restricts the list of executables to those found
in /usr/libexec/sm.bin.

The default sendmail.cf file does not use this tool, however you can enable
it by either changing /bin/sh to /usr/libexec/smrsh or adding the line
FEATURE(smrsh) into your sendmail .mc file and rebuilding your .cf file.

For more info, RTFMP.
@
text
@d4 1
a4 1
SUBDIR= src mailstats makemap praliases shmrsh cf/cf
@


1.3
log
@*GULP* cvs remove the uncomfortably large list of files that are no longer
part of sendmail 8.7.2...
@
text
@d4 1
a4 1
SUBDIR= src mailstats makemap praliases cf/cf
@


1.2
log
@Re-disable the cf/cf SUBDIR - we were not building it before anyway.
The Makefile down there does not handle the obj dir well..
@
text
@d4 1
a4 1
SUBDIR= src mailstats makemap praliases
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.4 (Berkeley) 4/22/94
a2 2
SUBDIR= src mailstats makemap praliases cf/cf
FTPDIR=	barad-dur:/disks/barad-dur/ftp/sendmail/.
d4 5
d10 17
a26 1
tar: Files.base Files.cf Files.misc Files.xdoc
a30 8
	pax -w -x tar -L -f sendmail.${VER}.base.tar `grep -v ^# Files.base`
	compress sendmail.${VER}.base.tar
	pax -w -x tar -L -f sendmail.${VER}.cf.tar `grep -v ^# Files.cf`
	compress sendmail.${VER}.cf.tar
	pax -w -x tar -L -f sendmail.${VER}.misc.tar `grep -v ^# Files.misc`
	compress sendmail.${VER}.misc.tar
	pax -w -x tar -L -f sendmail.${VER}.xdoc.tar `grep -v ^# Files.xdoc`
	compress sendmail.${VER}.xdoc.tar
d32 12
a43 2
ftp: sendmail.${VER}.base.tar.Z sendmail.${VER}.cf.tar.Z sendmail.${VER}.misc.tar.Z sendmail.${VER}.xdoc.tar.Z
	rcp sendmail.${VER}.*.tar.Z RELEASE_NOTES FAQ KNOWNBUGS ${FTPDIR}
@


1.1.1.1
log
@BSD 4.4 Lite usr.sbin Sources
@
text
@@


1.1.1.1.6.1
log
@Brought in changes from main branch: update to 8.6.12.
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.3 (Berkeley) 2/27/94
d3 1
a3 1
SUBDIR= src mailstats makemap praliases
@


1.1.1.1.6.2
log
@Update sendmail to -current version (8.7.5) to fix various known security
holes and a lot of bugs.

8.7.* has pretty much finished development, 8.8 is in alpha testing.

A seperate commit will follow to do a couple of 2.1.x specific things and
to turn off the infamous 8bitmime->quoted-printable conversion when talking
to older sendmails.

OK'ed by: davidg

(Note: a lot of tags were added behind the scenes for the new files)
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.12 (Berkeley) 5/29/95
d3 2
a5 5
SUBDIR= src mailstats makemap praliases cf/cf
FTPDIR=	mastodon:/disks/barad-dur/ftp/sendmail/.
DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
	RELEASE_NOTES FAQ KNOWNBUGS
FILES=	Files.base Files.cf Files.misc Files.xdoc
d7 1
a7 17
tar: sccs-check compile-world run-pax

sccs-check:
	sccs check
	(cd src; sccs check)
	(cd doc/op; sccs check)
	(cd doc/intro; sccs check)
	(cd doc/usenix; sccs check)
	(cd cf; sccs check)
	(cd cf/m4; sccs check)
	(cd cf/mailer; sccs check)
	(cd cf/feature; sccs check)
	(cd cf/cf; sccs check)
	(cd cf/ostype; sccs check)
	(cd cf/domain; sccs check)

compile-world:
d12 8
d21 2
a22 12
run-pax: Files.base Files.cf Files.misc Files.xdoc
	chmod +x src/makesendmail
	pax -w -x tar -L \
		-s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
		-s ",^,sendmail-${VER}/," \
		-f sendmail.${VER}.tar \
		`cat ${FILES} | grep -v ^#`
	gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
	compress sendmail.${VER}.tar

ftp: sendmail.${VER}.tar.Z
	rcp ${DISTFILES} ${FTPDIR}
@


1.1.1.1.6.3
log
@Bring in changes from head.  Build and install smrsh.
@
text
@d4 1
a4 1
SUBDIR= src mailstats makemap praliases shmrsh cf/cf
@


1.1.1.1.6.4
log
@Typo shmrsh -> smrsh
@
text
@d4 1
a4 1
SUBDIR= src mailstats makemap praliases smrsh cf/cf
@


1.1.1.1.6.5
log
@Merge-O-Matic.

Bring in the more secure 8.8.3 sources onto the soon to be dead stable
branch in order to have them be part of the 2.1.6a 'security update'.

Reviewed by:	Tom Samplonius <tom@@uniserve.com>
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.15 (Berkeley) 9/21/96
a14 5
	(cd mail.local; sccs check)
	(cd mailstats; sccs check)
	(cd makemap; sccs check)
	(cd praliases; sccs check)
	(cd smrsh; sccs check)
d27 1
a27 6
	(cd src; sh makesendmail)
	(cd mail.local; ${MAKE})
	(cd mailstats; ${MAKE})
	(cd makemap; ${MAKE})
	(cd praliases; ${MAKE})
	(cd smrsh; ${MAKE})
@


1.1.1.2
log
@Import Sendmail v8.6.12, onto the CSRG(!) branch.
A seperate commit to fix the conflicts wil follow.
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.3 (Berkeley) 2/27/94
d3 1
a3 1
SUBDIR= src mailstats makemap praliases
@


1.1.1.3
log
@Import Sendmail-8.7.2 as discussed on -current.

The conflict merge will happen shortly after.
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.12 (Berkeley) 5/29/95
d3 2
a5 5
SUBDIR= src mailstats makemap praliases cf/cf
FTPDIR=	mastodon:/disks/barad-dur/ftp/sendmail/.
DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
	RELEASE_NOTES FAQ KNOWNBUGS
FILES=	Files.base Files.cf Files.misc Files.xdoc
d7 1
a7 17
tar: sccs-check compile-world run-pax

sccs-check:
	sccs check
	(cd src; sccs check)
	(cd doc/op; sccs check)
	(cd doc/intro; sccs check)
	(cd doc/usenix; sccs check)
	(cd cf; sccs check)
	(cd cf/m4; sccs check)
	(cd cf/mailer; sccs check)
	(cd cf/feature; sccs check)
	(cd cf/cf; sccs check)
	(cd cf/ostype; sccs check)
	(cd cf/domain; sccs check)

compile-world:
d12 8
d21 2
a22 12
run-pax: Files.base Files.cf Files.misc Files.xdoc
	chmod +x src/makesendmail
	pax -w -x tar -L \
		-s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
		-s ",^,sendmail-${VER}/," \
		-f sendmail.${VER}.tar \
		`cat ${FILES} | grep -v ^#`
	gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
	compress sendmail.${VER}.tar

ftp: sendmail.${VER}.tar.Z
	rcp ${DISTFILES} ${FTPDIR}
@


1.1.1.4
log
@Import sendmail-8.8.2 onto the vendor branch

Obtained from: Eric Allman <eric@@sendmail.org>
@
text
@d1 1
a1 1
#       @@(#)Makefile	8.15 (Berkeley) 9/21/96
d4 1
a4 1
SUBDIR= src mail.local mailstats makemap praliases smrsh cf/cf
a14 5
	(cd mail.local; sccs check)
	(cd mailstats; sccs check)
	(cd makemap; sccs check)
	(cd praliases; sccs check)
	(cd smrsh; sccs check)
d27 1
a27 6
	(cd src; sh makesendmail)
	(cd mail.local; ${MAKE})
	(cd mailstats; ${MAKE})
	(cd makemap; ${MAKE})
	(cd praliases; ${MAKE})
	(cd smrsh; ${MAKE})
@
