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
26 ShFS is a simple and easy to use Linux kernel module which allows you to
\\\
27 mount remote filesystems using a plain
shell (SSH
) connection. When using
\\\
28 ShFS
, you can access
all remote files just like the local ones
, only the
\\\
29 access is governed through the transport security of SSH.
30 URL
:=http
://shfs.sourceforge.net
/
33 define KernelPackage
/shfs
34 $(call Package
/shfs
/Default
)
35 TITLE
+= (kernel module
)
38 This package contains the ShFS kernel module.
39 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.
$(LINUX_KMOD_SUFFIX
)
41 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
42 AUTOLOAD
:=$(call AutoLoad
,40,shfs
)
45 define Package
/shfs-utils
46 $(call Package
/shfs
/Default
)
53 This package contains the ShFS utilities.
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 ARCH
="$(LINUX_KARCH)" \
59 CROSS_COMPILE
="$(TARGET_CROSS)" \
60 OFLAGS
="$(TARGET_CFLAGS)" \
62 LINKER
="$(TARGET_CC)" \
63 KERNEL
="$(LINUX_VERSION)" \
64 KERNEL_SOURCES
="$(LINUX_DIR)" \
65 ROOT
="$(PKG_INSTALL_DIR)" \
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 OFLAGS
="$(TARGET_CFLAGS)" \
70 LINKER
="$(TARGET_CC)" \
71 KERNEL_SOURCES
="$(LINUX_DIR)" \
72 ROOT
="$(PKG_INSTALL_DIR)" \
76 define Package
/shfs-utils
/install
77 $(INSTALL_DIR
) $(1)/usr
/bin
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/shfs
{,u
}mount
$(1)/usr
/bin
/
79 $(INSTALL_DIR
) $(1)/sbin
80 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/mount.shfs
$(1)/sbin
/
83 $(eval
$(call KernelPackage
,shfs
))
84 $(eval
$(call BuildPackage
,shfs-utils
))