svn commit: r310520 - in head/emulators/vboxtool: . files

Pawel Pekala pawel at FreeBSD.org
Wed Jan 16 19:45:12 UTC 2013


Author: pawel
Date: Wed Jan 16 19:45:12 2013
New Revision: 310520
URL: http://svnweb.freebsd.org/changeset/ports/310520

Log:
  - Make port PREFIX-safe (don't hardcode paths with /usr/local)
  - Use REINPLACE_CMD to save few inodes
  
  PR:		ports/174769
  Submitted by:	myself
  Approved by:	maintainer timeout (2 weeks+)

Deleted:
  head/emulators/vboxtool/files/patch-script-vboxtool
  head/emulators/vboxtool/files/patch-script-vboxtoolinit
Modified:
  head/emulators/vboxtool/Makefile

Modified: head/emulators/vboxtool/Makefile
==============================================================================
--- head/emulators/vboxtool/Makefile	Wed Jan 16 19:38:54 2013	(r310519)
+++ head/emulators/vboxtool/Makefile	Wed Jan 16 19:45:12 2013	(r310520)
@@ -1,12 +1,9 @@
-# New ports collection makefile for:	oneko
-# Date created:        14 December 2012
-# Whom:                pjm
-#
+# Created by: pjm
 # $FreeBSD$
-#
 
 PORTNAME=	vboxtool
 PORTVERSION=	0.5
+PORTREVISION=	1
 CATEGORIES=	emulators
 MASTER_SITES=	SF
 
@@ -27,6 +24,12 @@ USE_ZIP=	yes
 
 SAMPLESDIR=	${PREFIX}/share/${PORTNAME}
 
+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};\


More information about the svn-ports-head mailing list