prosody: moved to github
[packages.git] / net / proftpd / Makefile
1 #
2 # Copyright (C) 2009-2014 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:=proftpd
11 PKG_VERSION:=1.3.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
16 PKG_MD5SUM:=aff1bff40e675244d72c4667f203e5bb
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/proftpd
24   SUBMENU:=File Transfer
25   SECTION:=net
26   CATEGORY:=Network
27   TITLE:=ProFTPD FTP server
28   URL:=http://www.proftpd.org/
29   MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
30 endef
31
32 define Package/proftpd/conffiles
33 /etc/proftpd.conf
34 endef
35
36 TARGET_CPPFLAGS += \
37         -I$(LINUX_DIR)/include
38
39 MAKE_FLAGS += \
40         INSTALL_USER=$(shell id -u) \
41         INSTALL_GROUP=$(shell id -g)
42
43 CONFIGURE_ARGS += \
44         --disable-cap \
45         --enable-devel \
46         --disable-auth-pam \
47         ac_cv_header_curses_h=no \
48         ac_cv_header_ncurses_h=no
49
50 define Package/proftpd/install
51         $(INSTALL_DIR) $(1)/etc
52         $(if $(CONFIG_IPV6),,$(SED) 's/^UseIPv6/#UseIPv6/' $(PKG_INSTALL_DIR)/etc/proftpd.conf)
53         $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/proftpd.conf $(1)/etc/
54         $(INSTALL_DIR) $(1)/etc/init.d
55         $(INSTALL_BIN) ./files/proftpd.init $(1)/etc/init.d/proftpd
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftp{count,top,who} $(1)/usr/bin/
58         $(INSTALL_DIR) $(1)/usr/sbin
59         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{ftpshut,proftpd} $(1)/usr/sbin/
60         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/in.proftpd $(1)/usr/sbin/
61 endef
62
63 $(eval $(call BuildPackage,proftpd))