usermngr: align with bbfdm

This commit is contained in:
Vivek Kumar Dutta 2024-12-05 16:28:13 +05:30
parent dda4099874
commit b3b7d666b1
2 changed files with 19 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=usermngr PKG_NAME:=usermngr
PKG_VERSION:=1.3.1 PKG_VERSION:=1.3.2
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)
@ -20,6 +20,7 @@ PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/iopsys/bbfdm/bbfdm.mk
MAKE_PATH:=src MAKE_PATH:=src
@ -52,6 +53,7 @@ define Package/usermngr/install
$(INSTALL_BIN) ./files/etc/init.d/users $(1)/etc/init.d/users $(INSTALL_BIN) ./files/etc/init.d/users $(1)/etc/init.d/users
$(INSTALL_BIN) ./files/etc/config/users $(1)/etc/config/users $(INSTALL_BIN) ./files/etc/config/users $(1)/etc/config/users
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/usermngr $(1)/usr/sbin/usermngr $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/usermngr $(1)/usr/sbin/usermngr
$(BBFDM_REGISTER_SERVICES) ./bbfdm_service.json $(1) $(PKG_NAME)
endef endef
$(eval $(call BuildPackage,usermngr)) $(eval $(call BuildPackage,usermngr))

View file

@ -0,0 +1,16 @@
{
"daemon": {
"enable": "1",
"service_name": "usermngr",
"unified_daemon": true,
"services": [
{
"parent_dm": "Device.",
"object": "Users"
}
],
"config": {
"loglevel": "3"
}
}
}