2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=cd32663025ed94a0ee623a689989f3c3
16 PKG_SOURCE_URL
:=http
://www.pharscape.org
/3G
/comgt
17 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_VERSION
).tgz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Option
/Vodafone
3G
/GPRS control tool
29 DESCRIPTION
:=Option GlobeTrotter GPRS
/EDGE
/3G
/HSDPA and Vodafone
3G
/GPRS datacard control tool
\\\
31 gcom 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/
37 rm -rf
$(PKG_BUILD_DIR
)
38 mkdir
-p
$(PKG_BUILD_DIR
)
39 zcat
$(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(PKG_BUILD_DIR
) $(TAR_OPTIONS
) -
40 if
[ -d .
/patches
]; then
$(PATCH
) $(PKG_BUILD_DIR
) .
/patches
; fi
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CFLAGS
="$(TARGET_CFLAGS)" \
50 define Package
/comgt
/install
51 install -d
-m0755
$(1)/usr
/bin
52 install -m0755
$(PKG_BUILD_DIR
)/gcom
$(1)/usr
/bin
/
53 install -d
-m0755
$(1)/etc
/gcom
54 install -m0644 .
/files
/setpin.gcom
$(1)/etc
/gcom
/setpin.gcom
55 install -m0644 .
/files
/setmode.gcom
$(1)/etc
/gcom
/setmode.gcom
56 install -m0644 .
/files
/getcardinfo.gcom
$(1)/etc
/gcom
/getcardinfo.gcom
57 install -m0644 .
/files
/getstrength.gcom
$(1)/etc
/gcom
/getstrength.gcom
60 $(eval
$(call BuildPackage
,comgt
))