comgt: add directip proto
[openwrt/svn-archive/archive.git] / package / network / utils / comgt / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=23
13
14 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/comgt
16 PKG_MD5SUM:=db2452680c3d953631299e331daf49ef
17
18 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
21 PKG_CHECK_FORMAT_SECURITY:=0
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/comgt
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Option/Vodafone 3G/GPRS control tool
29 DEPENDS:=+chat
30 URL:=http://www.pharscape.org/comgt.html
31 endef
32
33 define Package/comgt/description
34 comgt is a scripting language interpreter useful for establishing
35 communications on serial lines and through PCMCIA modems as well as GPRS
36 and 3G datacards.
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 LDFLAGS="" \
44 comgt
45 endef
46
47 define Package/comgt/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/comgt $(1)/usr/bin/
50 ln -s comgt $(1)/usr/bin/gcom
51 $(INSTALL_DIR) $(1)/etc/chatscripts
52 $(INSTALL_DATA) ./files/3g.chat $(1)/etc/chatscripts/3g.chat
53 $(INSTALL_DATA) ./files/evdo.chat $(1)/etc/chatscripts/evdo.chat
54 $(INSTALL_DIR) $(1)/etc/gcom
55 $(INSTALL_DATA) ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
56 $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
57 $(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
58 $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
59 $(INSTALL_DATA) ./files/getcarrier.gcom $(1)/etc/gcom/getcarrier.gcom
60 $(INSTALL_DATA) ./files/getcnum.gcom $(1)/etc/gcom/getcnum.gcom
61 $(INSTALL_DATA) ./files/getimsi.gcom $(1)/etc/gcom/getimsi.gcom
62 $(INSTALL_DATA) ./files/directip.gcom $(1)/etc/gcom/directip.gcom
63 $(INSTALL_DATA) ./files/directip-stop.gcom $(1)/etc/gcom/directip-stop.gcom
64 $(INSTALL_DIR) $(1)/etc/hotplug.d/tty
65 $(INSTALL_DATA) ./files/3g.usb $(1)/etc/hotplug.d/tty/30-3g
66 $(INSTALL_DIR) $(1)/lib/netifd/proto
67 $(INSTALL_BIN) ./files/3g.sh $(1)/lib/netifd/proto/3g.sh
68 $(INSTALL_BIN) ./files/directip.sh $(1)/lib/netifd/proto/directip.sh
69 endef
70
71 $(eval $(call BuildPackage,comgt))