mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2022-2024 IOPSYS Software Solutions AB
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=sshmngr
|
|
PKG_VERSION:=1.0.0
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../bbfdm/bbfdm.mk
|
|
|
|
BACKEND:=+dropbear
|
|
|
|
ifeq ($(CONFIG_SSHMNGR_BACKEND_OPENSSH),y)
|
|
BACKEND:=+openssh-server +openssh-client-utils
|
|
endif
|
|
ifeq ($(CONFIG_SSHMNGR_BACKEND_OPENSSH_PAM),y)
|
|
BACKEND:=+openssh-server-pam +openssh-client-utils
|
|
endif
|
|
ifeq ($(CONFIG_SSHMNGR_BACKEND_DROPBEAR),y)
|
|
BACKEND:=+dropbear
|
|
endif
|
|
$(info "BACKEND IS:")
|
|
$(info $(BACKEND))
|
|
|
|
define Package/sshmngr
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
SUBMENU:=TRx69
|
|
TITLE:=Package to add Device.SSH data model support.
|
|
DEPENDS:=$(BACKEND) +libuci +libubox +libubus +libblobmsg-json +libjson-c +libbbfdm-api
|
|
$(info $(DEPENDS))
|
|
endef
|
|
|
|
define Package/sshmngr/description
|
|
Package to add Device.SSH data model support.
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
define Package/sshmngr/install
|
|
$(INSTALL_DIR) $(1)/etc/sshmngr
|
|
$(CP) ./files/* $(1)/
|
|
$(CP) $(PKG_BUILD_DIR)/libsshmngr.so $(1)/etc/sshmngr
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,sshmngr))
|