url for stuff I extracted from linksys tgz, culd be changed in one place now
[openwrt.git] / obsolete-buildroot / make / pppd.mk
1 #############################################################
2 #
3 # pppd
4 #
5 #############################################################
6 PPPD_SOURCE:=ppp-2.4.1.tar.gz
7 PPPD_SITE:=ftp://ftp.samba.org/pub/ppp
8 PPPD_DIR:=$(BUILD_DIR)/ppp-2.4.1
9 PPPD_CAT:=zcat
10 PPPD_BINARY:=pppd/pppd
11 PPPD_TARGET_BINARY:=usr/sbin/pppd
12
13
14 $(DL_DIR)/$(PPPD_SOURCE):
15 $(WGET) -P $(DL_DIR) $(PPPD_SITE)/$(PPPD_SOURCE)
16
17 pppd-source: $(DL_DIR)/$(PPPD_SOURCE)
18
19 $(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE)
20 $(PPPD_CAT) $(DL_DIR)/$(PPPD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
21 $(SED) 's/ -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP//' $(PPPD_DIR)/pppd/Makefile.linux
22 $(SED) 's/$(INSTALL) -s/$(INSTALL)/' $(PPPD_DIR)/*/Makefile.linux
23 $(SED) 's/ -o root//' $(PPPD_DIR)/*/Makefile.linux
24 $(SED) 's/ -g daemon//' $(PPPD_DIR)/*/Makefile.linux
25 touch $(PPPD_DIR)/.unpacked
26
27 $(PPPD_DIR)/.configured: $(PPPD_DIR)/.unpacked
28 (cd $(PPPD_DIR); rm -rf config.cache; \
29 $(TARGET_CONFIGURE_OPTS) \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --sbindir=/usr/sbin \
38 --libexecdir=/usr/lib \
39 --sysconfdir=/etc \
40 --datadir=/usr/share \
41 --localstatedir=/var \
42 --mandir=/usr/man \
43 --infodir=/usr/info \
44 $(DISABLE_NLS) \
45 );
46 touch $(PPPD_DIR)/.configured
47
48 $(PPPD_DIR)/$(PPPD_BINARY): $(PPPD_DIR)/.configured
49 $(MAKE) CC=$(TARGET_CC) -C $(PPPD_DIR)
50
51 $(TARGET_DIR)/$(PPPD_TARGET_BINARY): $(PPPD_DIR)/$(PPPD_BINARY)
52 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(PPPD_DIR) install
53 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
54 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
55
56 pppd: uclibc $(TARGET_DIR)/$(PPPD_TARGET_BINARY)
57
58 pppd-clean:
59 rm -f $(TARGET_DIR)/usr/sbin/pppd
60 rm -f $(TARGET_DIR)/usr/sbin/chat
61 rm -rf $(TARGET_DIR)/etc/ppp
62 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(PPPD_DIR) uninstall
63 -$(MAKE) -C $(PPPD_DIR) clean
64
65 pppd-dirclean:
66 rm -rf $(PPPD_DIR)
67
68
This page took 0.050953 seconds and 5 git commands to generate.