1# @(#)Makefile 8.8 (Berkeley) 3/28/97 |
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 --- 12 unchanged lines hidden (view full) --- 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 |
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 |
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> |