summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-03-17 18:54:44 +0000
committerru <ru@FreeBSD.org>2006-03-17 18:54:44 +0000
commit388e590f951441f619cd32710dc151e0ac810a10 (patch)
tree801e953598fc63a37f62cf997017301675552fe9 /libexec
parenta251964eaca5833ff2c4651fe4f7f8cac7199da5 (diff)
downloadFreeBSD-src-388e590f951441f619cd32710dc151e0ac810a10.zip
FreeBSD-src-388e590f951441f619cd32710dc151e0ac810a10.tar.gz
Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/Makefile10
-rw-r--r--libexec/ftpd/Makefile4
-rw-r--r--libexec/lukemftpd/Makefile4
-rw-r--r--libexec/tcpd/Makefile4
-rw-r--r--libexec/telnetd/Makefile6
5 files changed, 19 insertions, 9 deletions
diff --git a/libexec/Makefile b/libexec/Makefile
index 30a8db1..6d25b58 100644
--- a/libexec/Makefile
+++ b/libexec/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+.include <bsd.own.mk>
+
SUBDIR= atrun \
bootpd \
comsat \
@@ -32,12 +34,12 @@ SUBDIR= atrun \
tftpd \
${_ypxfr}
-.if !defined(NO_NIS)
+.if ${MK_NIS} != "no"
_mknetid= mknetid
_ypxfr= ypxfr
.endif
-.if !defined(NO_PF)
+.if ${MK_PF} != "no"
_ftp-proxy= ftp-proxy
.endif
@@ -45,12 +47,12 @@ _ftp-proxy= ftp-proxy
_rtld-elf= rtld-elf
.endif
-.if !defined(NO_RCMDS)
+.if ${MK_RCMDS} != "no"
_rlogind= rlogind
_rshd= rshd
.endif
-.if !defined(NO_SENDMAIL)
+.if ${MK_SENDMAIL} != "no"
_mail.local= mail.local
_smrsh= smrsh
.endif
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index c4275e4..ceb46e2 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.2 (Berkeley) 4/4/94
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= ftpd
MAN= ftpd.8 ftpchroot.5
SRCS= ftpd.c ftpcmd.y logwtmp.c popen.c
@@ -26,7 +28,7 @@ CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
DPADD+= ${LIBM}
LDADD+= -lm
-.if !defined(NO_PAM)
+.if ${MK_PAM_SUPPORT} != "no"
CFLAGS+=-DUSE_PAM
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
diff --git a/libexec/lukemftpd/Makefile b/libexec/lukemftpd/Makefile
index 532f85c..7f78379 100644
--- a/libexec/lukemftpd/Makefile
+++ b/libexec/lukemftpd/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.2 (Berkeley) 4/4/94
# $FreeBSD$
+.include <bsd.own.mk>
+
LUKEMFTPD= ${.CURDIR}/../../contrib/lukemftpd
.PATH: ${LUKEMFTPD}/src ${LUKEMFTPD}/libnetbsd
@@ -30,7 +32,7 @@ CFLAGS+= -DUSE_OPIE -DLOGIN_CAP
DPADD+= ${LIBOPIE} ${LIBMD}
LDADD+= -lopie -lmd
-.if !defined(NO_PAM)
+.if ${MK_PAM_SUPPORT} != "no"
CFLAGS+= -DUSE_PAM
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
diff --git a/libexec/tcpd/Makefile b/libexec/tcpd/Makefile
index 6a8f0e2..6bb6080 100644
--- a/libexec/tcpd/Makefile
+++ b/libexec/tcpd/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../contrib/tcp_wrappers
PROG= tcpd
@@ -9,7 +11,7 @@ CFLAGS+=-DREAL_DAEMON_DIR=\"/usr/libexec\" \
-DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 \
-DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\" \
-DFACILITY=LOG_DAEMON
-.if !defined(NO_INET6)
+.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 68b2be6..11f4b0c 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -3,6 +3,8 @@
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
# telnet implementations.
+.include <bsd.own.mk>
+
TELNETDIR= ${.CURDIR}/../../contrib/telnet
.PATH: ${TELNETDIR}/telnetd
@@ -25,12 +27,12 @@ DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
LDADD= -lutil -ltermcap ${LIBTELNET}
.if !defined(RELEASE_CRUNCH)
-.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
+.if ${MK_OPENSSL} != "no"
SRCS+= authenc.c
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
-.if !defined(NO_KERBEROS)
+.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
LDADD+= -lkrb5 -lasn1 -lroken -lcom_err
OpenPOWER on IntegriCloud