From 6006f71fe0b5a83b4312f70a2b26e43d76df020d Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Thu, 17 Sep 2020 12:14:29 +0200 Subject: [PATCH] Add /usr/bin/vncserver file informing users to read the HOWTO.md file --- tigervnc.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tigervnc.spec b/tigervnc.spec index e4fd712..f5dd48c 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -1,6 +1,6 @@ Name: tigervnc Version: 1.11.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A TigerVNC remote display system %global _hardened_build 1 @@ -224,6 +224,15 @@ install -m644 tigervnc_$s.png %{buildroot}%{_datadir}/icons/hicolor/${s}x$s/apps done popd +# Install a replacement for /usr/bin/vncserver which will tell the user to read the +# HOWTO.md file +cat < %{buildroot}/%{_bindir}/vncserver +#!/bin/bash +echo "vncserver has been replaced by a systemd unit." +echo "Please read /usr/share/doc/tigervnc/HOWTO.md for more information." +EOF +chmod +x %{buildroot}/%{_bindir}/vncserver + %find_lang %{name} %{name}.lang # remove unwanted files @@ -275,6 +284,7 @@ fi %{_unitdir}/vncserver@.service %{_unitdir}/xvnc@.service %{_unitdir}/xvnc.socket +%{_bindir}/vncserver %{_bindir}/x0vncserver %{_sbindir}/vncsession %{_libexecdir}/vncserver @@ -305,6 +315,9 @@ fi %{_datadir}/selinux/packages/vncsession.pp %changelog +* Thu Sep 17 2020 Jan Grulich - 1.11.0-2 +- Add /usr/bin/vncserver file informing users to read the HOWTO.md file + * Wed Sep 09 2020 Jan Grulich - 1.11.0-1 - 1.11.0