From cebc62066bb2f860c86de40c64deb6f42222fe1e Mon Sep 17 00:00:00 2001 From: Rahul Thakur Date: Wed, 3 Apr 2024 15:42:57 +0530 Subject: [PATCH] sshmngr: fix makefile update install section to install files to correct paths --- sshmngr/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sshmngr/Makefile b/sshmngr/Makefile index a735245ca..e3329c0f1 100644 --- a/sshmngr/Makefile +++ b/sshmngr/Makefile @@ -49,14 +49,22 @@ endef endif define Package/sshmngr/install - $(INSTALL_DIR) $(1)/etc/sshmngr - $(CP) ./files/common/* $(1)/ + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_DIR) $(1)/lib/sshmngr + $(INSTALL_DIR) $(1)/usr/libexec/rpcd + + $(INSTALL_DATA) ./files/common/etc/config/sshmngr $(1)/etc/config/ + $(INSTALL_DATA) ./files/common/etc/init.d/sshmngr $(1)/etc/init.d/ + $(INSTALL_DATA) ./files/common/lib/sshmngr/sshmngr.sh $(1)/lib/sshmngr/ + $(INSTALL_BIN) ./files/common/usr/libexec/rpcd/sshmngr $(1)/usr/libexec/rpcd/ ifeq ($(CONFIG_SSHMNGR_BACKEND_DROPBEAR),y) - $(CP) ./files/dropbear_backend/* $(1)/ + $(INSTALL_DATA) ./files/dropbear_backend/lib/sshmngr/backend.sh $(1)/lib/sshmngr/ else - $(CP) ./files/openssh_backend/* $(1)/ + $(INSTALL_DATA) ./files/openssh_backend/lib/sshmngr/backend.sh $(1)/lib/sshmngr/ endif - $(CP) $(PKG_BUILD_DIR)/src/libsshmngr.so $(1)/etc/sshmngr + $(call BbfdmInstallPluginInMicroservice, $(1)/etc/sshmngr,$(PKG_BUILD_DIR)/src/libsshmngr.so) + $(call BbfdmInstallMicroServiceInputFile,$(1),./files/common/etc/sshmngr/input.json) endef $(eval $(call BuildPackage,sshmngr))