Convert iptables to new packaging style
[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 PKG_SOURCE_DIR :=
14
15 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,KMOD_SHFS,kmod-shfs,$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,SHFS_UTILS,shfs-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 OFLAGS="$(TARGET_CFLAGS)" \
26 CC="$(TARGET_CC)" \
27 LINKER="$(TARGET_CC)" \
28 KERNEL="$(LINUX_VERSION)" \
29 KERNEL_SOURCES="$(LINUX_DIR)" \
30 all
31 mkdir -p $(PKG_INSTALL_DIR)
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 ROOT="$(PKG_INSTALL_DIR)" \
34 KERNEL="$(LINUX_VERSION)" \
35 KERNEL_SOURCES="$(LINUX_DIR)" \
36 install
37 touch $(PKG_BUILD_DIR)/.built
38
39 $(IPKG_KMOD_SHFS):
40 install -m0755 -d $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)
41 cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.o \
42 $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/
43 $(RSTRIP_KMOD) $(IDIR_KMOD_SHFS)
44 $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR)
45
46 $(IPKG_SHFS_UTILS):
47 install -m0755 -d $(IDIR_SHFS_UTILS)/usr/sbin
48 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/shfs{,u}mount $(IDIR_SHFS_UTILS)/usr/sbin/
49 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mount.shfs $(IDIR_SHFS_UTILS)/usr/sbin/
50 $(RSTRIP) $(IDIR_SHFS_UTILS)
51 $(IPKG_BUILD) $(IDIR_SHFS_UTILS) $(PACKAGE_DIR)
52
This page took 0.048162 seconds and 5 git commands to generate.