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.

62 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.8
  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:=7f689174d02e6b7e2631306fda4fb8e6b4483102d1bce82b3cdafba33369ad22
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/sshfs
  20. TITLE:=SSHFS
  21. DEPENDS:=+libfuse +fuse-utils +glib2 +libpthread
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Filesystem
  25. URL:=http://fuse.sourceforge.net/
  26. endef
  27. define Package/sshfs/description
  28. Mount remote system over sftp.
  29. endef
  30. CONFIGURE_VARS += \
  31. SSHFS_CFLAGS=" \
  32. -D_FILE_OFFSET_BITS=64 \
  33. -I$(STAGING_DIR)/usr/include/glib-2.0 \
  34. -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
  35. -I$(STAGING_DIR)/usr/include/fuse" \
  36. SSHFS_LIBS=" \
  37. -lglib-2.0 -liconv $(if $(INTL_FULL),-lintl) -lfuse -pthread -lgthread-2.0 \
  38. -L$(STAGING_DIR)/usr/lib"
  39. define Build/Compile
  40. $(MAKE) -C $(PKG_BUILD_DIR) \
  41. ARCH="$(LINUX_KARCH)" \
  42. CROSS_COMPILE="$(TARGET_CROSS)" \
  43. DESTDIR="$(PKG_INSTALL_DIR)" \
  44. all install
  45. endef
  46. define Package/sshfs/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,sshfs))