Files
rmm-openwrt/agent/package/rmm-agent-go-production/Makefile

41 lines
1.1 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=rmm-agent-go-production
PKG_VERSION:=0.5.0
PKG_RELEASE:=1
PKG_MAINTAINER:=RMM OpenWrt
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/rmm-agent-go-production
SECTION:=admin
CATEGORY:=Administration
TITLE:=OpenWrt RMM Go agent (production replacement)
DEPENDS:=+ca-bundle +ip-tiny +iwinfo +openssh-client +openssh-keygen
endef
define Package/rmm-agent-go-production/description
Go implementation of the outbound polling agent installed as the primary rmm-agent service.
endef
define Build/Compile
[ -x ./files/usr/bin/rmm-agent ]
endef
define Package/rmm-agent-go-production/conffiles
/etc/rmm-agent.conf
endef
define Package/rmm-agent-go-production/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-go-production))