Date: Wed, 16 Jan 2013 19:45:12 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310520 - in head/emulators/vboxtool: . files Message-ID: <201301161945.r0GJjCQn035184@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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};\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301161945.r0GJjCQn035184>