svn commit: r360914 - head/emulators/vboxtool
Baptiste Daroussin
bapt at FreeBSD.org
Sun Jul 6 14:48:48 UTC 2014
Author: bapt
Date: Sun Jul 6 14:48:47 2014
New Revision: 360914
URL: http://svnweb.freebsd.org/changeset/ports/360914
QAT: https://qat.redports.org/buildarchive/r360914/
Log:
Support stage
Use @sample
Modified:
head/emulators/vboxtool/Makefile
head/emulators/vboxtool/pkg-plist
Modified: head/emulators/vboxtool/Makefile
==============================================================================
--- head/emulators/vboxtool/Makefile Sun Jul 6 14:42:15 2014 (r360913)
+++ head/emulators/vboxtool/Makefile Sun Jul 6 14:48:47 2014 (r360914)
@@ -3,7 +3,7 @@
PORTNAME= vboxtool
PORTVERSION= 0.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= SF
@@ -24,7 +24,6 @@ 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' \
@@ -32,18 +31,10 @@ post-patch:
${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
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${FILESDIR}/vboxtool.conf ${STAGEDIR}${ETCDIR}/vboxtool.conf.sample
+ ${INSTALL_DATA} ${FILESDIR}/machines.conf ${STAGEDIR}${ETCDIR}/machines.conf.sample
+ ${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/script/vboxtool ${STAGEDIR}${PREFIX}/bin/vboxtool
+ ${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/script/vboxtoolinit ${STAGEDIR}${PREFIX}/etc/rc.d/vboxtoolinit
+
.include <bsd.port.mk>
Modified: head/emulators/vboxtool/pkg-plist
==============================================================================
--- head/emulators/vboxtool/pkg-plist Sun Jul 6 14:42:15 2014 (r360913)
+++ head/emulators/vboxtool/pkg-plist Sun Jul 6 14:48:47 2014 (r360914)
@@ -1,8 +1,5 @@
- at unexec if cmp -s %%PREFIX%%/%%EXAMPLESDIR%%/machines.conf %D/etc/vboxtool/machines.conf; then rm -f %D/etc/vboxtool/machines.conf; fi
- at unexec if cmp -s %%PREFIX%%/%%EXAMPLESDIR%%/vboxtool.conf %D/etc/vboxtool/vboxtool.conf; then rm -f %D/etc/vboxtool/vboxtool.conf; fi
bin/vboxtool
etc/rc.d/vboxtoolinit
-%%EXAMPLESDIR%%/machines.conf
-%%EXAMPLESDIR%%/vboxtool.conf
+ at sample etc/vboxtool/machines.conf.sample
+ at sample etc/vboxtool/vboxtool.conf.sample
@dirrmtry etc/vboxtool
- at dirrmtry %%EXAMPLESDIR%%
More information about the svn-ports-all
mailing list