aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/vboxtool/Makefile
blob: 9b225190af736bc55bbafc5180ac3243f4e6373d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Created by: pjm
# $FreeBSD$

PORTNAME=   vboxtool
PORTVERSION=    0.5
PORTREVISION=   1
CATEGORIES= emulators
MASTER_SITES=   SF

MAINTAINER= pierrejacques.mimifir@gmail.com
COMMENT=    Provides effective control of VirtualBox machines

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING.txt

RUN_DEPENDS=    VBoxManage:${PORTSDIR}/emulators/virtualbox-ose\
        bash:${PORTSDIR}/shells/bash

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

USES=       zip
GROUPS=     vboxusers

SAMPLESDIR= ${PREFIX}/share/${PORTNAME}

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e 's|!/bin/bash|!/usr/bin/env bash|' \
        -e 's|/etc/|${PREFIX}&|g' \
        ${WRKSRC}/script/vboxtool \
        ${WRKSRC}/script/vboxtoolinit

do-install:
    @if  [ ! -f ${PREFIX}/etc/${PORTNAME} ]; then \
        ${MKDIR}    ${PREFIX}/etc/${PORTNAME};\
    fi
    ${MKDIR}    ${EXAMPLESDIR}
    @if [ ! -f ${PREFIX}/etc/${PORTNAME}/vboxtool.conf ]; then \
        ${INSTALL_DATA}     ${FILESDIR}/vboxtool.conf   ${PREFIX}/etc/${PORTNAME}/vboxtool.conf;\
    fi
    @if [ ! -f ${PREFIX}/etc/${PORTNAME}/machines.conf ]; then \
        ${INSTALL_DATA}     ${FILESDIR}/machines.conf   ${PREFIX}/etc/${PORTNAME}/machines.conf;\
    fi
    ${INSTALL_SCRIPT} -m 0750   ${WRKSRC}/script/vboxtool       ${PREFIX}/bin/vboxtool
    ${INSTALL_SCRIPT} -m 0750   ${WRKSRC}/script/vboxtoolinit       ${PREFIX}/etc/rc.d/vboxtoolinit
    ${INSTALL_DATA}     ${FILESDIR}/machines.conf   ${EXAMPLESDIR}/machines.conf
    ${INSTALL_DATA}     ${FILESDIR}/vboxtool.conf   ${EXAMPLESDIR}/vboxtool.conf
.include <bsd.port.mk>
/td>3-4/+5 * Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOMEmarcus2007-03-197-43/+78 * Update to 4.2.2.marcus2006-11-212-4/+4 * Presenting GNOME 2.16.1 for FreeBSD. This release represents a massivemarcus2006-10-149-207/+160 * - Fix PLIST: Remove locale dirs not contained in BSD.x11-4.distgarga2006-08-071-0/+2 * Update to 4.0.4.marcus2006-08-012-4/+4 * Update to 4.0.3.marcus2006-07-313-4/+6 * Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-309-20/+222 * Conversion to a single libtool environment.ade2006-02-231-10/+1 * - Bump $PORTREVISION for libexpat shlib bump.kuriyama2006-02-061-0/+2 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Switch to <target>:: convention for both patch-autotools and run-autotools,ade2005-11-191-1/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * Presenting GNOME 2.12 for FreeBSD. The release is chock full of bug fixesmarcus2005-11-053-4/+5 * Revert previous commit since 3.2.18 requires the newer GTK+. It wouldmarcus2005-09-063-4/+4 * Update to 3.2.18.kwm2005-09-063-3/+4 * Update to 3.2.17.mezz2005-08-29