package/libvncserver: install storepasswd tool

storepasswd is used to dynamically create a VNC password on target

Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Christian Hitz
2025-12-07 19:03:24 +01:00
committed by Thomas Petazzoni
parent 707756a5a8
commit 55f1d00e80
2 changed files with 17 additions and 1 deletions

View File

@@ -26,6 +26,11 @@ config BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS
help
Enable WebSocket support (e.g. for noVNC)
config BR2_PACKAGE_LIBVNCSERVER_INSTALL_STOREPASSSWD
bool "storepasswd tool"
help
Install storepasswd tool used to create VNC passwords
endif
comment "libvncserver needs a toolchain w/ dynamic library"

View File

@@ -15,7 +15,6 @@ LIBVNCSERVER_CONF_OPTS = -DWITH_LZO=ON
# only used for examples
LIBVNCSERVER_CONF_OPTS += \
-DWITH_EXAMPLES=OFF \
-DWITH_FFMPEG=OFF \
-DWITH_GTK=OFF \
-DWITH_SDL=OFF \
@@ -90,4 +89,16 @@ else
LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=OFF
endif
ifeq ($(BR2_PACKAGE_LIBVNCSERVER_INSTALL_STOREPASSSWD),y)
LIBVNCSERVER_CONF_OPTS += -DWITH_EXAMPLES=ON
define LIBVNCSERVER_INSTALL_STOREPASSWD
$(INSTALL) -D -m 0755 $(@D)/examples/server/storepasswd \
$(TARGET_DIR)/usr/bin/storepasswd
endef
LIBVNCSERVER_POST_INSTALL_TARGET_HOOKS += LIBVNCSERVER_INSTALL_STOREPASSWD
else
LIBVNCSERVER_CONF_OPTS += -DWITH_EXAMPLES=OFF
endif
$(eval $(cmake-package))