aboutsummaryrefslogtreecommitdiff
path: root/rmbt-client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rmbt-client/Makefile')
-rw-r--r--rmbt-client/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/rmbt-client/Makefile b/rmbt-client/Makefile
new file mode 100644
index 0000000..0b4740d
--- /dev/null
+++ b/rmbt-client/Makefile
@@ -0,0 +1,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)))