1 #############################################################
5 #############################################################
7 PPPD_SOURCE
:=ppp-
$(PPPD_VERSION
).
tar.gz
8 PPPD_SITE
:=ftp
://ftp.samba.org
/pub
/ppp
9 PPPD_DIR
:=$(BUILD_DIR
)/ppp-
$(PPPD_VERSION
)
11 PPPD_BINARY
:=pppd
/pppd
12 PPPD_TARGET_BINARY
:=usr
/sbin
/pppd
15 $(DL_DIR
)/$(PPPD_SOURCE
):
16 $(WGET
) -P
$(DL_DIR
) $(PPPD_SITE
)/$(PPPD_SOURCE
)
18 pppd-source
: $(DL_DIR
)/$(PPPD_SOURCE
)
20 $(PPPD_DIR
)/.unpacked
: $(DL_DIR
)/$(PPPD_SOURCE
)
21 $(PPPD_CAT
) $(DL_DIR
)/$(PPPD_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
22 $(SED
) 's/ -DIPX_CHANGE -DHAVE_MMAP//' $(PPPD_DIR
)/pppd
/Makefile.linux
23 $(SED
) 's/HAVE_MULTILINK=y/#HAVE_MULTILINK=y/' $(PPPD_DIR
)/pppd
/Makefile.linux
24 $(SED
) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR
)/pppd
/Makefile.linux
25 $(SED
) 's,(INSTALL) -s,(INSTALL),' $(PPPD_DIR
)/*/Makefile.linux
26 $(SED
) 's,(INSTALL) -s,(INSTALL),' $(PPPD_DIR
)/pppd
/plugins
/*/Makefile.linux
27 $(SED
) 's/ -o root//' $(PPPD_DIR
)/*/Makefile.linux
28 $(SED
) 's/ -g daemon//' $(PPPD_DIR
)/*/Makefile.linux
29 $(CONFIG_UPDATE
) $(@D
)
32 $(PPPD_DIR
)/.configured
: $(PPPD_DIR
)/.unpacked
33 (cd
$(PPPD_DIR
); rm -rf config.cache
; \
34 $(AUTO_CONFIGURE_TARGET
) \
40 --libexecdir
=/usr
/lib \
42 --datadir=/usr
/share \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
45 --infodir=/usr
/share
/info \
50 $(PPPD_DIR
)/$(PPPD_BINARY
): $(PPPD_DIR
)/.configured
51 $(MAKE
) CC
=$(TARGET_CC
) COPTS
="$(TARGET_CFLAGS)" -C
$(PPPD_DIR
)
53 $(TARGET_DIR
)/$(PPPD_TARGET_BINARY
): $(PPPD_DIR
)/$(PPPD_BINARY
)
54 $(MAKE1
) DESTDIR
=$(TARGET_DIR
)/usr CC
=$(TARGET_CC
) -C
$(PPPD_DIR
) install
55 ifneq ($(BR2_ENABLE_LOCALE
),y
)
56 rm -rf
$(TARGET_DIR
)/usr
/share
/locale
58 ifneq ($(BR2_HAVE_MANPAGES
),y
)
59 rm -rf
$(TARGET_DIR
)/usr
/share
/man
61 ifneq ($(BR2_HAVE_INFOPAGES
),y
)
62 rm -rf
$(TARGET_DIR
)/usr
/info
64 rm -rf
$(TARGET_DIR
)/usr
/share
/doc
65 rm -rf
$(TARGET_DIR
)/usr
/include/pppd
67 pppd
: $(TARGET_DIR
)/$(PPPD_TARGET_BINARY
)
70 rm -f
$(TARGET_DIR
)/usr
/sbin
/pppd
71 rm -f
$(TARGET_DIR
)/usr
/sbin
/chat
72 rm -f
$(TARGET_DIR
)/usr
/sbin
/pppstatus
73 rm -f
$(TARGET_DIR
)/usr
/sbin
/pppdump
74 rm -rf
$(TARGET_DIR
)/etc
/ppp
75 rm -rf
$(TARGET_DIR
)/usr
/include/pppd
76 -$(MAKE
) -C
$(PPPD_DIR
) clean
82 #############################################################
84 # Toplevel Makefile options
86 #############################################################
87 ifeq ($(BR2_PACKAGE_PPPD
),y
)