mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
timemngr: added vendor extensions from bbfdm
This commit is contained in:
parent
9463798787
commit
3b05ec8666
3 changed files with 15 additions and 3 deletions
|
|
@ -12,9 +12,15 @@ config TIMEMNGR_NTPD
|
|||
endchoice
|
||||
config TIMEMNGR_MIGRATE_SYSTEM
|
||||
bool "Migrate time definition from system uci"
|
||||
depends on PACKAGE_timemngr
|
||||
default y
|
||||
help
|
||||
Timemngr can be configured with time uci file, or by a migration
|
||||
script to migrate ntp uci definition from system uci to time uci.
|
||||
Enable this option to install the ntp migration script.
|
||||
|
||||
config TIMEMNGR_VENDOR_EXTENSIONS
|
||||
bool "Iopsys vendor extensions for Device.Time."
|
||||
depends on PACKAGE_timemngr
|
||||
default y
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=timemngr
|
||||
PKG_VERSION:=1.0.15
|
||||
PKG_VERSION:=1.0.16
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/timemngr.git
|
||||
PKG_SOURCE_VERSION:=7552c44b6fb4561687e0ce50639fd80396836d51
|
||||
PKG_SOURCE_VERSION:=e6444243470d8131e340dbdddd1a98b1ceb60ce6
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
|
@ -49,6 +49,8 @@ define Build/Prepare
|
|||
endef
|
||||
endif
|
||||
|
||||
TARGET_CFLAGS += -DBBF_VENDOR_PREFIX=\\\"$(CONFIG_BBF_VENDOR_PREFIX)\\\"
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/etc/timemngr/
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
||||
|
|
@ -59,6 +61,9 @@ define Package/$(PKG_NAME)/install
|
|||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/timemngr $(1)/usr/sbin/timemngr
|
||||
$(call BbfdmInstallPluginInMicroservice,$(1)/etc/timemngr,$(PKG_BUILD_DIR)/src/libtimemngr.so)
|
||||
$(call BbfdmInstallMicroServiceInputFile,$(1),./files/etc/timemngr/input.json)
|
||||
ifeq ($(CONFIG_TIMEMNGR_VENDOR_EXTENSIONS),y)
|
||||
$(call BbfdmInstallPluginInMicroservice,$(1)/etc/timemngr/plugins,$(PKG_BUILD_DIR)/src/libtimeext.so)
|
||||
endif
|
||||
$(INSTALL_BIN) ./files/etc/hotplug.d/iface/21-timemngr $(1)/etc/hotplug.d/iface/
|
||||
$(INSTALL_BIN) ./files/etc/hotplug.d/ntp/40-firstUseDate $(1)/etc/hotplug.d/ntp/
|
||||
$(INSTALL_BIN) ./files/etc/init.d/timemngr $(1)/etc/init.d/
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
},
|
||||
"input": {
|
||||
"type": "DotSo",
|
||||
"name": "/etc/timemngr/libtimemngr.so"
|
||||
"name": "/etc/timemngr/libtimemngr.so",
|
||||
"plugin_dir": "/etc/timemngr/plugins/"
|
||||
},
|
||||
"output": {
|
||||
"type": "UBUS",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue