From dd991de030cfb3eb639827249f93d94f365cdde6 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 21 Dec 2004 12:01:15 +0000 Subject: Overhaul ppp(8) build options so they are safe to use in /etc/make.conf: NOALIAS -> retired (support provided by PPP_NO_NAT) NOATM -> PPP_NO_ATM (also subject to NO_ATM global) NODES -> PPP_NO_DES (support was broken, now recovered) NOI4B -> PPP_NO_I4B (also subject to NO_I4B global) NOKLDLOAD -> PPP_NO_KLDLOAD NONAT -> PPP_NO_NAT NONETGRAPH -> PPP_NO_NETGRAPH NOPAM -> PPP_NO_PAM (will be subject to NO_PAM global) NORADIUS -> PPP_NO_RADIUS NOSUID -> retired (support provided by PPP_NO_SUID) PPP_NOSUID -> PPP_NO_SUID --- usr.sbin/ppp/Makefile | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/Makefile b/usr.sbin/ppp/Makefile index c2bbb4c9ca7d..bb176c61e3ca 100644 --- a/usr.sbin/ppp/Makefile +++ b/usr.sbin/ppp/Makefile @@ -11,17 +11,24 @@ SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ WARNS?= 3 .if defined(RELEASE_CRUNCH) CFLAGS+=-DRELEASE_CRUNCH -NO_ATM= -NODES= -NOI4B= -NONAT= -NOKLDLOAD= -NOPAM= -NORADIUS= -NOSUID= +PPP_NO_ATM= +PPP_NO_DES= +PPP_NO_I4B= +PPP_NO_KLDLOAD= +PPP_NO_NAT= +PPP_NO_PAM= +PPP_NO_RADIUS= +PPP_NO_SUID= .endif -.if defined(NOSUID) || defined(PPP_NOSUID) +.if defined(NO_ATM) +PPP_NO_ATM= +.endif +.if defined(NO_I4B) +PPP_NO_I4B= +.endif + +.if defined(PPP_NO_SUID) BINMODE=550 .else BINMODE=4550 @@ -44,7 +51,7 @@ CLEANFILES= ppp.8 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" .endif -.if defined(NOKLDLOAD) +.if defined(PPP_NO_KLDLOAD) CFLAGS+=-DNOKLDLOAD .endif @@ -52,7 +59,7 @@ CFLAGS+=-DNOKLDLOAD CFLAGS+=-DNOINET6 .endif -.if defined(NOALIAS) || defined(NONAT) +.if defined(PPP_NO_NAT) CFLAGS+=-DNONAT .else SRCS+= nat_cmd.c @@ -60,19 +67,20 @@ LDADD+= -lalias DPADD+= ${LIBALIAS} .endif -.if defined(NO_ATM) +.if defined(PPP_NO_ATM) CFLAGS+=-DNOATM .else SRCS+= atm.c .endif -.if defined(NOSUID) || defined(PPP_NOSUID) +.if defined(PPP_NO_SUID) CFLAGS+=-DNOSUID .else SRCS+= id.c .endif -.if defined(RELEASE_CRUNCH) || defined(NO_CRYPT) || defined(NO_OPENSSL) +.if defined(RELEASE_CRUNCH) || defined(NO_CRYPT) || defined(NO_OPENSSL) || \ + defined(PPP_NO_DES) CFLAGS+=-DNODES .else SRCS+= chap_ms.c mppe.c @@ -80,7 +88,7 @@ LDADD+= -lcrypto DPADD+= ${LIBCRYPTO} .endif -.if defined(NORADIUS) +.if defined(PPP_NO_RADIUS) CFLAGS+=-DNORADIUS .else SRCS+= radius.c @@ -88,13 +96,13 @@ LDADD+= -lradius DPADD+= ${LIBRADIUS} .endif -.if defined(NOI4B) || ${MACHINE_ARCH} != "i386" +.if defined(PPP_NO_I4B) || ${MACHINE_ARCH} != "i386" CFLAGS+=-DNOI4B .else SRCS+= i4b.c .endif -.if defined(NONETGRAPH) +.if defined(PPP_NO_NETGRAPH) CFLAGS+=-DNONETGRAPH .else SRCS+= ether.c @@ -106,7 +114,7 @@ SRCS+= netgraph.c .endif .endif -.if defined(NOPAM) +.if defined(PPP_NO_PAM) CFLAGS+=-DNOPAM .else LDADD+= ${MINUSLPAM} -- cgit v1.2.3