set PATH in rules.mk
[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 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
16
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
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/kmod-shfs
27 SECTION:=drivers
28 CATEGORY:=Drivers
29 DEPENDS:=
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)
38 endef
39
40 define Build/Compile
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 OFLAGS="$(TARGET_CFLAGS)" \
47 CC="$(TARGET_CC)" \
48 LINKER="$(TARGET_CC)" \
49 KERNEL="$(LINUX_VERSION)" \
50 KERNEL_SOURCES="$(LINUX_DIR)" \
51 ROOT="$(PKG_INSTALL_DIR)" \
52 module module-install
53 endef
54
55 define Package/kmod-shfs/install
56 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
57 $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
58 $(1)/lib/modules/$(LINUX_VERSION)/
59 endef
60
61 $(eval $(call BuildPackage,kmod-shfs))
This page took 0.059543 seconds and 5 git commands to generate.