aboutsummaryrefslogtreecommitdiff
path: root/secure/usr.sbin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-08-04 15:24:04 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-08-04 15:24:04 +0000
commit22751f562c73e73367e88951334bef6462bbea47 (patch)
treeaaf7fcece4b4d07b1e18148e6dbd6f356cca6c39 /secure/usr.sbin
parent9723ac470b79fa547839b0366f04324a351fd288 (diff)
downloadsrc-22751f562c73e73367e88951334bef6462bbea47.tar.gz
src-22751f562c73e73367e88951334bef6462bbea47.zip
Connect up sendmail-8.9.1
Notes
Notes: svn path=/head/; revision=38094
Diffstat (limited to 'secure/usr.sbin')
-rw-r--r--secure/usr.sbin/sendmail/Makefile104
1 files changed, 49 insertions, 55 deletions
diff --git a/secure/usr.sbin/sendmail/Makefile b/secure/usr.sbin/sendmail/Makefile
index 269c80993005..48da04dbb681 100644
--- a/secure/usr.sbin/sendmail/Makefile
+++ b/secure/usr.sbin/sendmail/Makefile
@@ -1,55 +1,49 @@
-# @(#)Makefile 8.15 (Berkeley) 9/21/96
-
-VER= XX
-SUBDIR= src mailstats makemap praliases smrsh cf/cf
-FTPDIR= mastodon:/disks/barad-dur/ftp/sendmail/.
-DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
- RELEASE_NOTES FAQ KNOWNBUGS
-FILES= Files.base Files.cf Files.misc Files.xdoc
-
-tar: sccs-check compile-world run-pax
-
-sccs-check:
- sccs check
- (cd src; sccs check)
- (cd mail.local; sccs check)
- (cd mailstats; sccs check)
- (cd makemap; sccs check)
- (cd praliases; sccs check)
- (cd smrsh; sccs check)
- (cd doc/op; sccs check)
- (cd doc/intro; sccs check)
- (cd doc/usenix; sccs check)
- (cd cf; sccs check)
- (cd cf/m4; sccs check)
- (cd cf/mailer; sccs check)
- (cd cf/feature; sccs check)
- (cd cf/cf; sccs check)
- (cd cf/ostype; sccs check)
- (cd cf/domain; sccs check)
-
-compile-world:
- (cd src; sh makesendmail)
- (cd mail.local; ${MAKE})
- (cd mailstats; ${MAKE})
- (cd makemap; ${MAKE})
- (cd praliases; ${MAKE})
- (cd smrsh; ${MAKE})
- (cd doc; PRINTER=ps ${MAKE})
- (cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps)
- (cd cf/cf; ${MAKE})
-
-run-pax: Files.base Files.cf Files.misc Files.xdoc
- chmod +x src/makesendmail
- pax -w -x tar -L \
- -s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
- -s ",^,sendmail-${VER}/," \
- -f sendmail.${VER}.tar \
- `cat ${FILES} | grep -v ^#`
- gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
- compress sendmail.${VER}.tar
-
-ftp: sendmail.${VER}.tar.Z
- rcp ${DISTFILES} ${FTPDIR}
-
-.include <bsd.subdir.mk>
+# @(#)Makefile 8.8 (Berkeley) 3/28/97
+
+SMDIR= ${.CURDIR}/../../contrib/sendmail/src
+.PATH: ${SMDIR}
+
+PROG= sendmail
+
+# Define the database format to use for aliases et al.
+DBMDEF= -DNEWDB
+
+# If you don't want NIS alias/map support, comment out this line
+NIS= -DNIS
+
+# Map extensions
+MAPS= -DMAP_REGEX
+
+# If you want tcp wrapper support, uncomment the following two lines
+#TCPWRAPPERSBASEDIR= /usr/local
+#TCPWRAPPERS= -DTCPWRAPPERS -I${TCPWRAPPERSBASEDIR}/include
+
+CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} ${TCPWRAPPERS} ${MAPS}
+
+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 snprintf.c srvrsmtp.c stab.c stats.c \
+ sysexits.c trace.c udb.c usersmtp.c util.c version.c
+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= ${BINDIR}/sendmail /usr/bin/newaliases \
+ ${BINDIR}/sendmail /usr/bin/mailq \
+ ${BINDIR}/sendmail /usr/bin/hoststat \
+ ${BINDIR}/sendmail ${BINDIR}/purgestat
+BINOWN= root
+BINMODE=4555
+
+beforeinstall:
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
+ ${DESTDIR}/var/log/sendmail.st
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/sendmail.hf \
+ ${DESTDIR}/usr/share/misc
+
+.include <bsd.prog.mk>