8869c498c44b98e1ae4b3a8b9eb2b38bc5978948
[openwrt/svn-archive/archive.git] / net / shfs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=shfs
12 PKG_VERSION:=0.35
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/shfs
17 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/shfs/Default
22 TITLE:=ShFS
23 URL:=http://shfs.sourceforge.net/
24 endef
25
26 define Package/shfs/Default/description
27 ShFS is a simple and easy to use Linux kernel module which allows you to
28 mount remote filesystems using a plain shell (SSH) connection. When using
29 ShFS, you can access all remote files just like the local ones, only the
30 access is governed through the transport security of SSH.
31 endef
32
33 define KernelPackage/shfs
34 $(call Package/shfs/Default)
35 TITLE+= (kernel module)
36 DEPENDS:=@LINUX_2_4
37 FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX)
38 SUBMENU:=Filesystems
39 AUTOLOAD:=$(call AutoLoad,40,shfs)
40 endef
41
42 define KernelPackage/shfs/description
43 $(call Package/shfs/Default/description)
44 This package contains the ShFS kernel module.
45 endef
46
47 define Package/shfs-utils
48 $(call Package/shfs/Default)
49 SECTION:=utils
50 CATEGORY:=Utilities
51 DEPENDS+=+kmod-shfs
52 TITLE+= (utilities)
53 endef
54
55 define Package/shfs-utils/description
56 $(call Package/shfs/Default/description)
57 This package contains the ShFS utilities.
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 ARCH="$(LINUX_KARCH)" \
63 CROSS_COMPILE="$(TARGET_CROSS)" \
64 OFLAGS="$(TARGET_CFLAGS)" \
65 CC="$(TARGET_CC)" \
66 LINKER="$(TARGET_CC)" \
67 KERNEL="$(LINUX_VERSION)" \
68 KERNEL_SOURCES="$(LINUX_DIR)" \
69 ROOT="$(PKG_INSTALL_DIR)" \
70 module module-install
71 $(MAKE) -C $(PKG_BUILD_DIR) \
72 OFLAGS="$(TARGET_CFLAGS)" \
73 CC="$(TARGET_CC)" \
74 LINKER="$(TARGET_CC)" \
75 KERNEL_SOURCES="$(LINUX_DIR)" \
76 ROOT="$(PKG_INSTALL_DIR)" \
77 utils utils-install
78 endef
79
80 define Package/shfs-utils/install
81 $(INSTALL_DIR) $(1)/usr/bin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
83 $(INSTALL_DIR) $(1)/sbin
84 ln -sf /usr/bin/shfsmount $(1)/sbin/mount.shfs
85 endef
86
87 $(eval $(call KernelPackage,shfs))
88 $(eval $(call BuildPackage,shfs-utils))