]> git.pld-linux.org Git - packages/tigervnc.git/blobdiff - tigervnc.spec
Merge branch 'master' of git://git.pld-linux.org/packages/tigervnc
[packages/tigervnc.git] / tigervnc.spec
index cd9c64bc3f03f95fbe737d10b2e7ccc068553661..af0e08e5db6805d89afd30127074b9bdb7f6b49a 100644 (file)
@@ -119,6 +119,7 @@ gałęzi VNC 4 TightVNC.
 Summary:       VNC X server - TigerVNC version
 Summary(pl.UTF-8):     X serwer VNC - wersja TigerVNC
 Group:         X11/Applications/Networking
+Requires(post,preun):  /sbin/chkconfig
 Requires:      xorg-app-rgb
 # for vncpasswd tool
 Requires:      %{name}-utils = %{version}-%{release}
@@ -281,6 +282,16 @@ rm -rf $RPM_BUILD_ROOT
 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
 %update_icon_cache hicolor
 
+%post server
+/sbin/chkconfig --add vncserver
+%service vncserver restart "VNC server"
+
+%preun server
+if [ "$1" = "0" ]; then
+       %service vncserver stop
+       /sbin/chkconfig --del vncserver
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README.txt doc/*
This page took 0.071091 seconds and 4 git commands to generate.