aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-10-24 16:04:56 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-10-24 16:04:56 +0000
commit85e427cc94bd97602d756d6da4f00f3bf1449ca0 (patch)
tree5d709c1df3031f5598741988e12c9b9c64e478fb
parent31873471da2823f89aa269e35b50004e9778d7b1 (diff)
downloadsrc-85e427cc94bd97602d756d6da4f00f3bf1449ca0.tar.gz
src-85e427cc94bd97602d756d6da4f00f3bf1449ca0.zip
Fix up the build for the STARTTLS version of sendmail (again). This method
mimics that of tcpdump in that for normal builds, sendmail will only be built once. For 'make release', it is built once for the bin dist and once for the crypto dist. This method also removes the need for two separate Makefiles (which could become out of sync). Suggested by: bde Assisted by: kris
Notes
Notes: svn path=/head/; revision=67502
-rw-r--r--release/Makefile2
-rw-r--r--secure/usr.sbin/Makefile4
-rw-r--r--secure/usr.sbin/sendmail/Makefile74
-rw-r--r--usr.sbin/sendmail/Makefile9
4 files changed, 10 insertions, 79 deletions
diff --git a/release/Makefile b/release/Makefile
index 710379a9a7b0..477cf9423a71 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -410,7 +410,7 @@ release.4:
#
release.5:
# Handle some grief caused by the munition braindeadness.
- for i in sbin/init bin/ed usr.sbin/ppp usr.sbin/pppd usr.sbin/tcpdump/tcpdump ; do \
+ for i in sbin/init bin/ed usr.sbin/ppp usr.sbin/pppd usr.sbin/sendmail usr.sbin/tcpdump/tcpdump ; do \
( cd ${.CURDIR}/../$$i; \
make -DNOCRYPT clean all distribute DISTDIR=${RD}/trees ) ; \
done
diff --git a/secure/usr.sbin/Makefile b/secure/usr.sbin/Makefile
index c43461057f60..b8636e5c4333 100644
--- a/secure/usr.sbin/Makefile
+++ b/secure/usr.sbin/Makefile
@@ -5,8 +5,4 @@ SUBDIR=
SUBDIR+=sshd
.endif
-.if !defined(NO_SENDMAIL) && !defined(NO_OPENSSL)
-SUBDIR+=sendmail
-.endif
-
.include <bsd.subdir.mk>
diff --git a/secure/usr.sbin/sendmail/Makefile b/secure/usr.sbin/sendmail/Makefile
deleted file mode 100644
index db60af0ccaf4..000000000000
--- a/secure/usr.sbin/sendmail/Makefile
+++ /dev/null
@@ -1,74 +0,0 @@
-# @(#)Makefile 8.8 (Berkeley) 3/28/97
-# $FreeBSD$
-
-SENDMAIL_DIR=${.CURDIR}/../../../contrib/sendmail
-SMDIR= ${SENDMAIL_DIR}/src
-.PATH: ${SMDIR}
-
-BINDIR= /usr/libexec/sendmail
-
-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
-
-CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
-CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS}
-
-SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \
- convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
- macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
- readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c \
- stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c \
- version.c
-DPADD= ${LIBUTIL} ${LIBWRAP}
-LDADD= -lutil -lwrap
-MAN1= mailq.1 newaliases.1
-MAN5= aliases.5
-MAN8= sendmail.8
-BINMODE=4555
-
-.if exists(${.OBJDIR}/../../../lib/libsmutil)
-LIBSMUTILDIR:= ${.OBJDIR}/../../../lib/libsmutil
-.else
-LIBSMUTILDIR!= cd ${.CURDIR}/../../../lib/libsmutil; make -V .OBJDIR
-.endif
-LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
-
-DPADD+= ${LIBSMUTIL}
-LDADD+= ${LIBSMUTIL}
-
-.if !defined(NO_OPENSSL)
-# STARTTLS support
-CFLAGS+=-DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
-LDADD+= -lssl -lcrypto
-DPADD+= ${LIBSSL} ${LIBCRYPTO}
-.endif
-
-# User customizations to the sendmail build environment
-CFLAGS+=${SENDMAIL_CFLAGS}
-DPADD+=${SENDMAIL_DPADD}
-LDADD+=${SENDMAIL_LDADD}
-LDFLAGS+=${SENDMAIL_LDFLAGS}
-
-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}/helpfile \
- ${DESTDIR}/etc/mail/helpfile
-
-afterinstall:
- @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \
- ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \
- set -x; \
- mv -f ${DESTDIR}/etc/sendmail.cf \
- ${DESTDIR}/etc/mail/sendmail.cf; \
- fi
-
-.include <bsd.prog.mk>
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index 6e16f71b4962..0f9d5aeb351c 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/usr.sbin/sendmail/Makefile
@@ -44,6 +44,15 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+.if exists(../../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && \
+ !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
+# STARTTLS support
+DISTRIBUTION= crypto
+CFLAGS+= -DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
+LDADD+= -lssl -lcrypto
+DPADD+= ${LIBSSL} ${LIBCRYPTO}
+.endif
+
# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
DPADD+=${SENDMAIL_DPADD}