noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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:=3
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 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/davfs2
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=Filesystem
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>
31 endef
32
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.
38
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.
42
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.
46
47 davfs2 will work with most WebDAV servers needing little or no configuration.
48 endef
49
50 define Package/davfs2/conffiles
51 /etc/davfs2/davfs2.conf
52 endef
53
54 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include # $(ICONV_CFLAGS) $(INTL_CFLAGS)
55
56 TARGET_CPPFLAGS += -D_GNU_SOURCE # $(ICONV_CPFLAGS) $(INTL_CPPFLAGS)
57
58 CONFIGURE_VARS += \
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)
60
61 CONFIGURE_ARGS += --with-neon="$(STAGING_DIR)/usr" --enable-largefile #--with-libintl-prefix=$(INTL_PREFIX) --with-libiconv-prefix=$(ICONV_PREFIX)
62
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
70 endef
71
72 $(eval $(call BuildPackage,davfs2))