[package] update vsftpd to 2.1.1 (#5236)
[packages.git] / net / vsftpd / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vsftpd
11 PKG_VERSION:=2.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/
16 PKG_MD5SUM:=b1fab0e6212738f9f3572e067c419778
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vsftpd
21   SUBMENU:=FTP
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=A fast and secure FTP server
25   URL:=http://vsftpd.beasts.org/
26 endef
27
28 define Package/vsftpd/conffiles
29 /etc/vsftpd.conf
30 endef
31
32 define Build/Compile
33         $(MAKE) -C $(PKG_BUILD_DIR) \
34                 CC="$(TARGET_CC)" \
35                 CFLAGS="$(TARGET_CFLAGS)" \
36                 vsftpd
37 endef
38
39 define Package/vsftpd/install
40         $(INSTALL_DIR) $(1)/usr/sbin
41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
42         $(INSTALL_DIR) $(1)/etc
43         $(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
44         $(INSTALL_DIR) $(1)/etc/init.d
45         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 endef
47
48 $(eval $(call BuildPackage,vsftpd))