166267Seric#
266267Seric#  Makefile for FreeBSD
366267Seric#
4*69820Seric#	@(#)Makefile.FreeBSD	8.3 (Berkeley) 06/10/95
566267Seric
666267SericPROG=	sendmail
766267Seric
866267Seric# define the database format to use for aliases et al.  Can be -DNEWDB (for
966267Seric# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
1066267Seric# database package.  The old putrescent V7 DBM package is no longer
1166267Seric# supported.
1266267Seric# You can define both NEWDB and NDBM during a transition period; old
1366267Seric# databases are read, but the new format will be used on any rebuilds.  On
1466267Seric# really gnarly systems, you can set this to null; it will crawl like a high
1566267Seric# spiral snail, but it will work.
1666267SericDBMDEF=	-DNEWDB
1766267Seric
18*69820SericCFLAGS+=-I${.CURDIR} ${DBMDEF}
1966267Seric
2066267SericSRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
2166267Seric	deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
2267546Seric	mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
2367546Seric	srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
2466267Seric	util.c version.c
2566267SericDPADD=
2666267SericLDADD=	$(LIBUTIL)
2766267Seric#
2866267Seric# FreeBSD 1.0 RELEASE has GNU man and doesn't need preformatted man pages anymore
2966267Seric#	(assuming you consider a slower "man" command a feature)
3066267Seric#
3166267SericMAN1=	mailq.1 newaliases.1
3266267SericMAN5=	aliases.5
3366267SericMAN8=	sendmail.8
3466267SericLINKS=	/usr/sbin/sendmail /usr/bin/newaliases \
3566267Seric	/usr/sbin/sendmail /usr/bin/mailq
3666267SericBINDIR=	/usr/sbin
3766267SericBINOWN=	root
3866267SericBINGRP=	kmem
3966267SericBINMODE=6555
4066267Seric
4166267Sericbeforeinstall:
4266267Seric#	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
4366267Seric#	    ${DESTDIR}/etc/sendmail.fc
4466267Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
4566267Seric	    ${DESTDIR}/var/log/sendmail.st
4666267Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
4766267Seric	    ${DESTDIR}/usr/share/misc
4866267Seric
4966267Seric.include <bsd.prog.mk>
50