build system cleanup. move shared include files into $(TOPDIR)/include, move lzma...
[openwrt.git] / package / shfs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(TOPDIR)/include/kernel.mk
5
6 PKG_NAME:=shfs
7 PKG_VERSION:=0.35
8 PKG_RELEASE:=2
9 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_SOURCE_URL:=@SF/shfs
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/include/package.mk
19
20 define Package/kmod-shfs
21 SECTION:=drivers
22 CATEGORY:=Drivers
23 DEPENDS:=
24 TITLE:=Shell FileSystem (ShFS)
25 DESCRIPTION:=Shell FileSystem (ShFS) \\\
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 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
32 endef
33
34 define Build/Compile
35         rm -rf $(PKG_INSTALL_DIR)
36         mkdir -p $(PKG_INSTALL_DIR)
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 ARCH="$(LINUX_KARCH)" \
39                 CROSS_COMPILE="$(TARGET_CROSS)" \
40                 PATH="$(TARGET_PATH)" \
41                 OFLAGS="$(TARGET_CFLAGS)" \
42                 CC="$(TARGET_CC)" \
43                 LINKER="$(TARGET_CC)" \
44                 KERNEL="$(LINUX_VERSION)" \
45                 KERNEL_SOURCES="$(LINUX_DIR)" \
46                 ROOT="$(PKG_INSTALL_DIR)" \
47                 module module-install
48 endef
49
50 define Package/kmod-shfs/install
51         install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
52         $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
53                 $(1)/lib/modules/$(LINUX_VERSION)/
54 endef
55
56 $(eval $(call BuildPackage,kmod-shfs))