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.

73 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.6.1
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SAVANNAH/davfs2
  13. PKG_HASH:=ce3eb948ece582a51c934ccb0cc70e659839172717caff173f69a5e2af90c5c0
  14. PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:davfs2:davfs2
  18. PKG_FIXUP:=gettext-version
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/davfs2
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Filesystem
  26. DEPENDS=+libneon +kmod-fuse +libfuse $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. TITLE:=Mount a WebDAV resource as a regular file system.
  28. URL:=https://savannah.nongnu.org/projects/davfs2/
  29. endef
  30. define Package/davfs2/description
  31. Web Distributed Authoring and Versioning (WebDAV), an extension to the HTTP-protocol,
  32. allows authoring of resources on a remote web server.davfs2 provides the ability to
  33. access such resources like a typical filesystem, allowing for use by standard
  34. applications with no built-in support for WebDAV.
  35. davfs2 is designed to fully integrate into the filesystem semantics of Unix-like
  36. systems (mount, umount, etc.). davfs2 makes mounting by unprivileged users as easy
  37. and secure as possible.
  38. davfs2 does extensive caching to make the file system responsive, to avoid
  39. unnecessary network traffic and to prevent data loss, and to cope for slow or
  40. unreliable connections.
  41. davfs2 will work with most WebDAV servers needing little or no configuration.
  42. endef
  43. define Package/davfs2/conffiles
  44. /etc/davfs2/davfs2.conf
  45. /etc/davfs2/secrets
  46. endef
  47. CONFIGURE_ARGS += \
  48. --with-neon="$(STAGING_DIR)/usr" \
  49. --disable-rpath
  50. define Package/davfs2/install
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mount.davfs $(1)/usr/sbin/
  53. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umount.davfs $(1)/usr/sbin/
  54. $(INSTALL_DIR) $(1)/etc
  55. $(INSTALL_DIR) $(1)/etc/davfs2
  56. $(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/davfs2
  57. endef
  58. $(eval $(call BuildPackage,davfs2))