You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=davfs2
  9. PKG_VERSION:=1.5.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/davfs2/
  13. PKG_MD5SUM:=376bc9346454135cba78afacbcb23f86
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/davfs2
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Filesystem
  19. DEPENDS=+libopenssl +libneon +libiconv +libintl +libexpat +kmod-fuse +libfuse
  20. TITLE:=Mount a WebDAV resource as a regular file system.
  21. URL:=http://savannah.nongnu.org/projects/davfs2/
  22. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  23. endef
  24. define Package/davfs2/description
  25. Web Distributed Authoring and Versioning (WebDAV), an extension to the HTTP-protocol,
  26. allows authoring of resources on a remote web server.davfs2 provides the ability to
  27. access such resources like a typical filesystem, allowing for use by standard
  28. applications with no built-in support for WebDAV.
  29. davfs2 is designed to fully integrate into the filesystem semantics of Unix-like
  30. systems (mount, umount, etc.). davfs2 makes mounting by unprivileged users as easy
  31. and secure as possible.
  32. davfs2 does extensive caching to make the file system responsive, to avoid
  33. unnecessary network traffic and to prevent data loss, and to cope for slow or
  34. unreliable connections.
  35. davfs2 will work with most WebDAV servers needing little or no configuration.
  36. endef
  37. define Package/davfs2/conffiles
  38. /etc/davfs2/davfs2.conf
  39. endef
  40. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  41. CONFIGURE_VARS += \
  42. LDFLAGS="$(TARGET_LDFLAGS) -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib"
  43. CONFIGURE_ARGS += --with-neon="$(STAGING_DIR)/usr"
  44. define Package/davfs2/install
  45. $(INSTALL_DIR) $(1)/usr/sbin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mount.davfs $(1)/usr/sbin/
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umount.davfs $(1)/usr/sbin/
  48. $(INSTALL_DIR) $(1)/etc
  49. $(INSTALL_DIR) $(1)/etc/davfs2
  50. $(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/davfs2
  51. endef
  52. $(eval $(call BuildPackage,davfs2))