summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sendmail/Makefile
blob: 74675e29d599e98e0e84fd2bdd90c1a3d665f208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#	@(#)Makefile	8.8 (Berkeley) 3/28/97

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

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

# 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}
CFLAGS+=-D_FFR_MAX_MIME_HEADER_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
DPADD=	${LIBUTIL}
LDADD=	-lutil
.if defined(TCPWRAPPERS)
LDADD+=	-L${TCPWRAPPERSBASEDIR}/lib -lwrap
.endif
MAN1=	mailq.1 newaliases.1
MAN5=	aliases.5
MAN8=	sendmail.8 
LINKS=	${BINDIR}/sendmail /usr/bin/newaliases \
	${BINDIR}/sendmail /usr/bin/mailq \
	${BINDIR}/sendmail /usr/bin/hoststat \
	${BINDIR}/sendmail ${BINDIR}/purgestat
BINMODE=4555

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}/sendmail.hf \
	    ${DESTDIR}/usr/share/misc

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud