fix ar7 flash map driver handling of jffs2 images
[openwrt.git] / obsolete-buildroot / make / pptp-server.mk
1 ## pptp-server
2
3 PPTPD_VERSION := 1.1.3
4 PPTPD_RELEASE := 1
5
6 PPTPD_SOURCE := pptpd-1.1.3-20030409.tar.gz
7 PPTPD_SITE := http://unc.dl.sourceforge.net/sourceforge/poptop/
8 PPTPD_DIR := $(BUILD_DIR)/poptop
9 PPTPD_CAT := zcat
10
11 PPTPD_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/pptp-server
12
13 PPTPD_BUILD_DIR := $(BUILD_DIR)/pptp-server_$(PPTPD_VERSION)-$(PPTPD_RELEASE)
14 PPTPD_IPK_DIR := $(OPENWRT_IPK_DIR)/pptp-server
15 PPTPD_IPK := $(PPTPD_BUILD_DIR)_$(ARCH).ipk
16
17
18 $(DL_DIR)/$(PPTPD_SOURCE):
19 $(WGET) -P $(DL_DIR) $(PPTPD_SITE)/$(PPTPD_SOURCE)
20
21
22 $(PPTPD_DIR)/.stamp-unpacked: $(DL_DIR)/$(PPTPD_SOURCE)
23 $(PPTPD_CAT) $(DL_DIR)/$(PPTPD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24
25 touch $(PPTPD_DIR)/.stamp-unpacked
26
27
28 $(PPTPD_DIR)/.stamp-patched: $(PPTPD_DIR)/.stamp-unpacked
29 $(SOURCE_DIR)/patch-kernel.sh $(PPTPD_DIR) $(PPTPD_PATCH_DIR)
30
31 touch $(PPTPD_DIR)/.stamp-patched
32
33
34 $(PPTPD_DIR)/.stamp-configured: $(PPTPD_DIR)/.stamp-patched
35 cd $(PPTPD_DIR) ; \
36 rm -rf config.cache ; \
37 aclocal ; \
38 autoconf ; \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --prefix=/usr \
46 --exec-prefix=/usr \
47 --bindir=/usr/bin \
48 --sbindir=/usr/sbin \
49 --libexecdir=/usr/lib \
50 --datadir=/usr/share \
51 --infodir=/usr/share/info \
52 --mandir=/usr/share/man \
53 --localstatedir=/var \
54 --sysconfdir=/etc \
55 $(DISABLE_NLS) \
56 --with-pppd-ip-alloc \
57
58 touch $(PPTPD_DIR)/.stamp-configured
59
60
61 $(PPTPD_DIR)/.stamp-built: $(PPTPD_DIR)/.stamp-configured
62 cd $(PPTPD_DIR) ; \
63 touch config.guess ; \
64 touch config.sub ; \
65 $(MAKE) \
66 CC=$(TARGET_CC) \
67 COPTS="$(TARGET_CFLAGS)" \
68 all
69
70 touch $(PPTPD_DIR)/.stamp-built
71
72
73 $(PPTPD_BUILD_DIR)/CONTROL/control: $(PPTPD_DIR)/.stamp-built
74 rm -rf $(PPTPD_BUILD_DIR)
75 mkdir -p $(PPTPD_BUILD_DIR)/usr/sbin
76 cp -a $(PPTPD_DIR)/pptpctrl $(PPTPD_BUILD_DIR)/usr/sbin/
77 cp -a $(PPTPD_DIR)/pptpd $(PPTPD_BUILD_DIR)/usr/sbin/
78 $(STRIP) $(PPTPD_BUILD_DIR)/usr/sbin/*
79 cp -a $(PPTPD_IPK_DIR)/root/* $(PPTPD_BUILD_DIR)/
80 chmod 0755 $(PPTPD_BUILD_DIR)/etc
81 chmod 0755 $(PPTPD_BUILD_DIR)/etc/init.d
82 chmod 0755 $(PPTPD_BUILD_DIR)/etc/init.d/*
83 chmod 0755 $(PPTPD_BUILD_DIR)/etc/ppp
84 chmod 0644 $(PPTPD_BUILD_DIR)/etc/ppp/pptp-server-options
85 chmod 0644 $(PPTPD_BUILD_DIR)/etc/pptpd.conf
86 chmod 0755 $(PPTPD_BUILD_DIR)/usr
87 chmod 0755 $(PPTPD_BUILD_DIR)/usr/sbin
88 chmod 0755 $(PPTPD_BUILD_DIR)/usr/sbin/*
89 cp -a $(PPTPD_IPK_DIR)/CONTROL $(PPTPD_BUILD_DIR)/
90 perl -pi -e "s/^Vers.*:.*$$/Version: $(PPTPD_VERSION)-$(PPTPD_RELEASE)/" $(PPTPD_BUILD_DIR)/CONTROL/control
91 perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPTPD_BUILD_DIR)/CONTROL/control
92
93 touch $(PPTPD_BUILD_DIR)/CONTROL/control
94
95
96 $(PPTPD_IPK): $(PPTPD_BUILD_DIR)/CONTROL/control
97 cd $(BUILD_DIR); $(IPKG_BUILD) $(PPTPD_BUILD_DIR)
98
99
100 pptp-server-ipk: ipkg-utils $(PPTPD_IPK)
101
102 pptp-server-clean:
103 rm -rf $(PPTPD_IPK)
104 rm -rf $(PPTPD_BUILD_DIR)
105 rm -rf $(PPTPD_DIR)
This page took 0.051817 seconds and 5 git commands to generate.