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
15 PKG_MD5SUM
:=016f49d71bc32eee2b5d11fc1600cfbe
17 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_URL
:=@SF
/shfs
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/kmod-shfs
30 TITLE
:=Shell FileSystem
(ShFS
)
31 DESCRIPTION
:=Shell FileSystem
(ShFS
) \\\
32 ShFS is a simple and easy to use Linux kernel module which allows you to
\\\
33 mount remote filesystems using a plain
shell (SSH
) connection. When using
\\\
34 ShFS
, you can access
all remote files just like the local ones
, only the
\\\
35 access is governed through the transport security of SSH.
36 URL
:=http
://shfs.sourceforge.net
/
37 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
41 rm -rf
$(PKG_INSTALL_DIR
)
42 mkdir
-p
$(PKG_INSTALL_DIR
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 ARCH
="$(LINUX_KARCH)" \
45 CROSS_COMPILE
="$(TARGET_CROSS)" \
46 PATH
="$(TARGET_PATH)" \
47 OFLAGS
="$(TARGET_CFLAGS)" \
49 LINKER
="$(TARGET_CC)" \
50 KERNEL
="$(LINUX_VERSION)" \
51 KERNEL_SOURCES
="$(LINUX_DIR)" \
52 ROOT
="$(PKG_INSTALL_DIR)" \
56 define Package
/kmod-shfs
/install
57 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
58 $(CP
) $(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.
$(LINUX_KMOD_SUFFIX
) \
59 $(1)/lib
/modules
/$(LINUX_VERSION
)/
62 $(eval
$(call BuildPackage
,kmod-shfs
))