aboutsummaryrefslogtreecommitdiff
path: root/rmbt-client/Makefile
blob: 0b4740db5e35e8b91dbfc2e054223daaa37158fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
## 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:=rmbt-client
PKG_VERSION:=1.0
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/lwimmer/rmbt-client.git
PKG_SOURCE:=$(PKG_NAME).tar.gz
PKG_SOURCE_VERSION:=cd544e53c24c35ea36211bf95dc7983a5c7f6a9f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	TITLE:=RMBT speed measurement client in C
	MAINTAINER:=CZ.NIC <packaging@turris.cz>
	DEPENDS:=+libuuid +openssl +libjson-c
endef
define Package/$(PKG_NAME)/description
  Desc
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rmbt $(1)/usr/bin/rmbt-client
endef

#define Package/$(PKG_NAME)/conffiles
#endef

#define Package/$(PKG_NAME)/postinst
##!/bin/sh
#[ -n "$$IPKG_INSTROOT" ] || {
#/etc/init.d/updater enable || true
## Run the uci-defaults now if we are installed at runtime and not flashed
#/etc/uci-defaults/updater && rm /etc/uci-defaults/updater
#}
#endef

$(eval $(call BuildPackage,$(PKG_NAME)))