diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-11-26 14:45:24 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-11-26 14:45:24 +0000 |
commit | b67c9afbf96924f3c08cdada2efc32bc8a3f30cd (patch) | |
tree | ee62cfb363e93646818ccbaae7f89272f63b4cd8 /games/bsdgames | |
parent | c8c7512bc438a0687123e3a87e37d1f0c655c725 (diff) | |
download | ports-b67c9afbf96924f3c08cdada2efc32bc8a3f30cd.tar.gz ports-b67c9afbf96924f3c08cdada2efc32bc8a3f30cd.zip |
Notes
Diffstat (limited to 'games/bsdgames')
-rw-r--r-- | games/bsdgames/Makefile | 9 | ||||
-rw-r--r-- | games/bsdgames/files/patch-Makefile.inc | 10 |
2 files changed, 15 insertions, 4 deletions
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile index d48b6f6d7695..dda8d4ad9be5 100644 --- a/games/bsdgames/Makefile +++ b/games/bsdgames/Makefile @@ -7,6 +7,7 @@ PORTNAME= bsdgames PORTVERSION= 2.4 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= games # Fetched from http://gitweb.dragonflybsd.org/dragonfly.git/tree/v2.4.0:/games @@ -74,6 +75,10 @@ GAMESPATH_FILES=backgammon/backgammon/backgammon.6 \ phantasia/pathnames.h \ wargames/wargames.sh +# These keep score in /var/games +SGID_BINARIES= atc battlestar canfield/canfield cribbage hack phantasia \ + robots sail snake/snake + post-patch: @for f in ${SHAREPATH_FILES}; do \ ${REINPLACE_CMD} -e 's|/usr/share/games|${PREFIX}/share/games|g' \ @@ -83,6 +88,10 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/games|${PREFIX}/bin|g' \ ${WRKSRC}/$${f}; \ done + @for f in ${SGID_BINARIES}; do \ + ${REINPLACE_CMD} -e 's/HIDEGAME/SGIDGAME/' \ + ${WRKSRC}/$${f}/Makefile; \ + done # Only useful for DESTDIR VARDIR?= /var diff --git a/games/bsdgames/files/patch-Makefile.inc b/games/bsdgames/files/patch-Makefile.inc index ccf013c21d89..5d5f600ed37f 100644 --- a/games/bsdgames/files/patch-Makefile.inc +++ b/games/bsdgames/files/patch-Makefile.inc @@ -1,7 +1,7 @@ --- Makefile.inc.orig 2009-09-24 10:46:30.000000000 +0200 -+++ Makefile.inc 2009-11-04 20:09:49.102229343 +0100 ++++ Makefile.inc 2009-11-25 23:07:35.000000000 +0100 @@ -2,14 +2,40 @@ - # $FreeBSD: /tmp/pcvs/ports/games/bsdgames/files/patch-Makefile.inc,v 1.1 2009-11-21 22:00:33 miwi Exp $ + # $FreeBSD: /tmp/pcvs/ports/games/bsdgames/files/patch-Makefile.inc,v 1.2 2009-11-26 14:45:24 miwi Exp $ # $DragonFly: src/games/Makefile.inc,v 1.3 2006/10/08 16:22:34 pavalos Exp $ -BINDIR?= /usr/games @@ -12,12 +12,14 @@ FILESDIR?= ${SHAREDIR}/games WARNS?= 6 - .if defined(HIDEGAME) +-.if defined(HIDEGAME) -ORIGBINDIR:= ${BINDIR} -BINDIR:= ${BINDIR}/hide -ORIGBINGRP:= ${BINGRP} ++.if defined(SGIDGAME) BINGRP= games - BINMODE= 550 +-BINMODE= 550 ++BINMODE= 2555 .endif + +# cribbed from DragonflyBSD build system |