Add an hotplug script, so that if network is not up, time will be synchronised (...
[openwrt/svn-archive/archive.git] / utils / 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:=zcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/comgt
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Option/Vodafone 3G/GPRS control tool
28 DESCRIPTION:=\
29 comgt is a scripting language interpreter useful for establishing communications \\\
30 on serial lines and through PCMCIA modems as well as GPRS and 3G datacards.
31 URL:= http://www.pharscape.org/content/view/46/70/
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 gcom
39 endef
40
41 define Package/comgt/install
42 install -d -m0755 $(1)/usr/bin
43 install -m0755 $(PKG_BUILD_DIR)/gcom $(1)/usr/bin/
44 install -d -m0755 $(1)/etc/gcom
45 install -m0644 ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
46 install -m0644 ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
47 install -m0644 ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
48 install -m0644 ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
49 endef
50
51 $(eval $(call BuildPackage,comgt))