mark pwc & shfs as broken (they don't build on 2.6.19)
[openwrt/svn-archive/archive.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 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/shfs/Default
27 DEPENDS:=@BROKEN
28 TITLE:=ShFS
29 DESCRIPTION:=\
30 ShFS is a simple and easy to use Linux kernel module which allows you to \\\
31 mount remote filesystems using a plain shell (SSH) connection. When using \\\
32 ShFS, you can access all remote files just like the local ones, only the \\\
33 access is governed through the transport security of SSH.
34 URL:=http://shfs.sourceforge.net/
35 endef
36
37 define Package/kmod-shfs
38 $(call Package/shfs/Default)
39 SECTION:=kernel
40 CATEGORY:=Kernel drivers
41 DEPENDS+=
42 TITLE+= (kernel module)
43 DESCRIPTION+=\\\
44 \\\
45 This package contains the ShFS kernel module.
46 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
47 endef
48
49 define Package/shfs-utils
50 $(call Package/shfs/Default)
51 SECTION:=utils
52 CATEGORY:=Utilities
53 DEPENDS+=+kmod-shfs
54 TITLE+= (utilities)
55 DESCRIPTION+=\\\
56 \\\
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/kmod-shfs/install
81 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
82 $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
83 $(1)/lib/modules/$(LINUX_VERSION)/
84 endef
85
86 define Package/shfs-utils/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
89 $(INSTALL_DIR) $(1)/sbin
90 $(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
91 endef
92
93 $(eval $(call BuildPackage,kmod-shfs))
94 $(eval $(call BuildPackage,shfs-utils))