proftpd: do not install anything into /var
[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   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=ProFTPD FTP server
27   URL:=http://www.proftpd.org/
28 endef
29
30 TARGET_CPPFLAGS += \
31         -I$(LINUX_DIR)/include
32
33 MAKE_FLAGS += \
34         INSTALL_USER=$(shell id -u) \
35         INSTALL_GROUP=$(shell id -g)
36
37 CONFIGURE_ARGS += \
38         --disable-cap
39
40 define Package/proftpd/install
41         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
42         rm -rf \
43                 $(1)/usr/include \
44                 $(1)/usr/share \
45                 $(1)/usr/man \
46                 $(1)/usr/lib/pkgconfig \
47                 $(1)/var
48 endef
49
50 $(eval $(call BuildPackage,proftpd))