mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
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:
committed by
Thomas Petazzoni
parent
707756a5a8
commit
55f1d00e80
@@ -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"
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user