1*67546Seric#	@(#)Makefile.Utah	8.2 (Berkeley) 07/23/94
266275Seric
366275SericPROG=	sendmail
466275Seric
566275Seric# define the database format to use for aliases et al.  Can be -DNEWDB (for
666275Seric# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
766275Seric# database package.  The old putrescent V7 DBM package is no longer
866275Seric# supported.
966275Seric# You can define both NEWDB and NDBM during a transition period; old
1066275Seric# databases are read, but the new format will be used on any rebuilds.  On
1166275Seric# really gnarly systems, you can set this to null; it will crawl like a high
1266275Seric# spiral snail, but it will work.
1366275SericDBMDEF=	-DNEWDB -DNDBM -DOLD_NEWDB
1466275Seric
1566275SericCFLAGS+=-I${.CURDIR} ${DBMDEF} -Dsetpgid=setpgrp
1666275Seric
1766275SericSRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
1866275Seric	deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
19*67546Seric	mci.c mci.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
20*67546Seric	srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
2166275Seric	util.c version.c
2266275SericDPADD=	${LIBDBM} ${LIBCOMPAT}
2366275SericLDADD=
2466275SericMAN1=	mailq.0 newaliases.0
2566275SericMAN5=	aliases.0
2666275SericMAN8=	sendmail.0
2766275SericLINKS=	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/newaliases \
2866275Seric	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/mailq
2966275SericBINDIR=	/usr/sbin
3066275SericBINOWN=	root
3166275SericBINGRP=	kmem
3266275SericBINMODE=6555
3366275Seric
3466275Sericbeforeinstall:
3566275Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
3666275Seric	    ${DESTDIR}/var/log/sendmail.st
3766275Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
3866275Seric	    ${DESTDIR}/usr/share/misc
3966275Seric
4066275Seric.include <bsd.prog.mk>
41