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