166269Seric#
266269Seric#  NetBSD Makefile
366269Seric#
4*67546Seric#	@(#)Makefile.NetBSD	8.2 (Berkeley) 07/23/94
566269Seric#	@Id: Makefile.NetBSD,v 1.3 1994/02/01 05:33:44 glass Exp $
666269Seric#
766269Seric
866269SericPROG=	sendmail
966269Seric
1066269Seric# define the database format to use for aliases et al.  Can be -DNEWDB (for
1166269Seric# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
1266269Seric# database package.  The old putrescent V7 DBM package is no longer
1366269Seric# supported.
1466269Seric# You can define both NEWDB and NDBM during a transition period; old
1566269Seric# databases are read, but the new format will be used on any rebuilds.  On
1666269Seric# really gnarly systems, you can set this to null; it will crawl like a high
1766269Seric# spiral snail, but it will work.
1866269SericDBMDEF=	-DNEWDB -DNIS
1966269Seric
2066269Seric#nasty warning about gcc 2.4.x caused bugs
2166269SericCFLAGS=-I${.CURDIR} ${DBMDEF} -DNETISO
2266269Seric#CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO
2366269Seric
2466269SericSRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
2566269Seric	deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
26*67546Seric	mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
27*67546Seric	srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
2866269Seric	util.c version.c
2966269SericMAN1=	mailq.0 newaliases.0
3066269SericMAN5=	aliases.0
3166269SericMAN8=	sendmail.0
3266269SericLINKS=	/usr/sbin/sendmail /usr/bin/newaliases \
3366269Seric	/usr/sbin/sendmail /usr/bin/mailq
3466269SericBINDIR=	/usr/sbin
3566269SericBINOWN=	root
3666269SericBINMODE=4555
3766269Seric
3866269Sericbeforeinstall:
3966269Seric#	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
4066269Seric#	    ${DESTDIR}/etc/sendmail.fc
4166269Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
4266269Seric	    ${DESTDIR}/var/log/sendmail.st
4366269Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
4466269Seric	    ${DESTDIR}/usr/share/misc
4566269Seric
4666269Seric.include <bsd.prog.mk>
47