summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-12-21 12:01:15 +0000
committerru <ru@FreeBSD.org>2004-12-21 12:01:15 +0000
commitb74e87102d00fdd46ad107c6ed10dedbe5e61add (patch)
treeb744377e118a38520d1937f3bf3f23e718209a64 /usr.sbin
parenta90b1e36568bbf68413166df0db874fdf3e841c2 (diff)
downloadFreeBSD-src-b74e87102d00fdd46ad107c6ed10dedbe5e61add.zip
FreeBSD-src-b74e87102d00fdd46ad107c6ed10dedbe5e61add.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/Makefile44
1 files changed, 26 insertions, 18 deletions
diff --git a/usr.sbin/ppp/Makefile b/usr.sbin/ppp/Makefile
index c2bbb4c..bb176c6 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}
OpenPOWER on IntegriCloud