2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
14 PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
15 PKG_MD5SUM:=0d6777839f37115654ce384841f68131
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
20 include $(INCLUDE_DIR)/package.mk
22 define Package/proftpd
26 TITLE:=ProFTPD FTP server
27 URL:=http://www.proftpd.org/
30 define Package/proftpd/conffiles
35 -I$(LINUX_DIR)/include
38 INSTALL_USER=$(shell id -u) \
39 INSTALL_GROUP=$(shell id -g)
45 define Package/proftpd/install
46 $(INSTALL_DIR) $(1)/etc
47 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/proftpd.conf $(1)/etc/
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftp{count,top,who} $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{ftpshut,proftpd} $(1)/usr/sbin/
52 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/in.proftpd $(1)/usr/sbin/
55 $(eval $(call BuildPackage,proftpd))