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