public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-emulation/vmware-server/files: authorization.xml vmware-server-2.rc
@ 2009-05-09 21:55 Mike Auty (ikelos)
  0 siblings, 0 replies; only message in thread
From: Mike Auty (ikelos) @ 2009-05-09 21:55 UTC (permalink / raw
  To: gentoo-commits

ikelos      09/05/09 21:55:17

  Added:                authorization.xml vmware-server-2.rc
  Log:
  Bump vmware-server and add in version 2.
  (Portage version: 2.2_rc33/cvs/Linux i686)

Revision  Changes    Path
1.1                  app-emulation/vmware-server/files/authorization.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/files/authorization.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/files/authorization.xml?rev=1.1&content-type=text/plain

Index: authorization.xml
===================================================================
<ConfigRoot>
  <ACEData id="10">
    <ACEDataEntity>ha-folder-root</ACEDataEntity>
    <ACEDataId>10</ACEDataId>
    <ACEDataIsGroup>true</ACEDataIsGroup>
    <ACEDataPropagate>true</ACEDataPropagate>
    <ACEDataRoleId>-1</ACEDataRoleId>
    <ACEDataUser>vmware</ACEDataUser>
  </ACEData>
  <NextAceId>11</NextAceId>
</ConfigRoot>



1.1                  app-emulation/vmware-server/files/vmware-server-2.rc

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/files/vmware-server-2.rc?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/files/vmware-server-2.rc?rev=1.1&content-type=text/plain

Index: vmware-server-2.rc
===================================================================
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server-2.rc,v 1.1 2009/05/09 21:55:17 ikelos Exp $

depend() {
	need localmount hald
	use logger net
	after samba
}

vmware_prettify() {
	# Yea, the code is ugly but the output is pretty
	state=$1
	waserror=0
	while read line
	do
		# Ignore blank lines		
		[ "${line}" = "" ] && continue

		# Determine what kind of line it is to provide einfo or ewarn etc
		case ${line} in
		*Starting\ *)
			einfo ${line};;
		*Stopping\ *)
			einfo ${line};;
		*VMware\ Virtual\ Infrastructure\ Web\ Access*)
			# Really nasty hack, because for some reason, vmware-server 2 doesn't say done when it mentions this
			einfon "  ${line}"
			echo
			eend 0;;
		*)
			# Strip out anything after the <esc> code
			message=`echo ${line} | sed -e "s/^\(.*\)^[.*$/\1/"`
			einfon "  ${message}"
			echo

			echo ${line} | grep -q done
			status=$?
			eend ${status}

			if [ ${status} -ne 0 ]
			then
				logger -p local0.err -t vmware-${state} "${line}"
				waserror=${status}
			fi
		esac
		continue

	done
	if [ ${waserror} -ne 0 ]
	then
		eend 1 "VMware is not properly configured! See above."
	fi
	return ${waserror}
}

start() {
	test -x /etc/vmware/init.d/vmware || \
		eend 1 "vmware init script not found. Aborting" || return 1

	/etc/vmware/init.d/vmware start | vmware_prettify start
	return $?
}

stop() {
	/etc/vmware/init.d/vmware stop | vmware_prettify stop
	return $?
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-09 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-09 21:55 [gentoo-commits] gentoo-x86 commit in app-emulation/vmware-server/files: authorization.xml vmware-server-2.rc Mike Auty (ikelos)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox