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.

69 lines
2.2 KiB

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