X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=8c0ac11531d0156a94d2b259fca75bf986b3c4e1;hb=482b7bf6244696a5bdb9c4aafce94690dc942c01;hp=9a96c9a1c13e2e138fbf6c4e3ab48cfbe50c46f3;hpb=6f099903b36ddcca0a85753549dad910e47a9734;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 9a96c9a..8c0ac11 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.24 1998/03/25 01:27:01 paulus Exp $ +# $Id: Makefile.linux,v 1.28 1999/03/30 06:01:42 paulus Exp $ # # Default installation locations @@ -27,7 +27,7 @@ endif # CC = gcc # COPTS = -O2 -pipe -Wall -g -VER = 2.3.4 +VER = 2.3.6 LIBS = ifneq ($(wildcard /usr/lib/libcrypt*),) @@ -38,6 +38,10 @@ endif # MS-CHAP authentication protocol. CHAPMS=y USE_CRYPT=y +ifneq ($(wildcard /usr/lib/libcrypt*),) +HAVE_CRYPT_H=y +endif + HAS_SHADOW=y #USE_PAM=y @@ -54,6 +58,9 @@ ifndef USE_CRYPT LIBS := -ldes $(LIBS) else CFLAGS += -DUSE_CRYPT=1 +ifneq ($(wildcard /usr/include/crypt.h),) +CFLAGS += -DHAVE_CRYPT_H=1 +endif endif PPPDOBJS += md4.o chap_ms.o ifdef MSLANMAN @@ -80,7 +87,9 @@ endif install: pppd mkdir -p $(BINDIR) $(MANDIR) - install -s -c -m 4555 -o root pppd $(BINDIR)/pppd + install -s -c -m 4550 -o root pppd $(BINDIR)/pppd + if ! chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \ + chmod o+rx $(BINDIR)/pppd; fi install -c -m 444 -o root pppd.8 $(MANDIR)/man8 pppd: $(PPPDOBJS)