more cleanup (make sure to pass TARGET_PATH and not just TARGET_CC)
[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 PATH="$(TARGET_PATH)" \
47 OFLAGS="$(TARGET_CFLAGS)" \
48 CC="$(TARGET_CC)" \
49 LINKER="$(TARGET_CC)" \
50 KERNEL="$(LINUX_VERSION)" \
51 KERNEL_SOURCES="$(LINUX_DIR)" \
52 ROOT="$(PKG_INSTALL_DIR)" \
53 module module-install
54 endef
55
56 define Package/kmod-shfs/install
57 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
58 $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
59 $(1)/lib/modules/$(LINUX_VERSION)/
60 endef
61
62 $(eval $(call BuildPackage,kmod-shfs))
This page took 0.045537 seconds and 5 git commands to generate.