[package] fix the instal strip command (follow-up on #5617)
[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.2a
13 PKG_RELEASE:=1
14 PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
15 PKG_MD5SUM:=ad3cbb5db30c5ae39e09b308892392b3
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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 TARGET_CPPFLAGS += \
32         -I$(LINUX_DIR)/include
33
34 MAKE_FLAGS += \
35         INSTALL_USER=$(shell id -u) \
36         INSTALL_GROUP=$(shell id -g)
37
38 CONFIGURE_ARGS += \
39         --disable-cap \
40         --enable-devel \
41
42 define Package/proftpd/install
43         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44         rm -rf \
45                 $(1)/usr/include \
46                 $(1)/usr/share \
47                 $(1)/usr/man \
48                 $(1)/usr/lib/pkgconfig \
49                 $(1)/var
50 endef
51
52 $(eval $(call BuildPackage,proftpd))