root/floppyfw-3.0/makefiles/pppd.mk

Revision 256, 1.9 KB (checked in by root, 4 years ago)

A few bug fixes and a new kernel version.

Line 
1#############################################################
2#
3# pppd
4#
5#############################################################
6
7
8# I wish I could but the resulting package is way too big.
9# 2.4.4 should be useable, the tip is "#HAS_SHADOW=y"
10# PPPD_SOURCE_URL=ftp://ftp.samba.org/pub/ppp/
11# PPPD_SOURCE=ppp-2.4.4.tar.gz
12# PPPD_DIR=$(BUILD_DIR)/ppp-2.4.4
13
14PPPD_SOURCE_URL=http://www.zelow.no/floppyfw/download/Development/src/
15PPPD_SOURCE=ppp-2.4.1.pppoe4.tgz
16PPPD_DIR=$(BUILD_DIR)/ppp-2.4.1.pppoe4
17PPPD_PACKAGES_DIR=$(PACKAGES_DIR)/ppp
18
19
20$(DL_DIR)/$(PPPD_SOURCE):
21         $(WGET) -P $(DL_DIR) $(PPPD_SOURCE_URL)$(PPPD_SOURCE)
22
23pppd-source: $(DL_DIR)/$(PPPD_SOURCE)
24
25$(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE)
26        zcat $(DL_DIR)/$(PPPD_SOURCE) | \
27                tar $(TAR_VERBOSE) -C $(BUILD_DIR) -xf -
28        touch $(PPPD_DIR)/.unpacked
29
30$(PPPD_DIR)/.configured: $(PPPD_DIR)/.unpacked
31        (cd $(PPPD_DIR); \
32                ./configure \
33                 CFLAGS="$(TARGET_CFLAGS)" \
34        );
35        $(SED) 's/HAS_SHADOW=y/#HAS_SHADOW=y/' $(PPPD_DIR)/pppd/Makefile
36        touch $(PPPD_DIR)/.configured
37
38$(PPPD_DIR)/pppd/pppd: $(PPPD_DIR)/.configured
39        # (cd $(PPPD_DIR); $(MAKE) CC="$(TARGET_CC)" HAS_SHADOW=n );
40        (cd $(PPPD_DIR); $(MAKE) CC="$(TARGET_CC)" );
41
42$(PACKAGES_DIR)/ppp/sbin/pppd: $(PPPD_DIR)/pppd/pppd
43        -$(RM) -r $(PPPD_PACKAGES_DIR)
44        cp -a $(PACKAGES_SKELETON_DIR)/ppp $(PPPD_PACKAGES_DIR)
45        -find $(PPPD_PACKAGES_DIR) -type d -name CVS -exec $(RM) -r {} \; > /dev/null 2>&1
46        -find $(PPPD_PACKAGES_DIR) -type d -name .svn -exec $(RM) -r {} \; > /dev/null 2>&1
47        cp -a $(PPPD_DIR)/pppd/pppd $(PPPD_PACKAGES_DIR)/sbin/pppd
48        cp -a $(PPPD_DIR)/chat/chat $(PPPD_PACKAGES_DIR)/sbin/chat
49        -$(SSTRIP) $(PPPD_PACKAGES_DIR)/sbin/*
50
51$(PACKAGES_DIR)/ppp.ffw:
52        (cd $(PACKAGES_DIR); $(RM) -r ppp/var ; sh mkpack ppp)
53
54pppd: $(PPPD_PACKAGES_DIR)/sbin/pppd
55
56pppd-clean:
57        -$(MAKE) -C $(PPPD_DIR) clean
58        -$(RM) -r $(PPPD_PACKAGES_DIR)
59
60pppd-dirclean:
61        -$(RM) -r $(PPPD_DIR)
62        -$(RM) -r $(PPPD_PACKAGES_DIR)
Note: See TracBrowser for help on using the browser.