2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/shfs
18 PKG_MD5SUM
:=016f49d71bc32eee2b5d11fc1600cfbe
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/shfs
/Default
25 ShFS is a simple and easy to use Linux kernel module which allows you to
\\\
26 mount remote filesystems using a plain
shell (SSH
) connection. When using
\\\
27 ShFS
, you can access
all remote files just like the local ones
, only the
\\\
28 access is governed through the transport security of SSH.
29 URL
:=http
://shfs.sourceforge.net
/
32 define KernelPackage
/shfs
33 $(call Package
/shfs
/Default
)
34 TITLE
+= (kernel module
)
37 This package contains the ShFS kernel module.
38 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.
$(LINUX_KMOD_SUFFIX
)
40 AUTOLOAD
:=$(call AutoLoad
,40,shfs
)
43 define Package
/shfs-utils
44 $(call Package
/shfs
/Default
)
51 This package contains the ShFS utilities.
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 ARCH
="$(LINUX_KARCH)" \
57 CROSS_COMPILE
="$(TARGET_CROSS)" \
58 OFLAGS
="$(TARGET_CFLAGS)" \
60 LINKER
="$(TARGET_CC)" \
61 KERNEL
="$(LINUX_VERSION)" \
62 KERNEL_SOURCES
="$(LINUX_DIR)" \
63 ROOT
="$(PKG_INSTALL_DIR)" \
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 OFLAGS
="$(TARGET_CFLAGS)" \
68 LINKER
="$(TARGET_CC)" \
69 KERNEL_SOURCES
="$(LINUX_DIR)" \
70 ROOT
="$(PKG_INSTALL_DIR)" \
74 define Package
/shfs-utils
/install
75 $(INSTALL_DIR
) $(1)/usr
/bin
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/shfs
{,u
}mount
$(1)/usr
/bin
/
77 $(INSTALL_DIR
) $(1)/sbin
78 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/mount.shfs
$(1)/sbin
/
81 $(eval
$(call KernelPackage
,shfs
))
82 $(eval
$(call BuildPackage
,shfs-utils
))