Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions net/starlink-dish/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: MIT
include $(TOPDIR)/rules.mk

PKG_NAME:=starlink-dish
PKG_VERSION:=0.1.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/bigmalloy/starlink-panel/releases/download/v$(PKG_VERSION)/
PKG_HASH:=c4f2d95cdc149a68d7d4b9c6c984e079e7c84b5a9e63fe6b3513378f7a472d26

PKG_MAINTAINER:=Mike Eiberg <eiberg.michael@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Comment thread
BKPepe marked this conversation as resolved.

PKG_BUILD_DEPENDS:=rust/host protobuf/host
Comment thread
BKPepe marked this conversation as resolved.
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16

include $(INCLUDE_DIR)/package.mk
include ../../lang/rust/rust-package.mk

define Package/starlink-dish
SECTION:=net
CATEGORY:=Network
TITLE:=Starlink dish gRPC client
URL:=https://github.com/bigmalloy/starlink-panel
DEPENDS:=$(RUST_ARCH_DEPENDS)
endef

define Package/starlink-dish/description
CLI tool that queries the Starlink dish gRPC API and outputs
JSON telemetry. Supports 'dish' (full status) and 'reboot' commands.
Used by luci-app-starlink-panel; can also be called from scripts.
endef

CARGO_PKG_VARS += PROTOC=$(STAGING_DIR_HOST)/bin/protoc

$(eval $(call RustBinPackage,starlink-dish))
$(eval $(call BuildPackage,starlink-dish))
Loading