summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1997-09-28 09:31:43 +0000
committermarkm <markm@FreeBSD.org>1997-09-28 09:31:43 +0000
commit97238e083413308273e149d36e3ddabb73e08881 (patch)
tree7280d9e59a99ca3677f2100c3ed9f053822364a0 /usr.sbin
parent053846deda3626f268d6e8d1a139edd5630c6bec (diff)
downloadFreeBSD-src-97238e083413308273e149d36e3ddabb73e08881.zip
FreeBSD-src-97238e083413308273e149d36e3ddabb73e08881.tar.gz
Add (commented out) macros to make compiling with tcpwrappers easier.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sendmail/src/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/sendmail/src/Makefile b/usr.sbin/sendmail/src/Makefile
index a634725..fa51a76 100644
--- a/usr.sbin/sendmail/src/Makefile
+++ b/usr.sbin/sendmail/src/Makefile
@@ -21,7 +21,11 @@ DBMDEF= -DNEWDB
# FreeBSD supports NIS
NIS= -DNIS
-CFLAGS+=-I${.CURDIR} ${DBMDEF} ${NIS} #-DNETISO
+# 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 \
@@ -30,6 +34,9 @@ SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.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
OpenPOWER on IntegriCloud