# 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/files/machines.conf # vboxtool/files/vboxtool.conf # 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= VBoxManage:${PORTSDIR}/emulators/virtualbox-ose\ X bash:${PORTSDIR}/shells/bash X XNO_WRKSUBDIR= yes XNO_BUILD= yes X XGROUPS= vboxusers XUSE_ZIP= yes X XSAMPLESDIR= ${PREFIX}/share/${PORTNAME} X Xdo-install: X @if [ ! -f ${PREFIX}/etc/${PORTNAME} ]; then \ X ${MKDIR} ${PREFIX}/etc/${PORTNAME};\ X fi X ${MKDIR} ${EXAMPLESDIR} X @if [ ! -f ${PREFIX}/etc/${PORTNAME}/vboxtool.conf ]; then \ X ${INSTALL_DATA} ${FILESDIR}/vboxtool.conf ${PREFIX}/etc/${PORTNAME}/vboxtool.conf;\ X fi X @if [ ! -f ${PREFIX}/etc/${PORTNAME}/machines.conf ]; then \ X ${INSTALL_DATA} ${FILESDIR}/machines.conf ${PREFIX}/etc/${PORTNAME}/machines.conf;\ X fi X ${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/script/vboxtool ${PREFIX}/bin/vboxtool X ${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/script/vboxtoolinit ${PREFIX}/etc/rc.d/vboxtoolinit X ${INSTALL_DATA} ${FILESDIR}/machines.conf ${EXAMPLESDIR}/machines.conf X ${INSTALL_DATA} ${FILESDIR}/vboxtool.conf ${EXAMPLESDIR}/vboxtool.conf X.include 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 FreeBSD Xheadless server, published as free and open source software. X XWWW: http://vboxtool.sourceforge.net 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=''" X echo "Note the quotes. Fill for 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 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/files/machines.conf sed 's/^X//' >vboxtool/files/machines.conf << '94df69f88b930dae19fa1e067e750a3d' X##each line in this file is a separate machine X##structure of each line: ,,-|... X##the delimiter ',' between name and VRDE-port only required when configuring X##portforwarding X##do not use spaces before and after the first ',' delimiter X##lines can be commented out by '#'#Ubuntu Desktop #1 X#Ubuntu Desktop #2,3391 X#Ubuntu JeOS #1,3392,2022-22|80-80 X#Ubuntu JeOS #2,,2022-22|80-80 94df69f88b930dae19fa1e067e750a3d echo x - vboxtool/files/vboxtool.conf sed 's/^X//' >vboxtool/files/vboxtool.conf << 'a6a111b15f2d767f180d839c2ebe7e22' Xvbox_user='vboxusers' Xbackup_folder=/home/vboxusers/vboxbackup a6a111b15f2d767f180d839c2ebe7e22 echo x - vboxtool/pkg-plist sed 's/^X//' >vboxtool/pkg-plist << '35631b303aa688b6f927dbd0b42fd8e4' X@unexec if cmp -s %%PREFIX%%/%%EXAMPLESDIR%%/machines.conf %D/etc/vboxtool/machines.conf; then rm -f %D/etc/vboxtool/machines.conf; fi X@unexec if cmp -s %%PREFIX%%/%%EXAMPLESDIR%%/vboxtool.conf %D/etc/vboxtool/vboxtool.conf; then rm -f %D/etc/vboxtool/vboxtool.conf; fi Xbin/vboxtool Xetc/rc.d/vboxtoolinit X%%EXAMPLESDIR%%/machines.conf X%%EXAMPLESDIR%%/vboxtool.conf X@dirrmtry etc/vboxtool X@dirrmtry %%EXAMPLESDIR%% 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