[package] update vnstat to 1.10 (#6450)
[packages.git] / net / proftpd / Makefile
1 #
2 # Copyright (C) 2009 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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=proftpd
12 PKG_VERSION:=1.3.2b
13 PKG_RELEASE:=1
14 PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
15 PKG_MD5SUM:=0d6777839f37115654ce384841f68131
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_INSTALL=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/proftpd
23   SUBMENU:=FTP
24   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=ProFTPD FTP server
27   URL:=http://www.proftpd.org/
28 endef
29
30 define Package/proftpd/conffiles
31 /etc/proftpd.conf
32 endef
33
34 TARGET_CPPFLAGS += \
35         -I$(LINUX_DIR)/include
36
37 MAKE_FLAGS += \
38         INSTALL_USER=$(shell id -u) \
39         INSTALL_GROUP=$(shell id -g)
40
41 CONFIGURE_ARGS += \
42         --disable-cap \
43         --enable-devel \
44
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/
53 endef
54
55 $(eval $(call BuildPackage,proftpd))