diff options
Diffstat (limited to 'usr.sbin/sendmail/src/Makefile')
-rw-r--r-- | usr.sbin/sendmail/src/Makefile | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/usr.sbin/sendmail/src/Makefile b/usr.sbin/sendmail/src/Makefile index 0be76ad..fa51a76 100644 --- a/usr.sbin/sendmail/src/Makefile +++ b/usr.sbin/sendmail/src/Makefile @@ -17,31 +17,41 @@ PROG= sendmail # spiral snail, but it will work. DBMDEF= -DNEWDB -CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO +# if you don't want NIS support, comment out this line +# FreeBSD supports NIS +NIS= -DNIS + +# If you want tcp wrapper support, uncomment the following two lines +#TCPWRAPPERSBASEDIR= /usr/local +#TCPWRAPPERS= -DTCPWRAPPERS -I${TCPWRAPPERSBASEDIR}/include + +CFLAGS+=-I${.CURDIR} ${DBMDEF} ${NIS} ${TCPWRAPPERS} #-DNETISO SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.c \ savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c \ usersmtp.c util.c version.c -DPADD= -LDADD= -MAN1= mailq.0 newaliases.0 -MAN5= aliases.0 -MAN8= sendmail.0 +DPADD= ${LIBUTIL} +LDADD= -lutil +.if defined(TCPWRAPPERS) +LDADD+= -L${TCPWRAPPERSBASEDIR}/lib -lwrap +.endif +MAN1= mailq.1 newaliases.1 +MAN5= aliases.5 +MAN8= sendmail.8 LINKS= /usr/sbin/sendmail /usr/bin/newaliases \ - /usr/sbin/sendmail /usr/bin/mailq + /usr/sbin/sendmail /usr/bin/mailq \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/sbin/purgestat BINDIR= /usr/sbin BINOWN= root -BINGRP= kmem -BINMODE=6555 +BINMODE=4555 beforeinstall: -# install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ -# ${DESTDIR}/etc/sendmail.fc - install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/sendmail.st - install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \ + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \ ${DESTDIR}/usr/share/misc .include <bsd.prog.mk> |