1f7602fc70202ec73f39321b2650388c3ac24cd6
[openwrt/svn-archive/packages.git] / net / proftpd / Makefile
1 #
2 # Copyright (C) 2009-2010 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.2d
12 PKG_RELEASE:=1
13 PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
14 PKG_MD5SUM:=0941935e30199a3f22f7225fe76bc489
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_INSTALL=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/proftpd
22 SUBMENU:=FTP
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=ProFTPD FTP server
26 URL:=http://www.proftpd.org/
27 endef
28
29 define Package/proftpd/conffiles
30 /etc/proftpd.conf
31 endef
32
33 TARGET_CPPFLAGS += \
34 -I$(LINUX_DIR)/include
35
36 MAKE_FLAGS += \
37 INSTALL_USER=$(shell id -u) \
38 INSTALL_GROUP=$(shell id -g)
39
40 CONFIGURE_ARGS += \
41 --disable-cap \
42 --enable-devel \
43
44 define Package/proftpd/install
45 $(INSTALL_DIR) $(1)/etc
46 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/proftpd.conf $(1)/etc/
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftp{count,top,who} $(1)/usr/bin/
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{ftpshut,proftpd} $(1)/usr/sbin/
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/in.proftpd $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,proftpd))