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
11 PPTPD_PATCH_DIR
:= $(SOURCE_DIR
)/openwrt
/patches
/pptp-server
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
18 $(DL_DIR
)/$(PPTPD_SOURCE
):
19 $(WGET
) -P
$(DL_DIR
) $(PPTPD_SITE
)/$(PPTPD_SOURCE
)
22 $(PPTPD_DIR
)/.stamp-unpacked
: $(DL_DIR
)/$(PPTPD_SOURCE
)
23 $(PPTPD_CAT
) $(DL_DIR
)/$(PPTPD_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
25 touch
$(PPTPD_DIR
)/.stamp-unpacked
28 $(PPTPD_DIR
)/.stamp-patched
: $(PPTPD_DIR
)/.stamp-unpacked
29 $(SOURCE_DIR
)/patch-kernel.sh
$(PPTPD_DIR
) $(PPTPD_PATCH_DIR
)
31 touch
$(PPTPD_DIR
)/.stamp-patched
34 $(PPTPD_DIR
)/.stamp-configured
: $(PPTPD_DIR
)/.stamp-patched
36 rm -rf config.cache
; \
39 $(TARGET_CONFIGURE_OPTS
) \
40 CFLAGS
="$(TARGET_CFLAGS)" \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
49 --libexecdir
=/usr
/lib \
50 --datadir=/usr
/share \
51 --infodir=/usr
/share
/info \
52 --mandir=/usr
/share
/man \
53 --localstatedir
=/var \
56 --with-pppd-ip-alloc \
58 touch
$(PPTPD_DIR
)/.stamp-configured
61 $(PPTPD_DIR
)/.stamp-built
: $(PPTPD_DIR
)/.stamp-configured
63 touch config.guess
; \
67 COPTS
="$(TARGET_CFLAGS)" \
70 touch
$(PPTPD_DIR
)/.stamp-built
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
93 touch
$(PPTPD_BUILD_DIR
)/CONTROL
/control
96 $(PPTPD_IPK
): $(PPTPD_BUILD_DIR
)/CONTROL
/control
97 cd
$(BUILD_DIR
); $(IPKG_BUILD
) $(PPTPD_BUILD_DIR
)
100 pptp-server-ipk
: ipkg-utils
$(PPTPD_IPK
)
104 rm -rf
$(PPTPD_BUILD_DIR
)
This page took 0.04405 seconds and 5 git commands to generate.