Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2009 11:33:23 +0100 (CET)
From:      Ulrich Spoerlein <uqs@spoerlein.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        miwi@FreeBSD.org
Subject:   ports/140894: [MAINTAINER] games/bsdgames: Unbreak installation
Message-ID:  <200911261033.nAQAXN4n046641@acme.spoerlein.net>
Resent-Message-ID: <200911261040.nAQAe1YU035301@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140894
>Category:       ports
>Synopsis:       [MAINTAINER] games/bsdgames: Unbreak installation
>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:   Thu Nov 26 10:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD acme.spoerlein.net 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat May  9 23:56:36 CEST
>Description:
Fix installation and packaging of most of the BSD games. Their mode was fixed at 0550 which
would only work, if your user happened to be in group games.

Thanks to Lowell Gilbert!

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- bsdgames-2.4_1,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/bsdgames/Makefile,v
retrieving revision 1.23
diff -u -p -u -r1.23 Makefile
--- Makefile	21 Nov 2009 22:00:33 -0000	1.23
+++ Makefile	26 Nov 2009 10:30:39 -0000
@@ -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/ba
 		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
Index: files/patch-Makefile.inc
===================================================================
RCS file: /home/ncvs/ports/games/bsdgames/files/patch-Makefile.inc,v
retrieving revision 1.1
diff -u -p -u -r1.1 patch-Makefile.inc
--- files/patch-Makefile.inc	21 Nov 2009 22:00:33 -0000	1.1
+++ files/patch-Makefile.inc	26 Nov 2009 10:30:39 -0000
@@ -1,5 +1,5 @@
 --- 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: ports/games/bsdgames/files/patch-Makefile.inc,v 1.1 2009/11/21 22:00:33 miwi Exp $
  # $DragonFly: src/games/Makefile.inc,v 1.3 2006/10/08 16:22:34 pavalos Exp $
@@ -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
--- bsdgames-2.4_1,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911261033.nAQAXN4n046641>