diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-10-02 11:29:04 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-10-02 11:29:04 +0200 |
commit | a55fe7e2745a62e4b8b63688d1bac523bfbd08e4 (patch) | |
tree | 1708510fb12fd70f5716a897907e36ae5a738e68 /unix/vncserver | |
parent | 38c6848b30cb1908171f2b4628e345fbf6727b39 (diff) | |
parent | 67b60e645c5519b1b1f54ec1b0c7dbd5dfb04bcf (diff) | |
download | tigervnc-a55fe7e2745a62e4b8b63688d1bac523bfbd08e4.tar.gz tigervnc-a55fe7e2745a62e4b8b63688d1bac523bfbd08e4.zip |
Merge branch 'sysconfdir' of https://github.com/metalefty/tigervnc
Diffstat (limited to 'unix/vncserver')
-rw-r--r-- | unix/vncserver/CMakeLists.txt | 1 | ||||
-rwxr-xr-x | unix/vncserver/vncserver.in | 2 | ||||
-rw-r--r-- | unix/vncserver/vncserver@.service.in | 2 | ||||
-rw-r--r-- | unix/vncserver/vncsession.man.in (renamed from unix/vncserver/vncsession.man) | 10 |
4 files changed, 8 insertions, 7 deletions
diff --git a/unix/vncserver/CMakeLists.txt b/unix/vncserver/CMakeLists.txt index eeb4b7b0..71d5feec 100644 --- a/unix/vncserver/CMakeLists.txt +++ b/unix/vncserver/CMakeLists.txt @@ -4,6 +4,7 @@ target_link_libraries(vncsession ${PAM_LIBS}) configure_file(vncserver@.service.in vncserver@.service @ONLY) configure_file(vncsession-start.in vncsession-start @ONLY) configure_file(vncserver.in vncserver @ONLY) +configure_file(vncsession.man.in vncsession.man @ONLY) install(TARGETS vncsession DESTINATION ${CMAKE_INSTALL_FULL_SBINDIR}) install(FILES tigervnc.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME tigervnc) diff --git a/unix/vncserver/vncserver.in b/unix/vncserver/vncserver.in index 261b258f..66b7cb47 100755 --- a/unix/vncserver/vncserver.in +++ b/unix/vncserver/vncserver.in @@ -38,7 +38,7 @@ $vncUserDir = "$ENV{HOME}/.vnc"; $vncUserConfig = "$vncUserDir/config"; -$vncSystemConfigDir = "/etc/tigervnc"; +$vncSystemConfigDir = "@CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc"; $vncSystemConfigDefaultsFile = "$vncSystemConfigDir/vncserver-config-defaults"; $vncSystemConfigMandatoryFile = "$vncSystemConfigDir/vncserver-config-mandatory"; diff --git a/unix/vncserver/vncserver@.service.in b/unix/vncserver/vncserver@.service.in index 584ecf4b..3e90f098 100644 --- a/unix/vncserver/vncserver@.service.in +++ b/unix/vncserver/vncserver@.service.in @@ -1,7 +1,7 @@ # The vncserver service unit file # # Quick HowTo: -# 1. Add a user mapping to /etc/tigervnc/vncserver.users. +# 1. Add a user mapping to @CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver.users. # 2. Adjust the global or user configuration. See the # vncsession(8) manpage for details. (OPTIONAL) # 3. Run `systemctl enable vncserver@:<display>.service` diff --git a/unix/vncserver/vncsession.man b/unix/vncserver/vncsession.man.in index 21382093..4efad41b 100644 --- a/unix/vncserver/vncsession.man +++ b/unix/vncserver/vncsession.man.in @@ -19,22 +19,22 @@ manager. .SH FILES Several VNC-related files are found in the directory $HOME/.vnc: .TP -/etc/tigervnc/vncserver-config-defaults +@CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver-config-defaults The optional system-wide equivalent of $HOME/.vnc/config. If this file exists and defines options to be passed to Xvnc, they will be used as defaults for users. The user's $HOME/.vnc/config overrides settings configured in this file. The overall configuration file load order is: this file, $HOME/.vnc/config, -and then /etc/tigervnc/vncserver-config-mandatory. None are required to exist. +and then @CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver-config-mandatory. None are required to exist. .TP -/etc/tigervnc/vncserver-config-mandatory +@CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver-config-mandatory The optional system-wide equivalent of $HOME/.vnc/config. If this file exists and defines options to be passed to Xvnc, they will override any of the same options defined in a user's $HOME/.vnc/config. This file offers a mechanism to establish some basic form of system-wide policy. WARNING! There is nothing stopping users from constructing their own vncsession-like script that calls Xvnc directly to bypass any options defined in -/etc/tigervnc/vncserver-config-mandatory. The overall configuration file load -order is: /etc/tigervnc/vncserver-config-defaults, $HOME/.vnc/config, and then +@CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver-config-mandatory. The overall configuration file load +order is: @CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver-config-defaults, $HOME/.vnc/config, and then this file. None are required to exist. .TP $HOME/.vnc/config |