mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# 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
|
|
|
|
GROUPS= vboxusers
|
|
USE_ZIP= yes
|
|
|
|
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>
|