1# @(#)Makefile 8.8 (Berkeley) 3/28/97
2# $FreeBSD: head/usr.sbin/sendmail/Makefile 65797 2000-09-13 04:16:16Z 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
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>
2# $FreeBSD: head/usr.sbin/sendmail/Makefile 65797 2000-09-13 04:16:16Z 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
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>