Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2012 22:38:53 GMT
From:      MIMIFIR Pierre Jacques <pierrejacques.mimifir@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/169211: emulators/vboxtool 
Message-ID:  <201206182238.q5IMcrWa034950@red.freebsd.org>
Resent-Message-ID: <201206182240.q5IMeH1P069213@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         169211
>Category:       ports
>Synopsis:       emulators/vboxtool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 18 22:40:17 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     MIMIFIR Pierre Jacques
>Release:        9.0
>Organization:
>Environment:
FreeBSD sakura 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jun 12 23:23:30 CEST 2012     root@sakura:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
asy control of virtual machines of VirtualBox (virtualization solution) on a Linux headless server. Autostart and autosave on boot/halt. Start, stop, save, backup and show status of sessions in batch mode from command line.

More informations at: http://vboxtool.sourceforge.net/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	vboxtool
#	vboxtool/Makefile
#	vboxtool/pkg-descr
#	vboxtool/files
#	vboxtool/files/patch-script-vboxtool
#	vboxtool/files/patch-script-vboxtoolinit
#	vboxtool/pkg-plist
#	vboxtool/distinfo
#
echo c - vboxtool
mkdir -p vboxtool > /dev/null 2>&1
echo x - vboxtool/Makefile
sed 's/^X//' >vboxtool/Makefile << '0cacd12ce271bf2848d890551ee404d9'
X# New ports collection makefile for:	oneko
X# Date created:        14 December 2012
X# Whom:                pjm
X#
X# $FreeBSD$
X#
X
XPORTNAME=	vboxtool
XPORTVERSION=	0.5
XCATEGORIES=	emulators
XMASTER_SITES=	SF
X
XMAINTAINER=	pierrejacques.mimifir@gmail.com
XCOMMENT=	Provides effective control of VirtualBox machines
X
XLICENSE=	GPLv3
XLICENSE_FILE=	${WRKSRC}//COPYING.txt
X
XRUN_DEPENDS=	${LOCALBASE}/bin/VBoxManage:${PORTSDIR}/emulators/virtualbox-ose
X
XNO_WRKSUBDIR=	yes
XNO_BUILD=	yes
X
XUSER=		vboxuser
XGROUPS=		vboxusers
XUSE_ZIP=	yes
X
Xdo-install:
X	${INSTALL_DATA}	${WRKSRC}/script/vboxtool		${LOCALBASE}/bin/vboxtool
X	${INSTALL_DATA}	${WRKSRC}/script/vboxtoolinit		${LOCALBASE}/etc/rc.d/vboxtoolinit
X	${CHMOD}  0750	${LOCALBASE}/bin/vboxtool
X	${CHMOD}  0750	${LOCALBASE}/etc/rc.d/vboxtoolinit
X	${MKDIR}  	${LOCALBASE}/etc/${PORTNAME}
X	${CHMOD}  0755 	${LOCALBASE}/etc/${PORTNAME}
X	${ECHO}    	>${LOCALBASE}/etc/${PORTNAME}/machines.conf
X	${ECHO}    	>${LOCALBASE}/etc/${PORTNAME}/${PORTNAME}.conf
X.include <bsd.port.mk>
0cacd12ce271bf2848d890551ee404d9
echo x - vboxtool/pkg-descr
sed 's/^X//' >vboxtool/pkg-descr << 'f295b8f2b1af030e196c419ccf7e3bab'
XProvides effective control of virtual machines of VirtualBox 
Xicon-external-link.png (virtualization solution) on a Linux 
Xheadless server, published as free and open source software.
f295b8f2b1af030e196c419ccf7e3bab
echo c - vboxtool/files
mkdir -p vboxtool/files > /dev/null 2>&1
echo x - vboxtool/files/patch-script-vboxtool
sed 's/^X//' >vboxtool/files/patch-script-vboxtool << 'be4dd51f0afb0873f138b33f909d6b05'
X--- script/vboxtool.org	2012-04-29 21:59:59.000000000 +0200
X+++ script/vboxtool	2012-06-16 01:26:32.000000000 +0200
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X #
X #  vboxtool: Utility to retrieve status and control VirtualBox sessions
X #
X@@ -55,7 +55,7 @@
X   echo "  --version|version Version info."
X   echo "  --help|help       This help."
X   echo ""
X-  echo "*Configuration. vboxtool depends on two config files, located in /etc/vboxtool."
X+  echo "*Configuration. vboxtool depends on two config files, located in /usr/local/etc/vboxtool."
X   echo ""
X   echo "Configuration file $machines_conf:"
X   echo "- each line in this file is a separate machine" 
X@@ -84,7 +84,7 @@
X   echo ""  
X   echo "*Start at boot, save on halt. VBoxTool is capable for autostart sessions at"
X   echo "boot time and autosave sessions when host is stopped. This depends on "
X-  echo "/etc/vboxtool/vboxtool.conf. In here, the variable vbox_user must be filled:"
X+  echo "/usr/local/etc/vboxtool/vboxtool.conf. In here, the variable vbox_user must be filled:"
X   echo "vbox_user='<user name>'" 
X   echo "Note the quotes. Fill for <user name> the name of the user under which"
X   echo "sessions are installed/running."  
X@@ -545,8 +545,8 @@
X 
X # Some constants
X version='0.5'
X-machines_conf='/etc/vboxtool/machines.conf'
X-vboxtool_conf='/etc/vboxtool/vboxtool.conf'
X+machines_conf='/usr/local/etc/vboxtool/machines.conf'
X+vboxtool_conf='/usr/local/etc/vboxtool/vboxtool.conf'
X vbox_folder="$HOME/.VirtualBox"   
X log_file="$vbox_folder/vboxtool.log"
X 
be4dd51f0afb0873f138b33f909d6b05
echo x - vboxtool/files/patch-script-vboxtoolinit
sed 's/^X//' >vboxtool/files/patch-script-vboxtoolinit << 'f7ef29882919156a0446ac89d2a15efd'
X--- script/vboxtoolinit.org	2012-04-29 21:59:59.000000000 +0200
X+++ script/vboxtoolinit	2012-06-16 01:26:32.000000000 +0200
X@@ -1,14 +1,14 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X #
X #  vboxtoolinit: Frontend for vboxtool for auto start sessions when booting and save 
X #                sessions when host is stopped
X #
X-#  This is a wrapper for vboxtool. It is to be placed in /etc/init.d to provide auto
X+#  This is a wrapper for vboxtool. It is to be placed in /usr/loca/etc/rc.d to provide auto
X #  start at boot time and stop when the host is halted. Because it's a wrapper, the 
X #  original functions of vboxtool can be executed as usual, without cd'ing to 
X-#  /etc/init.d.
X+#  /usr/local/etc/rc.d.
X #
X-#  Usage: Should be placed in /etc/init.d
X+#  Usage: Should be placed in /usr/local/etc/rc.d
X #
X #  Copyright (C) 2008 Mark Baaijens <mark.baaijens@gmail.com>
X #
X@@ -44,7 +44,7 @@
X start()
X {
X   # 'vboxtoolinit start' maps to 'vboxtool autostart'; when the host boots, all sessions in 
X-  # the config file /etc/vboxtool/machines.conf are started
X+  # the config file /usr/local/etc/vboxtool/machines.conf are started
X   nohup $su_command "vboxtool autostart" > /dev/null
X }
X 
X@@ -62,7 +62,7 @@
X }
X 
X # Some constants
X-config_file='/etc/vboxtool/vboxtool.conf'
X+config_file='/usr/local/etc/vboxtool/vboxtool.conf'
X 
X # Retrieve settings from config file, just by executing the config file.
X # Config file $config_file should look like this:
f7ef29882919156a0446ac89d2a15efd
echo x - vboxtool/pkg-plist
sed 's/^X//' >vboxtool/pkg-plist << '35631b303aa688b6f927dbd0b42fd8e4'
Xbin/vboxtool
Xetc/rc.d/vboxtoolinit
Xetc/vboxtool/machines.conf
Xetc/vboxtool/vboxtool.conf
X@dirrm etc/vboxtool
35631b303aa688b6f927dbd0b42fd8e4
echo x - vboxtool/distinfo
sed 's/^X//' >vboxtool/distinfo << '99d594b71231b85c5e065df371743b2b'
XSHA256 (vboxtool-0.5.zip) = 8c5f006bbb08142d9babfce47db4ba5ba641cfe3aa88b1489e67c219460ace93
XSIZE (vboxtool-0.5.zip) = 26829
99d594b71231b85c5e065df371743b2b
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206182238.q5IMcrWa034950>