[packages] vsftpd: update to 2.3.2
[openwrt/svn-archive/archive.git] / net / vsftpd / Makefile
1 #
2 # Copyright (C) 2006-2010 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.3.2
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:=bad7b117d737a738738836041edc00db
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 MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
27 endef
28
29 define Package/vsftpd/conffiles
30 /etc/vsftpd.conf
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 vsftpd
38 endef
39
40 define Package/vsftpd/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc
44 $(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
47 endef
48
49 $(eval $(call BuildPackage,vsftpd))