late night coding at it's finest ...
[openwrt.git] / obsolete-buildroot / make / pptp-client.mk
1 ## pptp-client
2
3 PPTPC_VERSION := 1.5.0
4 PPTPC_RELEASE := 1
5
6 PPTPC_SOURCE := pptp-linux-$(PPTPC_VERSION).tar.gz
7 PPTPC_SITE := dl.sourceforge.net/sourceforge/pptpclient/
8 PPTPC_DIR := $(BUILD_DIR)/pptp-linux-$(PPTPC_VERSION)
9 PPTPC_CAT := zcat
10
11 PPTPC_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/pptp-client
12
13 PPTPC_BUILD_DIR := $(BUILD_DIR)/pptp-client_$(PPTPC_VERSION)-$(PPTPC_RELEASE)
14 PPTPC_IPK_DIR := $(OPENWRT_IPK_DIR)/pptp-client
15 PPTPC_IPK := $(PPTPC_BUILD_DIR)_$(ARCH).ipk
16
17
18 $(DL_DIR)/$(PPTPC_SOURCE):
19 $(WGET) -P $(DL_DIR) $(PPTPC_SITE)/$(PPTPC_SOURCE)
20
21
22 $(PPTPC_DIR)/.stamp-unpacked: $(DL_DIR)/$(PPTPC_SOURCE)
23 $(PPTPC_CAT) $(DL_DIR)/$(PPTPC_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24
25 touch $(PPTPC_DIR)/.stamp-unpacked
26
27
28 $(PPTPC_DIR)/.stamp-patched: $(PPTPC_DIR)/.stamp-unpacked
29
30 touch $(PPTPC_DIR)/.stamp-patched
31
32
33 $(PPTPC_DIR)/.stamp-configured: $(PPTPC_DIR)/.stamp-patched
34
35 touch $(PPTPC_DIR)/.stamp-configured
36
37
38 $(PPTPC_DIR)/.stamp-built: $(PPTPC_DIR)/.stamp-configured
39 cd $(PPTPC_DIR) ; \
40 $(MAKE) \
41 CC=$(TARGET_CC) \
42 DEBUG="" \
43 OPTIMIZE="$(TARGET_CFLAGS)" \
44 all \
45
46 touch $(PPTPC_DIR)/.stamp-built
47
48
49 $(PPTPC_BUILD_DIR): $(PPTPC_DIR)/.stamp-built
50 mkdir -p $(PPTPC_BUILD_DIR)
51
52 install -m0755 -d $(PPTPC_BUILD_DIR)/usr/sbin
53 install -m0755 $(PPTPC_DIR)/pptp $(PPTPC_BUILD_DIR)/usr/sbin
54
55 install -m0755 -d $(PPTPC_BUILD_DIR)/etc/ppp
56 install -m0644 $(PPTPC_IPK_DIR)/root/etc/ppp/pptp-client-options $(PPTPC_BUILD_DIR)/etc/ppp/
57 install -m0755 -d $(PPTPC_BUILD_DIR)/etc/ppp/peers
58 install -m0644 $(PPTPC_IPK_DIR)/root/etc/ppp/peers/pptp-client-sample $(PPTPC_BUILD_DIR)/etc/ppp/peers/
59
60 $(STRIP) $(PPTPC_BUILD_DIR)/usr/sbin/*
61
62 touch $(PPTPC_DIR)/.stamp-installed
63
64
65 $(PPTPC_IPK): $(PPTPC_BUILD_DIR)
66 cp -a $(PPTPC_IPK_DIR)/CONTROL $(PPTPC_BUILD_DIR)/
67 perl -pi -e "s/^Vers.*:.*$$/Version: $(PPTPC_VERSION)-$(PPTPC_RELEASE)/" $(PPTPC_BUILD_DIR)/CONTROL/control
68 perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPTPC_BUILD_DIR)/CONTROL/control
69 cd $(BUILD_DIR); $(IPKG_BUILD) $(PPTPC_BUILD_DIR)
70
71
72 pptp-client-ipk: ipkg-utils $(PPTPC_IPK)
73
74 pptp-client-clean:
75 $(MAKE) -C $(PPTPC_DIR) clean
76
77 pptp-client-clean-all:
78 rm -rf $(PPTPC_IPK)
79 rm -rf $(PPTPC_BUILD_DIR)
80 rm -rf $(PPTPC_DIR)
This page took 0.047232 seconds and 5 git commands to generate.