2006-07-24 18:45:15 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=vsftpd
|
2007-03-19 01:57:34 +00:00
|
|
|
PKG_VERSION:=2.0.5
|
2006-07-24 18:45:15 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/
|
2007-03-19 01:57:34 +00:00
|
|
|
PKG_MD5SUM:=146062e8b2f93af43ff6c2c770feea94
|
2006-07-24 18:45:15 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2007-01-08 11:19:08 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-24 18:45:15 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/vsftpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A fast and secure FTP server
|
|
|
|
URL:=http://vsftpd.beasts.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vsftpd/conffiles
|
|
|
|
/etc/vsftpd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
vsftpd install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vsftpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/vsftpd.conf $(1)/etc/vsftpd.conf
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/vsftpd.init $(1)/etc/init.d/vsftpd
|
2006-07-24 18:45:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,vsftpd))
|