Initial OpenWrt RMM implementation
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rmm-agent
|
||||
PKG_VERSION:=0.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=RMM OpenWrt
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/rmm-agent
|
||||
SECTION:=admin
|
||||
CATEGORY:=Administration
|
||||
TITLE:=OpenWrt RMM agent
|
||||
DEPENDS:=+uclient-fetch +ubus +ip-tiny
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/rmm-agent/description
|
||||
Lightweight outbound polling agent for OpenWrt RMM.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/rmm-agent/conffiles
|
||||
/etc/rmm-agent.conf
|
||||
endef
|
||||
|
||||
define Package/rmm-agent/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) ./files/usr/bin/rmm-agent $(1)/usr/bin/rmm-agent
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/etc/init.d/rmm-agent $(1)/etc/init.d/rmm-agent
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) ./files/etc/rmm-agent.conf $(1)/etc/rmm-agent.conf
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,rmm-agent))
|
||||
Reference in New Issue
Block a user