Remove CVS dir from package
[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_SITE := @SF/shfs
11 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_CAT := zcat
13 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
15
16 I_KMOD_SHFS := $(PACKAGE_DIR)/kmod-shfs_$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 I_SHFS_UTILS := $(PACKAGE_DIR)/shfs-utils_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
18
19
20 $(DL_DIR)/$(PKG_SOURCE_FILE):
21 mkdir -p $(DL_DIR)
22 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
23
24 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
25 mkdir -p $(TOOL_BUILD_DIR)
26 rm -rf $(PKG_BUILD_DIR)
27 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
28 $(PATCH) $(PKG_BUILD_DIR) ./patches
29 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
30 find $(PKG_BUILD_DIR) -name CVS | xargs rm -rf
31 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
32 touch $(PKG_BUILD_DIR)/ipkg/rules
33
34 $(I_KMOD_SHFS) $(I_SHFS_UTILS): $(PKG_BUILD_DIR)/ipkg/rules
35 cd $(PKG_BUILD_DIR); \
36 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
37 ./ipkg/rules package
38
39 $(IPKG_STATE_DIR)/info/kmod-shfs.list: $(I_KMOD_SHFS)
40 $(IPKG) install $(I_KMOD_SHFS)
41
42 $(IPKG_STATE_DIR)/info/shfs-utils.list: $(I_SHFS_UTILS)
43 $(IPKG) install $(I_SHFS_UTILS)
44
45 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
46 prepare: $(PKG_BUILD_DIR)/ipkg/rules
47 compile: $(I_KMOD_SHFS) $(I_SHFS_UTILS)
48 install: $(IPKG_STATE_DIR)/info/kmod-shfs.list $(IPKG_STATE_DIR)/info/shfs-utils.list
49
50 clean:
51 rm -rf $(PKG_BUILD_DIR)
52 rm -f $(I_KMOD_SHFS) $(I_SHFS_UTILS)
53
This page took 0.044226 seconds and 5 git commands to generate.