1# @(#)Makefile 8.8 (Berkeley) 3/28/97 2# $FreeBSD$ 3 4MAINTAINER= gshapiro@FreeBSD.org 5 6SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 7SMDIR= ${SENDMAIL_DIR}/src 8.PATH: ${SMDIR} 9 10BINDIR= /usr/libexec/sendmail 11 12PROG= sendmail 13 14# Define the database format to use for aliases et al. 15DBMDEF= -DNEWDB 16 17# If you don't want NIS alias/map support, comment out this line 18NIS= -DNIS 19 20# Map extensions 21MAPS= -DMAP_REGEX 22 23CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include 24CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS} 25 26SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \ 27 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 28 macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 29 readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \ 30 stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \ 31 version.c 32DPADD= ${LIBUTIL} ${LIBWRAP} 33LDADD= -lutil -lwrap 34MAN= mailq.1 newaliases.1 aliases.5 sendmail.8 35BINMODE=4555 36 37.if exists(${.OBJDIR}/../../lib/libsmutil) 38LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 39.else 40LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 41.endif 42LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 43 44DPADD+= ${LIBSMUTIL} 45LDADD+= ${LIBSMUTIL} 46 47.if exists(../../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && \ 48 !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) 49# STARTTLS support 50DISTRIBUTION= crypto 51CFLAGS+= -DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK 52LDADD+= -lssl -lcrypto 53DPADD+= ${LIBSSL} ${LIBCRYPTO} 54.endif 55 56# User customizations to the sendmail build environment 57CFLAGS+=${SENDMAIL_CFLAGS} 58DPADD+=${SENDMAIL_DPADD} 59LDADD+=${SENDMAIL_LDADD} 60LDFLAGS+=${SENDMAIL_LDFLAGS} 61 62afterinstall: 63 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \ 64 ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \ 65 set -x; \ 66 mv -f ${DESTDIR}/etc/sendmail.cf \ 67 ${DESTDIR}/etc/mail/sendmail.cf; \ 68 fi 69 70.include <bsd.prog.mk> 71