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_HASH
:=c9c4e0f0912a782386216b2147eb9c36c47f193b8fcf3d637719e0b9fe7c96e0
18 PKG_FIXUP
:=gettext-version autoreconf
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/nls.mk
27 DEPENDS
=+libneon
+kmod-fuse
+libfuse
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
28 TITLE
:=Mount a WebDAV resource
as a regular file system.
29 URL
:=http
://savannah.nongnu.org
/projects
/davfs2
/
30 MAINTAINER
:=Federico Di Marco
<fededim@gmail.com
>
33 define Package
/davfs2
/description
34 Web Distributed Authoring and Versioning
(WebDAV
), an extension to the HTTP-protocol
,
35 allows authoring of resources on a remote web server.davfs2 provides the ability to
36 access such resources like a typical filesystem
, allowing for use by standard
37 applications with no built-in support for WebDAV.
39 davfs2 is designed to fully integrate into the filesystem semantics of Unix-like
40 systems
(mount
, umount
, etc.
). davfs2 makes mounting by unprivileged users
as easy
41 and secure
as possible.
43 davfs2 does extensive caching to make the file system responsive
, to avoid
44 unnecessary network traffic and to prevent data loss
, and to cope for slow or
45 unreliable connections.
47 davfs2 will work with most WebDAV servers needing little or no configuration.
50 define Package
/davfs2
/conffiles
51 /etc
/davfs2
/davfs2.conf
54 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include # $(ICONV_CFLAGS) $(INTL_CFLAGS)
56 TARGET_CPPFLAGS
+= -D_GNU_SOURCE
# $(ICONV_CPFLAGS) $(INTL_CPPFLAGS)
59 LDFLAGS
="$(TARGET_LDFLAGS) -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib $(if $(INTL_FULL),-lintl) $(if $(ICONV_FULL),-liconv)" #$(INTL_LDFLAGS) $(ICONV_LDFLAGS)
61 CONFIGURE_ARGS
+= --with-neon
="$(STAGING_DIR)/usr" --enable-largefile
#--with-libintl-prefix=$(INTL_PREFIX) --with-libiconv-prefix=$(ICONV_PREFIX)
63 define Package
/davfs2
/install
64 $(INSTALL_DIR
) $(1)/usr
/sbin
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/mount.davfs
$(1)/usr
/sbin
/
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/umount.davfs
$(1)/usr
/sbin
/
67 $(INSTALL_DIR
) $(1)/etc
68 $(INSTALL_DIR
) $(1)/etc
/davfs2
69 $(INSTALL_DATA
) files
/$(PKG_NAME
).conf
$(1)/etc
/davfs2
72 $(eval
$(call BuildPackage
,davfs2
))