3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
9 PKG_MD5SUM
:=016f49d71bc32eee2b5d11fc1600cfbe
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE_URL
:=@SF
/shfs
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/kmod-shfs
24 TITLE
:=Shell FileSystem
(ShFS
)
25 DESCRIPTION
:=Shell FileSystem
(ShFS
) \\\
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
/
31 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
35 rm -rf
$(PKG_INSTALL_DIR
)
36 mkdir
-p
$(PKG_INSTALL_DIR
)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 ARCH
="$(LINUX_KARCH)" \
39 CROSS_COMPILE
="$(TARGET_CROSS)" \
40 PATH
="$(TARGET_PATH)" \
41 OFLAGS
="$(TARGET_CFLAGS)" \
43 LINKER
="$(TARGET_CC)" \
44 KERNEL
="$(LINUX_VERSION)" \
45 KERNEL_SOURCES
="$(LINUX_DIR)" \
46 ROOT
="$(PKG_INSTALL_DIR)" \
50 define Package
/kmod-shfs
/install
51 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
52 $(CP
) $(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.
$(LINUX_KMOD_SUFFIX
) \
53 $(1)/lib
/modules
/$(LINUX_VERSION
)/
56 $(eval
$(call BuildPackage
,kmod-shfs
))