ports/170455: [MAINTAINER] games/blockrage: Makefile changed, added files/blockrage.in
nemysis
nemysis at gmx.ch
Tue Aug 7 15:40:02 UTC 2012
>Number: 170455
>Category: ports
>Synopsis: [MAINTAINER] games/blockrage: Makefile changed, added files/blockrage.in
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 07 15:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC
>Description:
Makefile changed:
Added in Makefile for all ${PORTNAME}
Removed unsafe Script blockrage.sh
New Options for Makefile:
SUB_FILES=<--->${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDATA}
.if ${PORT_OPTIONS:MDOCS}
Added file(s):
- files/blockrage.in
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- blockrage-0.2.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/blockrage/Makefile ./Makefile
--- /usr/ports/games/blockrage/Makefile 2012-05-11 17:47:42.000000000 +0200
+++ ./Makefile 2012-08-07 17:25:53.000000000 +0200
@@ -7,6 +7,7 @@
PORTNAME= blockrage
PORTVERSION= 0.2.3
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -15,36 +16,45 @@
LICENSE= GPLv2
+OPTIONS_DEFINE= DATA
+OPTIONS_DEFAULT= DATA
+
GNU_CONFIGURE= yes
ALL_TARGET= ${PORTNAME}
USE_SDL= sdl image mixer
MAKE_JOBS_SAFE= yes
-PLIST_FILES= bin/blockrage
+PLIST_FILES= bin/${PORTNAME}
-MAN6= blockrage.6
+MAN6= ${PORTNAME}.6
PORTDATA= *
PORTDOCS= ChangeLog KNOWN_BUGS README TODO
+SUB_FILES= ${PORTNAME}
+
+.include <bsd.port.options.mk>
+
do-install:
# Scripts
- @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
- ./blockrage\n" > ${WRKDIR}/blockrage.sh
- @${INSTALL_SCRIPT} ${WRKDIR}/blockrage.sh ${PREFIX}/bin/blockrage
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
+
# Executable
${MKDIR} ${DATADIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/blockrage ${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
post-install:
${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
+
# Data
-.for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
+.if ${PORT_OPTIONS:MDATA}
+. for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
-.endfor
+. endfor
+.endif
# Documentations
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff -ruN --exclude=CVS /usr/ports/games/blockrage/files/blockrage.in ./files/blockrage.in
--- /usr/ports/games/blockrage/files/blockrage.in 1970-01-01 01:00:00.000000000 +0100
+++ ./files/blockrage.in 2012-08-07 16:33:17.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "Block Rage: Starting up..."
+cd "%%DATADIR%%"
+./blockrage
--- blockrage-0.2.3_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list