install missing ebtables files
[openwrt.git] / openwrt / package / gcom / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gcom
6 PKG_VERSION:=0.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3
9
10 PKG_SOURCE_URL:=http://www.pharscape.org/3G/gcom
11 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz
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,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.prepared:
22 rm -rf $(PKG_BUILD_DIR)
23 mkdir -p $(PKG_BUILD_DIR)
24 # the .tgz is different - no subdirectory, so do this manually
25 zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) -
26 if [ -d ./patches ]; then $(PATCH) $(PKG_BUILD_DIR) ./patches ; fi
27 touch $@
28
29 $(PKG_BUILD_DIR)/.configured:
30 touch $@
31
32 $(PKG_BUILD_DIR)/.built:
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 CC="$(TARGET_CC)" \
35 CFLAGS="$(TARGET_CFLAGS)" \
36 gcom
37 touch $@
38
39 $(IPKG_GCOM):
40 install -d -m0755 $(IDIR_GCOM)/usr/bin
41 install -m0755 $(PKG_BUILD_DIR)/gcom $(IDIR_GCOM)/usr/bin/
42 install -d -m0755 $(IDIR_GCOM)/etc/gcom
43 install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom
44 install -m0644 ./files/setmode.gcom $(IDIR_GCOM)/etc/gcom/setmode.gcom
45 install -m0644 ./files/getcardinfo.gcom $(IDIR_GCOM)/etc/gcom/getcardinfo.gcom
46 install -m0644 ./files/getstrength.gcom $(IDIR_GCOM)/etc/gcom/getstrength.gcom
47 $(RSTRIP) $(IDIR_GCOM)
48 $(IPKG_BUILD) $(IDIR_GCOM) $(PACKAGE_DIR)
49
This page took 0.041401 seconds and 5 git commands to generate.