[package] update freeradius2 to 2.1.4, add more modules (#4930)
[packages.git] / net / pure-ftpd / Makefile
1 #
2 # Copyright (C) 2007 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:=pure-ftpd
11 PKG_VERSION:=1.0.22
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.pureftpd.org/pub/pure-ftpd/releases/snapshots/
16 PKG_MD5SUM:=68308d7143aea092356f910859785e4a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/pure-ftpd
21   SUBMENU:=FTP
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libelf
25   TITLE:=Secure FTP made easy!
26   URL:=http://www.pureftpd.org/project/pure-ftpd
27 endef
28
29 define Package/pure-ftpd/description
30  Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant
31  FTP server. It doesn't provide useless bells and whistles, but focuses on
32  efficiency and ease of use.
33  It provides simple answers to common needs, plus unique  useful features for
34  personal users as well as hosting providers.
35 endef
36
37 CONFIGURE_ARGS += \
38         --with-everything \
39         --with-virtualchroot \
40
41 define Package/pure-ftpd/install
42         $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
43         $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
44         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptracetest $(1)/usr/sbin
46         $(INSTALL_BIN) $(foreach i,ftpd pw ftpwho mrtginfo pwconvert quotacheck statsdecode uploadscript authd, \
47                 $(PKG_BUILD_DIR)/src/pure-$(i)) $(1)/usr/sbin
48 endef
49
50 $(eval $(call BuildPackage,pure-ftpd))