[csw-devel] SF.net SVN: gar:[7216] csw/mgar/pkg/tightvnc/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Nov 11 11:22:47 CET 2009


Revision: 7216
          http://gar.svn.sourceforge.net/gar/?rev=7216&view=rev
Author:   wahwah
Date:     2009-11-11 10:22:47 +0000 (Wed, 11 Nov 2009)

Log Message:
-----------
tightvnc: Adding MIGRATE_FILES and INITSMF

Modified Paths:
--------------
    csw/mgar/pkg/tightvnc/trunk/Makefile
    csw/mgar/pkg/tightvnc/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/tightvnc/trunk/files/cswvncserver

Modified: csw/mgar/pkg/tightvnc/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tightvnc/trunk/Makefile	2009-11-11 09:51:59 UTC (rev 7215)
+++ csw/mgar/pkg/tightvnc/trunk/Makefile	2009-11-11 10:22:47 UTC (rev 7216)
@@ -14,6 +14,7 @@
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES  = $(GARNAME)-$(GARVERSION)_unixsrc.tar.bz2
 DISTFILES += vncservers
+DISTFILES += cswvncserver
 PACKAGES = CSWvncs CSWvncv
 CATALOGNAME_CSWvncs = vncserver
 CATALOGNAME_CSWvncv = vncviewer
@@ -27,7 +28,17 @@
 SPKG_DESC_CSWvncs = TightVNC server
 SPKG_DESC_CSWvncv = TightVNC viewer
 
-REQUIRED_PKGS = CSWjpeg CSWtcpwrap CSWzlib
+MIGRATE_FILES_CSWvncs = vncservers
+INITSMF = /etc/opt/csw/init.d/cswvncserver
+
+REQUIRED_PKGS  = CSWbash
+REQUIRED_PKGS += CSWjpeg
+REQUIRED_PKGS += CSWlibice
+REQUIRED_PKGS += CSWlibsm
+REQUIRED_PKGS += CSWlibxext
+REQUIRED_PKGS += CSWtcpwrap
+REQUIRED_PKGS += CSWzlib
+
 PREREQUISITE_PKGS = $(REQUIRED_PKGS)
 
 sysconfdir = /etc/opt/csw
@@ -87,3 +98,5 @@
 	#install -m755 vncserver.init %{buildroot}/etc/rc.d/init.d/vncserver
 	ginstall -d $(DESTDIR)$(sysconfdir)/vncservers
 	ginstall -m 644 $(WORKDIR)/vncservers $(DESTDIR)$(sysconfdir)/vncservers
+	ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/init.d
+	ginstall -m 644 $(FILEDIR)/cswvncserver $(DESTDIR)/etc/opt/csw/init.d

Modified: csw/mgar/pkg/tightvnc/trunk/checksums
===================================================================
--- csw/mgar/pkg/tightvnc/trunk/checksums	2009-11-11 09:51:59 UTC (rev 7215)
+++ csw/mgar/pkg/tightvnc/trunk/checksums	2009-11-11 10:22:47 UTC (rev 7216)
@@ -1,6 +1,7 @@
-38a4eaded4a6418f5547fa57cefb97f9  download/0001-Force-the-use-of-libwrap.patch
-76166d097bf2e70627cb6c87d312bca5  download/0001-Sun-compiler-in-sun.cf.patch
-1264014c1ce47a119a724f17a6e0a768  download/0003-GNU-make-by-default.patch
-c5e9c3e4017caa65d14a0b98858043b9  download/0003-libdix.a-after-libos.a.patch
-397b35faad32d5246b6d44b142f8304f  download/tightvnc-1.3.10_unixsrc.tar.bz2
-56c09be17c17184e96193c13246fd649  download/vncservers
+38a4eaded4a6418f5547fa57cefb97f9  0001-Force-the-use-of-libwrap.patch
+76166d097bf2e70627cb6c87d312bca5  0001-Sun-compiler-in-sun.cf.patch
+1264014c1ce47a119a724f17a6e0a768  0003-GNU-make-by-default.patch
+c5e9c3e4017caa65d14a0b98858043b9  0003-libdix.a-after-libos.a.patch
+824d150d2462568531788b04f239d573  cswvncserver
+397b35faad32d5246b6d44b142f8304f  tightvnc-1.3.10_unixsrc.tar.bz2
+56c09be17c17184e96193c13246fd649  vncservers

Added: csw/mgar/pkg/tightvnc/trunk/files/cswvncserver
===================================================================
--- csw/mgar/pkg/tightvnc/trunk/files/cswvncserver	                        (rev 0)
+++ csw/mgar/pkg/tightvnc/trunk/files/cswvncserver	2009-11-11 10:22:47 UTC (rev 7216)
@@ -0,0 +1,63 @@
+#!/opt/csw/bin/bash
+#
+# $Id$
+#
+# description: Starts and stops vncserver. \
+#	       used to provide remote X administration services.
+
+VNCSERVERS=""
+ARGS=""
+if [ -f /etc/opt/csw/vncservers ] ; then
+   . /etc/opt/csw/vncservers
+fi
+
+prog="VNC server"
+
+start() {
+    echo "Starting $prog: "
+    ulimit -c 0 >/dev/null 2>&1
+    RETVAL=0
+    for display in ${VNCSERVERS}
+    do
+        echo "${display} "
+        su ${display##*:} -c "cd ~ && [ -f .vnc/passwd ] && vncserver ${ARGS} :${display%%:*}"
+        RETVAL=$?
+        [ "$RETVAL" -ne 0 ] && break
+    done
+    [ "$RETVAL" -eq 0 ] && touch /var/spool/locks/vncserver
+}
+
+stop() {
+    echo "Shutting down $prog: "
+    for display in ${VNCSERVERS}
+    do
+        echo "${display} "
+	su ${display##*:} -c "vncserver -kill :${display%%:*} >/dev/null 2>&1"
+        RETVAL=$?
+    done
+    [ "$RETVAL" -eq 0 ] && rm -f /var/spool/locks/vncserver
+}
+
+# See how we were called.
+case "$1" in
+  start)
+	start
+	;;
+  stop)
+	stop
+	;;
+  restart|reload)
+	stop
+	start
+	;;
+  condrestart)
+	if [ -f /var/spool/locks/vncserver ]; then
+	    stop
+	    start
+	fi
+	;;
+  *)
+	echo $"Usage: $0 {start|stop|restart|condrestart}"
+	exit 1
+esac
+


Property changes on: csw/mgar/pkg/tightvnc/trunk/files/cswvncserver
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:keywords
   + Id


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list