Root/package/comgt/Makefile

1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=comgt
11PKG_VERSION:=0.32
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
15PKG_SOURCE_URL:=@SF/comgt
16PKG_MD5SUM:=db2452680c3d953631299e331daf49ef
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/comgt
23  SECTION:=utils
24  CATEGORY:=Utilities
25  TITLE:=Option/Vodafone 3G/GPRS control tool
26  DEPENDS:=+chat
27  URL:= http://www.pharscape.org/content/view/46/70/
28endef
29
30define Package/comgt/description
31 comgt is a scripting language interpreter useful for establishing
32 communications on serial lines and through PCMCIA modems as well as GPRS
33 and 3G datacards.
34endef
35
36define Build/Compile
37    $(MAKE) -C $(PKG_BUILD_DIR) \
38        $(TARGET_CONFIGURE_OPTS) \
39        CFLAGS="$(TARGET_CFLAGS)" \
40        gcom
41endef
42    
43define Package/comgt/install
44    $(INSTALL_DIR) $(1)/usr/bin
45    $(INSTALL_BIN) $(PKG_BUILD_DIR)/gcom $(1)/usr/bin/
46    $(INSTALL_DIR) $(1)/etc/ppp
47    $(INSTALL_BIN) ./files/3g.connect $(1)/etc/ppp/3g.connect
48    $(INSTALL_DIR) $(1)/etc/chatscripts
49    $(INSTALL_DATA) ./files/3g.chat $(1)/etc/chatscripts/3g.chat
50    $(INSTALL_DATA) ./files/evdo.chat $(1)/etc/chatscripts/evdo.chat
51    $(INSTALL_DIR) $(1)/lib/network
52    $(INSTALL_DATA) ./files/3g.sh $(1)/lib/network/3g.sh
53    $(INSTALL_DIR) $(1)/etc/hotplug.d/button
54    $(INSTALL_DATA) ./files/3g.button $(1)/etc/hotplug.d/button/05-3g
55    $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
56    $(INSTALL_DATA) ./files/3g.iface $(1)/etc/hotplug.d/iface/05-3g
57    $(INSTALL_DIR) $(1)/etc/gcom
58    $(INSTALL_DATA) ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
59    $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
60    $(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
61    $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
62endef
63
64$(eval $(call BuildPackage,comgt))
65

Archive Download this file



interactive