fix ar7 flash map driver handling of jffs2 images
[openwrt.git] / obsolete-buildroot / make / vsftpd.mk
1 # vsftpd
2
3 VSFTPD_VERSION:=1.2.2
4 VSFTPD_RELEASE:=1
5
6 VSFTPD_SOURCE:=vsftpd-$(VSFTPD_VERSION).tar.gz
7 VSFTPD_SITE:=ftp://vsftpd.beasts.org/users/cevans/
8 VSFTPD_DIR:=$(BUILD_DIR)/vsftpd-$(VSFTPD_VERSION)
9 VSFTPD_CAT:=zcat
10
11 VSFTPD_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/vsftpd
12
13 VSFTPD_BUILD_DIR := $(BUILD_DIR)/vsftpd_$(VSFTPD_VERSION)-$(VSFTPD_RELEASE)
14 VSFTPD_IPK_DIR := $(OPENWRT_IPK_DIR)/vsftpd
15 VSFTPD_IPK := $(VSFTPD_BUILD_DIR)_$(ARCH).ipk
16
17
18 $(DL_DIR)/$(VSFTPD_SOURCE):
19 $(WGET) -P $(DL_DIR) $(VSFTPD_SITE)/$(VSFTPD_SOURCE)
20
21
22 $(VSFTPD_DIR)/.stamp-unpacked: $(DL_DIR)/$(VSFTPD_SOURCE)
23 $(VSFTPD_CAT) $(DL_DIR)/$(VSFTPD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24
25 touch $(VSFTPD_DIR)/.stamp-unpacked
26
27
28 $(VSFTPD_DIR)/.stamp-patched: $(VSFTPD_DIR)/.stamp-unpacked
29 $(SOURCE_DIR)/patch-kernel.sh $(VSFTPD_DIR) $(VSFTPD_PATCH_DIR)
30
31 touch $(VSFTPD_DIR)/.stamp-patched
32
33
34 $(VSFTPD_DIR)/.stamp-built: $(VSFTPD_DIR)/.stamp-patched
35 cd $(VSFTPD_DIR) ; \
36 $(MAKE) \
37 $(TARGET_CONFIGURE_OPTS) \
38 CFLAGS="$(TARGET_CFLAGS)" \
39
40 touch $(VSFTPD_DIR)/.stamp-built
41
42
43 $(VSFTPD_BUILD_DIR): $(VSFTPD_DIR)/.stamp-built
44 mkdir -p $(VSFTPD_BUILD_DIR)
45
46 install -m0755 -d $(VSFTPD_BUILD_DIR)/usr/sbin
47 install -m0755 $(VSFTPD_DIR)/vsftpd $(VSFTPD_BUILD_DIR)/usr/sbin/
48
49 install -m0755 -d $(VSFTPD_BUILD_DIR)/etc
50 install -m0644 $(VSFTPD_IPK_DIR)/root/etc/vsftpd.conf $(VSFTPD_BUILD_DIR)/etc/
51 install -m0755 -d $(VSFTPD_BUILD_DIR)/etc/init.d
52 install -m0755 $(VSFTPD_IPK_DIR)/root/etc/init.d/vsftpd $(VSFTPD_BUILD_DIR)/etc/init.d/
53
54 $(STRIP) $(VSFTPD_BUILD_DIR)/usr/sbin/*
55
56
57 $(VSFTPD_IPK): $(VSFTPD_BUILD_DIR)
58 cp -a $(VSFTPD_IPK_DIR)/CONTROL $(VSFTPD_BUILD_DIR)/
59 perl -pi -e "s/^Vers.*:.*$$/Version: $(VSFTPD_VERSION)-$(VSFTPD_RELEASE)/" $(VSFTPD_BUILD_DIR)/CONTROL/control
60 perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(VSFTPD_BUILD_DIR)/CONTROL/control
61 cd $(BUILD_DIR); $(IPKG_BUILD) $(VSFTPD_BUILD_DIR)
62
63
64 vsftpd-source: $(DL_DIR)/$(VSFTPD_SOURCE)
65
66 vsftpd-ipk: ipkg-utils $(VSFTPD_IPK)
67
68 vsftpd-clean:
69 rm -rf $(VSFTPD_DIR)
70 rm -rf $(VSFTPD_BUILD_DIR)
71 rm -rf $(VSFTPD_IPK)
This page took 0.057841 seconds and 5 git commands to generate.