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.

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