ath5k: do not stop the hardware queues during PAPD calibration, speeds up calibration
[oweals/openwrt.git] / package / comgt / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=comgt
11 PKG_VERSION:=0.32
12 PKG_RELEASE:=9
13
14 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/comgt
16 PKG_MD5SUM:=db2452680c3d953631299e331daf49ef
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
19
20 PKG_CONFIG_DEPENDS:=CONFIG_USE_NETIFD
21 COMGT_VARIANT:=$(if $(CONFIG_USE_NETIFD),netifd,old)
22 FILES_DIR:=./files-$(COMGT_VARIANT)
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/comgt
27   SECTION:=utils
28   CATEGORY:=Utilities
29   TITLE:=Option/Vodafone 3G/GPRS control tool
30   DEPENDS:=+chat
31   URL:=http://www.pharscape.org/comgt.html
32 endef
33
34 define Package/comgt/description
35  comgt is a scripting language interpreter useful for establishing 
36  communications on serial lines and through PCMCIA modems as well as GPRS 
37  and 3G datacards.
38 endef
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 $(TARGET_CONFIGURE_OPTS) \
43                 CFLAGS="$(TARGET_CFLAGS)" \
44                 LDFLAGS="" \
45                 comgt
46 endef
47
48 define Package/comgt/install/netifd
49         $(INSTALL_DIR) $(1)/lib/netifd/proto
50         $(INSTALL_BIN) $(FILES_DIR)/3g.sh $(1)/lib/netifd/proto/3g.sh
51 endef
52
53 define Package/comgt/install/old
54         $(INSTALL_DIR) $(1)/etc/ppp
55         $(INSTALL_BIN) $(FILES_DIR)/3g.connect $(1)/etc/ppp/3g.connect
56         $(INSTALL_DIR) $(1)/lib/network
57         $(INSTALL_BIN) $(FILES_DIR)/3g.sh $(1)/lib/network/3g.sh
58         $(INSTALL_DIR) $(1)/etc/hotplug.d/button
59         $(INSTALL_DATA) $(FILES_DIR)/3g.button $(1)/etc/hotplug.d/button/05-3g
60         $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
61         $(INSTALL_DATA) $(FILES_DIR)/3g.iface $(1)/etc/hotplug.d/iface/05-3g
62 endef
63
64 define Package/comgt/install
65         $(INSTALL_DIR) $(1)/usr/bin
66         $(INSTALL_BIN) $(PKG_BUILD_DIR)/comgt $(1)/usr/bin/
67         ln -s comgt $(1)/usr/bin/gcom
68         $(INSTALL_DIR) $(1)/etc/chatscripts
69         $(INSTALL_DATA) ./files/3g.chat $(1)/etc/chatscripts/3g.chat
70         $(INSTALL_DATA) ./files/evdo.chat $(1)/etc/chatscripts/evdo.chat
71         $(INSTALL_DIR) $(1)/etc/gcom
72         $(INSTALL_DATA) ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
73         $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
74         $(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
75         $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
76         $(INSTALL_DATA) ./files/getcarrier.gcom $(1)/etc/gcom/getcarrier.gcom
77         $(INSTALL_DATA) ./files/getcnum.gcom $(1)/etc/gcom/getcnum.gcom
78         $(INSTALL_DATA) ./files/getimsi.gcom $(1)/etc/gcom/getimsi.gcom
79         $(INSTALL_DIR) $(1)/etc/hotplug.d/tty
80         $(INSTALL_DATA) $(FILES_DIR)/3g.usb $(1)/etc/hotplug.d/tty/30-3g
81         $(Package/comgt/install/$(COMGT_VARIANT))
82 endef
83
84 $(eval $(call BuildPackage,comgt))