Merge pull request #2693 from dibdot/mc
[feed/packages.git] / net / davfs2 / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=davfs2
11 PKG_VERSION:=1.5.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/davfs2/
16 PKG_MD5SUM:=c9f0b557275b7ec88fec751bf22f30cf
17
18 PKG_FIXUP:=gettext-version autoreconf
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/davfs2
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Filesystem
26 DEPENDS=+libneon +kmod-fuse +libfuse
27 TITLE:=Mount a WebDAV resource as a regular file system.
28 URL:=http://savannah.nongnu.org/projects/davfs2/
29 MAINTAINER:=Federico Di Marco <fededim@gmail.com>
30 endef
31
32 define Package/davfs2/description
33 Web Distributed Authoring and Versioning (WebDAV), an extension to the HTTP-protocol,
34 allows authoring of resources on a remote web server.davfs2 provides the ability to
35 access such resources like a typical filesystem, allowing for use by standard
36 applications with no built-in support for WebDAV.
37
38 davfs2 is designed to fully integrate into the filesystem semantics of Unix-like
39 systems (mount, umount, etc.). davfs2 makes mounting by unprivileged users as easy
40 and secure as possible.
41
42 davfs2 does extensive caching to make the file system responsive, to avoid
43 unnecessary network traffic and to prevent data loss, and to cope for slow or
44 unreliable connections.
45
46 davfs2 will work with most WebDAV servers needing little or no configuration.
47 endef
48
49 define Package/davfs2/conffiles
50 /etc/davfs2/davfs2.conf
51 endef
52
53 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
54
55 TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
56
57 CONFIGURE_VARS += \
58 LDFLAGS="$(TARGET_LDFLAGS) -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib"
59
60 CONFIGURE_ARGS += --with-neon="$(STAGING_DIR)/usr"
61
62 define Package/davfs2/install
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mount.davfs $(1)/usr/sbin/
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umount.davfs $(1)/usr/sbin/
66 $(INSTALL_DIR) $(1)/etc
67 $(INSTALL_DIR) $(1)/etc/davfs2
68 $(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/davfs2
69 endef
70
71 $(eval $(call BuildPackage,davfs2))