update vsftpd to latest upstream release (v2.0.4) and fix patches
[openwrt/svn-archive/archive.git] / openwrt / package / vsftpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vsftpd
6 PKG_VERSION:=2.0.4
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c0bf8c7b8e15ab15827172786fc56115
9
10 PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,VSFTPD,vsftpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 rm -rf $(PKG_INSTALL_DIR)
26 mkdir -p $(PKG_INSTALL_DIR)
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 DESTDIR="$(PKG_INSTALL_DIR)" \
31 vsftpd install
32 touch $@
33
34 $(IPKG_VSFTPD):
35 install -d -m0755 $(IDIR_VSFTPD)/etc
36 install -m0644 ./files/vsftpd.conf $(IDIR_VSFTPD)/etc/vsftpd.conf
37 install -d -m0755 $(IDIR_VSFTPD)/etc/init.d
38 install -m0755 ./files/vsftpd.init $(IDIR_VSFTPD)/etc/init.d/vsftpd
39 install -d -m0755 $(IDIR_VSFTPD)/usr/sbin
40 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(IDIR_VSFTPD)/usr/sbin/
41 $(RSTRIP) $(IDIR_VSFTPD)
42 $(IPKG_BUILD) $(IDIR_VSFTPD) $(PACKAGE_DIR)