2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://download.savannah.gnu.org
/releases
/davfs2
/
16 PKG_MD5SUM
:=c9f0b557275b7ec88fec751bf22f30cf
18 PKG_FIXUP
:=gettext-version autoreconf
20 include $(INCLUDE_DIR
)/package.mk
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
>
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.
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.
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.
46 davfs2 will work with most WebDAV servers needing little or no configuration.
49 define Package
/davfs2
/conffiles
50 /etc
/davfs2
/davfs2.conf
53 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
55 TARGET_CPPFLAGS
+= -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS
=64 -D_GNU_SOURCE
58 LDFLAGS
="$(TARGET_LDFLAGS) -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib"
60 CONFIGURE_ARGS
+= --with-neon
="$(STAGING_DIR)/usr"
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
71 $(eval
$(call BuildPackage
,davfs2
))