1998-08-04 15:24:04 +00:00
|
|
|
# @(#)Makefile 8.8 (Berkeley) 3/28/97
|
1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2000-08-12 22:39:25 +00:00
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
|
|
SMDIR= ${SENDMAIL_DIR}/src
|
1998-08-04 15:24:04 +00:00
|
|
|
.PATH: ${SMDIR}
|
|
|
|
|
1999-12-29 18:40:56 +00:00
|
|
|
BINDIR?=/usr/libexec/sendmail
|
|
|
|
|
1998-08-04 15:24:04 +00:00
|
|
|
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
|
|
|
|
|
2000-08-12 22:39:25 +00:00
|
|
|
CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
|
2000-08-14 02:36:29 +00:00
|
|
|
CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS}
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2000-08-12 22:39:25 +00:00
|
|
|
SRCS= alias.c arpadate.c bf_torek.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 milter.c mime.c parseaddr.c queue.c \
|
|
|
|
readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \
|
|
|
|
stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \
|
|
|
|
version.c
|
1999-03-28 10:55:03 +00:00
|
|
|
DPADD= ${LIBUTIL} ${LIBWRAP}
|
2000-09-17 00:41:33 +00:00
|
|
|
LDADD= -lutil -lwrap
|
1998-08-04 15:24:04 +00:00
|
|
|
MAN1= mailq.1 newaliases.1
|
|
|
|
MAN5= aliases.5
|
|
|
|
MAN8= sendmail.8
|
|
|
|
BINMODE=4555
|
|
|
|
|
2000-08-12 22:39:25 +00:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
|
|
|
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
|
|
|
.else
|
|
|
|
LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
|
|
|
.endif
|
|
|
|
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
|
|
|
|
2000-10-11 05:04:21 +00:00
|
|
|
DPADD= ${LIBSMUTIL}
|
|
|
|
LDADD= ${LIBSMUTIL}
|
2000-08-12 22:39:25 +00:00
|
|
|
|
2000-10-11 03:35:32 +00:00
|
|
|
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
|
2000-10-10 18:15:41 +00:00
|
|
|
# STARTTLS support
|
|
|
|
CFLAGS+=-DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
|
|
|
|
LDADD+= -lssl -lcrypto
|
|
|
|
DPADD+= ${LIBSSL} ${LIBCRYPTO}
|
|
|
|
.endif
|
|
|
|
|
2000-09-17 00:41:33 +00:00
|
|
|
# User customizations to the sendmail build environment
|
|
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
DPADD+=${SENDMAIL_DPADD}
|
2000-10-11 05:04:21 +00:00
|
|
|
LDADD+=${SENDMAIL_LDADD}
|
|
|
|
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
2000-09-17 00:41:33 +00:00
|
|
|
|
1998-08-04 15:24:04 +00:00
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
|
|
|
|
${DESTDIR}/var/log/sendmail.st
|
2000-08-12 22:39:25 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
|
|
|
|
${DESTDIR}/etc/mail/helpfile
|
1998-08-04 15:24:04 +00:00
|
|
|
|
1999-12-29 18:56:55 +00:00
|
|
|
afterinstall:
|
|
|
|
@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \
|
|
|
|
! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \
|
|
|
|
set -x; \
|
|
|
|
mv -f ${DESTDIR}/etc/sendmail.cf \
|
|
|
|
${DESTDIR}/etc/mail/sendmail.cf; \
|
|
|
|
fi
|
|
|
|
|
1998-08-04 15:24:04 +00:00
|
|
|
.include <bsd.prog.mk>
|