fix compiling on avr32
[openwrt/svn-archive/archive.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.21
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/
16 PKG_MD5SUM:=ca8a8dbec0cd9c8ea92fc4c37ea9c410
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
40 define Package/pure-ftpd/install
41 $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
42 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
43 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptracetest $(1)/usr/sbin
45 $(INSTALL_BIN) $(foreach i,ftpd pw ftpwho mrtginfo pwconvert quotacheck statsdecode uploadscript authd, \
46 $(PKG_BUILD_DIR)/src/pure-$(i)) $(1)/usr/sbin
47 endef
48
49 $(eval $(call BuildPackage,pure-ftpd))