1#
2#  Makefile for FreeBSD
3#
4#	@(#)Makefile.FreeBSD	8.1 (Berkeley) 02/26/94
5
6PROG=	sendmail
7
8# define the database format to use for aliases et al.  Can be -DNEWDB (for
9# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
10# database package.  The old putrescent V7 DBM package is no longer
11# supported.
12# You can define both NEWDB and NDBM during a transition period; old
13# databases are read, but the new format will be used on any rebuilds.  On
14# really gnarly systems, you can set this to null; it will crawl like a high
15# spiral snail, but it will work.
16DBMDEF=	-DNEWDB
17
18# FreeBSD 1.0 RELEASE has uname(2) now. Use -DUSEUNAME in order to use it.
19CFLAGS+=-I${.CURDIR} ${DBMDEF} -DMIME -DUSEUNAME
20
21SRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
22	deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
23	mci.c parseaddr.c queue.c readcf.c recipient.c savemail.c srvrsmtp.c \
24	stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
25	util.c version.c
26DPADD=
27LDADD=	$(LIBUTIL)
28#
29# FreeBSD 1.0 RELEASE has GNU man and doesn't need preformatted man pages anymore
30#	(assuming you consider a slower "man" command a feature)
31#
32MAN1=	mailq.1 newaliases.1
33MAN5=	aliases.5
34MAN8=	sendmail.8
35LINKS=	/usr/sbin/sendmail /usr/bin/newaliases \
36	/usr/sbin/sendmail /usr/bin/mailq
37BINDIR=	/usr/sbin
38BINOWN=	root
39BINGRP=	kmem
40BINMODE=6555
41
42beforeinstall:
43#	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
44#	    ${DESTDIR}/etc/sendmail.fc
45	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
46	    ${DESTDIR}/var/log/sendmail.st
47	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
48	    ${DESTDIR}/usr/share/misc
49
50.include <bsd.prog.mk>
51