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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 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:=sshfs
  9. PKG_VERSION:=2.10
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/libfuse/sshfs/releases/download/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_HASH:=70845dde2d70606aa207db5edfe878e266f9c193f1956dd10ba1b7e9a3c8d101
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. define Package/sshfs
  19. TITLE:=SSHFS
  20. DEPENDS:=+libfuse +fuse-utils +glib2 +libpthread
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Filesystem
  24. URL:=http://fuse.sourceforge.net/
  25. endef
  26. define Package/sshfs/description
  27. Mount remote system over sftp.
  28. endef
  29. CONFIGURE_VARS += \
  30. SSHFS_CFLAGS=" \
  31. -D_FILE_OFFSET_BITS=64 \
  32. -I$(STAGING_DIR)/usr/include/glib-2.0 \
  33. -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
  34. -I$(STAGING_DIR)/usr/include/fuse" \
  35. SSHFS_LIBS=" \
  36. -lglib-2.0 -liconv $(if $(INTL_FULL),-lintl) -lfuse -pthread -lgthread-2.0 \
  37. -L$(STAGING_DIR)/usr/lib"
  38. define Build/Compile
  39. $(MAKE) -C $(PKG_BUILD_DIR) \
  40. ARCH="$(LINUX_KARCH)" \
  41. CROSS_COMPILE="$(TARGET_CROSS)" \
  42. DESTDIR="$(PKG_INSTALL_DIR)" \
  43. all install
  44. endef
  45. define Package/sshfs/install
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
  48. endef
  49. $(eval $(call BuildPackage,sshfs))