aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-09-17 00:41:33 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-09-17 00:41:33 +0000
commitcf1fec423af7716ba778ed1ca9f94211cccec534 (patch)
tree337d84bdd38fc7d00825f7aa98d34e3061b2137a
parent18a73213ecd2aaaabdb5f64bba424575ffdfcfb3 (diff)
downloadsrc-cf1fec423af7716ba778ed1ca9f94211cccec534.tar.gz
src-cf1fec423af7716ba778ed1ca9f94211cccec534.zip
Give users a way to alter the sendmail (and related utilities) build
environment so they can enable functionality such as SASL, LDAP, Hesiod.
Notes
Notes: svn path=/head/; revision=65970
-rw-r--r--bin/rmail/Makefile6
-rw-r--r--etc/defaults/make.conf15
-rw-r--r--lib/libsmdb/Makefile3
-rw-r--r--lib/libsmutil/Makefile3
-rw-r--r--libexec/mail.local/Makefile6
-rw-r--r--libexec/smrsh/Makefile6
-rw-r--r--secure/usr.sbin/sendmail/Makefile8
-rw-r--r--share/examples/etc/make.conf15
-rw-r--r--usr.sbin/mailstats/Makefile6
-rw-r--r--usr.sbin/makemap/Makefile6
-rw-r--r--usr.sbin/praliases/Makefile6
-rw-r--r--usr.sbin/sendmail/Makefile8
12 files changed, 86 insertions, 2 deletions
diff --git a/bin/rmail/Makefile b/bin/rmail/Makefile
index a0946717b996..87bd3c95faa8 100644
--- a/bin/rmail/Makefile
+++ b/bin/rmail/Makefile
@@ -19,6 +19,12 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
# If you want to have your rmail queuing the mail only, uncomment the
# following:
# CFLAGS+= -DQUEUE_ONLY
diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf
index 0f7486ea78d2..4b872c90ef8d 100644
--- a/etc/defaults/make.conf
+++ b/etc/defaults/make.conf
@@ -269,3 +269,18 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
# The list of languages and encodings to build and install
#
#DOC_LANG= en_US.ISO_8859-1 ru_RU.KOI8-R
+#
+#
+# sendmail
+# Setting the following variables modifes the build environment for
+# sendmail and its related utilities. For example, SASL support can be
+# added with settings such as:
+#
+# SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
+# SENDMAIL_LDFLAGS=-L/usr/local/lib
+# SENDMAIL_LDADD=-lsasl
+#
+#SENDMAIL_CFLAGS=
+#SENDMAIL_LDFLAGS=
+#SENDMAIL_LDADD=
+#SENDMAIL_DPADD=
diff --git a/lib/libsmdb/Makefile b/lib/libsmdb/Makefile
index 1b4c33ee4611..4aa78a18169f 100644
--- a/lib/libsmdb/Makefile
+++ b/lib/libsmdb/Makefile
@@ -6,6 +6,9 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
CFLAGS+=-DNEWDB -DNOT_SENDMAIL
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+
LIB= smdb
SRCS+= smdb.c smdb1.c smdb2.c smndbm.c
diff --git a/lib/libsmutil/Makefile b/lib/libsmutil/Makefile
index 237159c03be2..07b9cda11ce9 100644
--- a/lib/libsmutil/Makefile
+++ b/lib/libsmutil/Makefile
@@ -6,6 +6,9 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+
LIB= smutil
SRCS+= debug.c errstring.c lockfile.c safefile.c snprintf.c strl.c
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile
index 1a61dd8810da..62047c602699 100644
--- a/libexec/mail.local/Makefile
+++ b/libexec/mail.local/Makefile
@@ -21,4 +21,10 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
.include <bsd.prog.mk>
diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile
index 086368f483f7..37c2e4da3b7f 100644
--- a/libexec/smrsh/Makefile
+++ b/libexec/smrsh/Makefile
@@ -19,4 +19,10 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
.include <bsd.prog.mk>
diff --git a/secure/usr.sbin/sendmail/Makefile b/secure/usr.sbin/sendmail/Makefile
index 0eaa38611785..d6fa29247535 100644
--- a/secure/usr.sbin/sendmail/Makefile
+++ b/secure/usr.sbin/sendmail/Makefile
@@ -28,7 +28,7 @@ SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.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
+LDADD= -lutil -lwrap
MAN1= mailq.1 newaliases.1
MAN5= aliases.5
MAN8= sendmail.8
@@ -44,6 +44,12 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf
index 0f7486ea78d2..4b872c90ef8d 100644
--- a/share/examples/etc/make.conf
+++ b/share/examples/etc/make.conf
@@ -269,3 +269,18 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
# The list of languages and encodings to build and install
#
#DOC_LANG= en_US.ISO_8859-1 ru_RU.KOI8-R
+#
+#
+# sendmail
+# Setting the following variables modifes the build environment for
+# sendmail and its related utilities. For example, SASL support can be
+# added with settings such as:
+#
+# SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
+# SENDMAIL_LDFLAGS=-L/usr/local/lib
+# SENDMAIL_LDADD=-lsasl
+#
+#SENDMAIL_CFLAGS=
+#SENDMAIL_LDFLAGS=
+#SENDMAIL_LDADD=
+#SENDMAIL_DPADD=
diff --git a/usr.sbin/mailstats/Makefile b/usr.sbin/mailstats/Makefile
index 6a7520c978c0..89806a099a57 100644
--- a/usr.sbin/mailstats/Makefile
+++ b/usr.sbin/mailstats/Makefile
@@ -19,4 +19,10 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/makemap/Makefile b/usr.sbin/makemap/Makefile
index d92368cb1428..bd2d8c6f5e86 100644
--- a/usr.sbin/makemap/Makefile
+++ b/usr.sbin/makemap/Makefile
@@ -27,4 +27,10 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMDB} ${LIBSMUTIL}
LDADD+= ${LIBSMDB} ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/praliases/Makefile b/usr.sbin/praliases/Makefile
index 57fbaa038808..6b242a2f34af 100644
--- a/usr.sbin/praliases/Makefile
+++ b/usr.sbin/praliases/Makefile
@@ -27,4 +27,10 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMDB} ${LIBSMUTIL}
LDADD+= ${LIBSMDB} ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index 0eaa38611785..d6fa29247535 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/usr.sbin/sendmail/Makefile
@@ -28,7 +28,7 @@ SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.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
+LDADD= -lutil -lwrap
MAN1= mailq.1 newaliases.1
MAN5= aliases.5
MAN8= sendmail.8
@@ -44,6 +44,12 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+LDADD+=${SENDMAIL_LDADD}
+DPADD+=${SENDMAIL_DPADD}
+
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st