X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2FMakefile.linux;h=5f2de1f8accd8cdcd1fb7bee523da2406d6641a4;hp=a7ff34f7349544af56de3bf09dcba168a1c3c816;hb=c062322f9e8757b85a3c2281a3190d8af14bcd9b;hpb=c65dfbde7e6096272ffacd1c69f444b36a4b707a;ds=sidebyside diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index a7ff34f..5f2de1f 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.39 2000/08/01 01:38:29 paulus Exp $ +# $Id: Makefile.linux,v 1.44 2002/01/14 14:26:31 dfs Exp $ # # Default installation locations @@ -9,18 +9,17 @@ MANDIR = /usr/man PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c ccp.c \ ipxcp.c auth.c options.c sys-linux.c md4.c chap_ms.c cbcp.c \ - demand.c utils.c multilink.c tdb.c tty.c + demand.c utils.c tty.c HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \ ipxcp.h cbcp.h tdb.h MANPAGES = pppd.8 PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o \ - auth.o options.o demand.o utils.o sys-linux.o ipxcp.o multilink.o \ - tdb.o tty.o + auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o all: pppd # -# include dependancies if present and backup if as a header file +# include dependencies if present ifeq (.depend,$(wildcard .depend)) include .depend endif @@ -43,8 +42,20 @@ HAVE_CRYPT_H=y endif # Uncomment the next line to include support for PPP packet filtering. -# This requires that the libpcap library and headers be installed. -FILTER=y +# This requires that the libpcap library and headers be installed +# and that the kernel driver support PPP packet filtering, which it +# doesn't yet. +#FILTER=y + +# Uncomment the next line to enable multilink PPP (enabled by default) +# Linux distributions: Please leave multilink ENABLED in your builds +# of pppd! +HAVE_MULTILINK=y + +# Uncomment the next line to enable the TDB database (enabled by default.) +# If you enable multilink, then TDB is automatically enabled also. +# Linux distributions: Please leave TDB ENABLED in your builds. +USE_TDB=y HAS_SHADOW=y #USE_PAM=y @@ -54,7 +65,7 @@ PLUGIN=y INCLUDE_DIRS= -I../include -COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP +COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) @@ -85,6 +96,23 @@ CFLAGS += -DUSE_PAM LIBS := -lpam -ldl $(LIBS) endif +# Multi-linnk +ifdef HAVE_MULTILINK + # Multilink implies the use of TDB + USE_TDB=y + + CFLAGS += -DHAVE_MULTILINK + PPPDSRCS += multilink.c + PPPDOBJS += multilink.o +endif + +# TDB +ifdef USE_TDB + CFLAGS += -DUSE_TDB=1 + PPPDSRCS += tdb.c + PPPDOBJS += tdb.o +endif + # Lock library binary for Linux is included in 'linux' subdirectory. ifdef LOCKLIB LIBS := -llock $(LIBS) @@ -114,9 +142,9 @@ INSTALL= install -o root install: pppd mkdir -p $(BINDIR) $(MANDIR) - $(INSTALL) -s -c -m 4550 pppd $(BINDIR)/pppd - if ! chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \ - chmod o+rx $(BINDIR)/pppd; fi + $(INSTALL) -s -c -m 555 pppd $(BINDIR)/pppd + if chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \ + chmod o-rx,u+s $(BINDIR)/pppd; fi $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8 pppd: $(PPPDOBJS)