upgrade dnsmasq to latest version, rewrite dnsmasq init script for uci, rename /bin...
[openwrt.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 DEPENDS:=@BROKEN
24 TITLE:=ShFS
25 DESCRIPTION:=\
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 endef
32
33 define KernelPackage/shfs
34 $(call Package/shfs/Default)
35 TITLE+= (kernel module)
36 DESCRIPTION+=\\\
37 \\\
38 This package contains the ShFS kernel module.
39 FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX)
40 SUBMENU:=Filesystems
41 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
42 AUTOLOAD:=$(call AutoLoad,40,shfs)
43 endef
44
45 define Package/shfs-utils
46 $(call Package/shfs/Default)
47 SECTION:=utils
48 CATEGORY:=Utilities
49 DEPENDS+=+kmod-shfs
50 TITLE+= (utilities)
51 DESCRIPTION+=\\\
52 \\\
53 This package contains the ShFS utilities.
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 ARCH="$(LINUX_KARCH)" \
59 CROSS_COMPILE="$(TARGET_CROSS)" \
60 OFLAGS="$(TARGET_CFLAGS)" \
61 CC="$(TARGET_CC)" \
62 LINKER="$(TARGET_CC)" \
63 KERNEL="$(LINUX_VERSION)" \
64 KERNEL_SOURCES="$(LINUX_DIR)" \
65 ROOT="$(PKG_INSTALL_DIR)" \
66 module module-install
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 OFLAGS="$(TARGET_CFLAGS)" \
69 CC="$(TARGET_CC)" \
70 LINKER="$(TARGET_CC)" \
71 KERNEL_SOURCES="$(LINUX_DIR)" \
72 ROOT="$(PKG_INSTALL_DIR)" \
73 utils utils-install
74 endef
75
76 define Package/shfs-utils/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
79 $(INSTALL_DIR) $(1)/sbin
80 $(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
81 endef
82
83 $(eval $(call KernelPackage,shfs))
84 $(eval $(call BuildPackage,shfs-utils))
This page took 0.043308 seconds and 5 git commands to generate.