1# @(#)Makefile 8.8 (Berkeley) 3/28/97
| 1# @(#)Makefile 8.8 (Berkeley) 3/28/97
|
2# $FreeBSD: head/usr.sbin/sendmail/Makefile 65797 2000-09-13 04:16:16Z gshapiro $
| 2# $FreeBSD: head/usr.sbin/sendmail/Makefile 65970 2000-09-17 00:41:33Z gshapiro $
|
3 4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 5SMDIR= ${SENDMAIL_DIR}/src 6.PATH: ${SMDIR} 7 8BINDIR?=/usr/libexec/sendmail 9 10PROG= sendmail 11 12# Define the database format to use for aliases et al. 13DBMDEF= -DNEWDB 14 15# If you don't want NIS alias/map support, comment out this line 16NIS= -DNIS 17 18# Map extensions 19MAPS= -DMAP_REGEX 20 21CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include 22CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS} 23 24SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \ 25 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 26 macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 27 readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \ 28 stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \ 29 version.c 30DPADD= ${LIBUTIL} ${LIBWRAP}
| 3 4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 5SMDIR= ${SENDMAIL_DIR}/src 6.PATH: ${SMDIR} 7 8BINDIR?=/usr/libexec/sendmail 9 10PROG= sendmail 11 12# Define the database format to use for aliases et al. 13DBMDEF= -DNEWDB 14 15# If you don't want NIS alias/map support, comment out this line 16NIS= -DNIS 17 18# Map extensions 19MAPS= -DMAP_REGEX 20 21CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include 22CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS} 23 24SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \ 25 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 26 macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 27 readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \ 28 stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \ 29 version.c 30DPADD= ${LIBUTIL} ${LIBWRAP}
|
31LDADD+= -lutil -lwrap
| 31LDADD= -lutil -lwrap
|
32MAN1= mailq.1 newaliases.1 33MAN5= aliases.5 34MAN8= 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
| 32MAN1= mailq.1 newaliases.1 33MAN5= aliases.5 34MAN8= 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# User customizations to the sendmail build environment 48CFLAGS+=${SENDMAIL_CFLAGS} 49LDFLAGS+=${SENDMAIL_LDFLAGS} 50LDADD+=${SENDMAIL_LDADD} 51DPADD+=${SENDMAIL_DPADD} 52
|
47beforeinstall: 48 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 49 ${DESTDIR}/var/log/sendmail.st 50 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \ 51 ${DESTDIR}/etc/mail/helpfile 52 53afterinstall: 54 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \ 55 ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \ 56 set -x; \ 57 mv -f ${DESTDIR}/etc/sendmail.cf \ 58 ${DESTDIR}/etc/mail/sendmail.cf; \ 59 fi 60 61.include <bsd.prog.mk>
| 53beforeinstall: 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 55 ${DESTDIR}/var/log/sendmail.st 56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \ 57 ${DESTDIR}/etc/mail/helpfile 58 59afterinstall: 60 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \ 61 ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \ 62 set -x; \ 63 mv -f ${DESTDIR}/etc/sendmail.cf \ 64 ${DESTDIR}/etc/mail/sendmail.cf; \ 65 fi 66 67.include <bsd.prog.mk>
|