Move complex packages to their own menu
[openwrt.git] / openwrt / package / shfs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := shfs
6 PKG_VERSION := 0.35
7 PKG_RELEASE := 2
8 PKG_MD5SUM := 016f49d71bc32eee2b5d11fc1600cfbe
9
10 PKG_SOURCE_URL := @SF/shfs
11 PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT := zcat
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,KMOD_SHFS,kmod-shfs,$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,SHFS_UTILS,shfs-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 rm -rf $(PKG_INSTALL_DIR)
27 mkdir -p $(PKG_INSTALL_DIR)
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 OFLAGS="$(TARGET_CFLAGS)" \
30 CC="$(TARGET_CC)" \
31 LINKER="$(TARGET_CC)" \
32 KERNEL="$(LINUX_VERSION)" \
33 KERNEL_SOURCES="$(LINUX_DIR)" \
34 all install
35 touch $@
36
37 $(IPKG_KMOD_SHFS):
38 install -m0755 -d $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)
39 cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.o \
40 $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/
41 $(RSTRIP_KMOD) $(IDIR_KMOD_SHFS)
42 $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR)
43
44 $(IPKG_SHFS_UTILS):
45 install -m0755 -d $(IDIR_SHFS_UTILS)/usr/sbin
46 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/shfs{,u}mount $(IDIR_SHFS_UTILS)/usr/sbin/
47 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mount.shfs $(IDIR_SHFS_UTILS)/usr/sbin/
48 $(RSTRIP) $(IDIR_SHFS_UTILS)
49 $(IPKG_BUILD) $(IDIR_SHFS_UTILS) $(PACKAGE_DIR)
50
This page took 0.049723 seconds and 5 git commands to generate.