Added kernel module definitions for Kaweth and Pegasus usb ethernet adapters.
[openwrt/staging/chunkeey.git] / package / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=shfs
13 PKG_VERSION:=0.35
14 PKG_RELEASE:=2
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/shfs
18 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/shfs/Default
23 TITLE:=ShFS
24 DESCRIPTION:=\
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/
30 endef
31
32 define KernelPackage/shfs
33 $(call Package/shfs/Default)
34 TITLE+= (kernel module)
35 DESCRIPTION+=\\\
36 \\\
37 This package contains the ShFS kernel module.
38 FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX)
39 SUBMENU:=Filesystems
40 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
41 AUTOLOAD:=$(call AutoLoad,40,shfs)
42 endef
43
44 define Package/shfs-utils
45 $(call Package/shfs/Default)
46 SECTION:=utils
47 CATEGORY:=Utilities
48 DEPENDS+=+kmod-shfs
49 TITLE+= (utilities)
50 DESCRIPTION+=\\\
51 \\\
52 This package contains the ShFS utilities.
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 ARCH="$(LINUX_KARCH)" \
58 CROSS_COMPILE="$(TARGET_CROSS)" \
59 OFLAGS="$(TARGET_CFLAGS)" \
60 CC="$(TARGET_CC)" \
61 LINKER="$(TARGET_CC)" \
62 KERNEL="$(LINUX_VERSION)" \
63 KERNEL_SOURCES="$(LINUX_DIR)" \
64 ROOT="$(PKG_INSTALL_DIR)" \
65 module module-install
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 OFLAGS="$(TARGET_CFLAGS)" \
68 CC="$(TARGET_CC)" \
69 LINKER="$(TARGET_CC)" \
70 KERNEL_SOURCES="$(LINUX_DIR)" \
71 ROOT="$(PKG_INSTALL_DIR)" \
72 utils utils-install
73 endef
74
75 define Package/shfs-utils/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
78 $(INSTALL_DIR) $(1)/sbin
79 $(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
80 endef
81
82 $(eval $(call KernelPackage,shfs))
83 $(eval $(call BuildPackage,shfs-utils))