Verified Commit bd4dd756 authored by Martin Prudek's avatar Martin Prudek
Browse files

package: First version

parent 2b502162
#
## Copyright (C) 2016-2017 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk
PKG_NAME:=lte-metr
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
TITLE:=Speed measurement application
DEPENDS:=+netmetr umbim kmod-usb-net-cdc-mbim kmod-usb-net-sierrawireless kmod-usb-serial-wwan kmod-usb-serial-sierrawireless kmod-usb-serial-qualcomm
endef
define Package/$(PKG_NAME)/description
Application for download speed measurement
which provides additional info about LTE and
GPS parametres.
endef
define Build/Compile
true
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/lte-metr.sh $(1)/usr/bin/lte-metr
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/lteinfo.py $(1)/usr/bin/lteinfo.py
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/netmetr-lte.py $(1)/usr/bin/netmetr-lte
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/lte-metr.init $(1)/etc/init.d/lte-metr
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/lte-metr enable
/etc/init.d/lte-metr restart
}
endef
define Package/$(PKG_NAME)/prerm
#!/bin/sh
/etc/init.d/lte-metr disable
/etc/init.d/lte-metr stop
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
#!/bin/sh /etc/rc.common
# Copyright (C) 2013,2016 CZ.NIC z.s.p.o. (http://www.nic.cz/)
START=99
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command lte-metr
procd_set_param respawn retry=60
procd_close_instance
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment