]> git.pld-linux.org Git - packages/tigervnc.git/commitdiff
- chkconfig in post/preun for server
authorMarcin Krol <hawk@tld-linux.org>
Sun, 21 Jul 2013 18:52:54 +0000 (18:52 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 21 Jul 2013 18:52:54 +0000 (18:52 +0000)
tigervnc.spec

index 867ca4a2e1bd392ada4b887dc8adea01263112fd..0104689c02eb7a97804addb55a542dd4858bac4e 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}
@@ -279,6 +280,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 doc/*
This page took 0.186876 seconds and 4 git commands to generate.