Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 1997 00:37:05 -0400 (EDT)
From:      Matthew Hunt <mph@pobox.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/4566: Update of port games/angband
Message-ID:  <199709180437.AAA28284@mph124.rh.psu.edu>
Resent-Message-ID: <199709180440.VAA05720@hub.freebsd.org>

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

>Number:         4566
>Category:       ports
>Synopsis:       Update of port games/angband
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 17 21:40:01 PDT 1997
>Last-Modified:
>Originator:     Matthew Hunt
>Organization:
none
>Release:        FreeBSD 2.2-STABLE i386
>Environment:

>Description:

This pr updates games/angband to version 2.8.2.  It also changes
the game from running suid games to sgid games, since that has become
fashionable of late.

The port has a problem that I do not know how to fix.  The port itself
builds, installs, runs, and deletes just fine.  But if you do a
"make package", the installed package does not set the group-write
bit on the directories of lib/angband that it creates.  Maybe this
is related to my umask (022), but it seems like the directories should be
created with the necessary permissions regardless.

>How-To-Repeat:
>Fix:
	
Apply the following patch ("-p1") in games/angband.  The author has
corrected the problem that I fixed with patch-ab, so that file should
be removed.


diff -r -u -d --new-file /usr/ports/games/angband/Makefile angband/Makefile
--- /usr/ports/games/angband/Makefile	Tue Apr  1 02:07:45 1997
+++ angband/Makefile	Wed Sep 17 23:48:00 1997
@@ -1,13 +1,13 @@
 # New ports collection makefile for:   angband
-# Version required:    2.8.1
+# Version required:    2.8.2
 # Date created:        21 Feb 1997
 # Whom:                Matthew Hunt <mph@pobox.com>
 #
 # $Id: Makefile,v 1.2 1997/03/31 11:27:16 max Exp $
 #
 
-DISTNAME=	angband-281
-PKGNAME=	angband-2.8.1
+DISTNAME=	angband-282
+PKGNAME=	angband-2.8.2
 CATEGORIES=	games
 MASTER_SITES=	ftp://export.andrew.cmu.edu/angband/Source/
 
Binary files /usr/ports/games/angband/angband-2.8.2.tgz and angband/angband-2.8.2.tgz differ
diff -r -u -d --new-file /usr/ports/games/angband/files/md5 angband/files/md5
--- /usr/ports/games/angband/files/md5	Tue Apr  1 02:08:01 1997
+++ angband/files/md5	Wed Sep 17 23:48:34 1997
@@ -1 +1 @@
-MD5 (angband-281.tar.gz) = 925e7244445a84968a436e33d3346411
+MD5 (angband-282.tar.gz) = bcf842af57b0312f620a72f9db23995a
diff -r -u -d --new-file /usr/ports/games/angband/patches/patch-aa angband/patches/patch-aa
--- /usr/ports/games/angband/patches/patch-aa	Tue Apr  1 02:08:01 1997
+++ angband/patches/patch-aa	Thu Sep 18 00:10:52 1997
@@ -1,20 +1,22 @@
---- Makefile.orig	Mon Mar 31 20:08:53 1997
-+++ Makefile	Mon Mar 31 20:08:53 1997
-@@ -0,0 +1,17 @@
+--- Makefile.orig	Wed Sep 17 23:53:36 1997
++++ Makefile	Thu Sep 18 00:08:09 1997
+@@ -0,0 +1,19 @@
 +# My makefile for Angband
 +# Matthew Hunt <mph@pobox.com>
 +
++CFLAGS+=-I/usr/X11R6/include -D"USE_XAW" -D"USE_GCU" -DDEFAULT_PATH=\\\"$(PREFIX)/lib/angband\\\"
++
 +all:	angband
 +
 +angband:
-+	cd src && make
++	cd src && make "CFLAGS=$(CFLAGS)"
 +
 +install: angband
-+	install -c -o games -g bin -m 4755 testing ${PREFIX}/bin/angband
++	install -c -o bin -g games -m 2755 angband ${PREFIX}/bin/angband
 +	mkdir -p ${PREFIX}/lib/angband
 +	(cd lib && tar cf - * ) | (cd ${PREFIX}/lib/angband && tar xf - )
-+#	install -c lib/* ${PREFIX}/lib/angband
-+	/usr/sbin/chown -R games.bin ${PREFIX}/lib/angband
++	/usr/sbin/chown -R bin.games ${PREFIX}/lib/angband
 +	(cd ${PREFIX}/lib/angband && \
-+		/bin/chmod 755 apex bone data edit file help info xtra && \
++		/bin/chmod 775 apex bone data edit file help info xtra && \
 +		/bin/chmod 1777 save user )
++	install -o games -g games -m 664 /dev/null ${PREFIX}/lib/angband/apex/scores.raw
diff -r -u -d --new-file /usr/ports/games/angband/patches/patch-ab angband/patches/patch-ab
--- /usr/ports/games/angband/patches/patch-ab	Mon Mar 31 06:27:23 1997
+++ angband/patches/patch-ab	Wed Dec 31 19:00:00 1969
@@ -1,14 +0,0 @@
---- src/main.c.orig	Sat Mar  8 05:29:05 1997
-+++ src/main.c	Mon Mar 31 20:09:48 1997
-@@ -1,8 +1,9 @@
- /* File: main.c */
- 
--int dlopen() {}
-+/* I have no idea what these lines are here for. -mph */
-+/*int dlopen() {}
- int dlsym() {}
--int dlclose() {}
-+int dlclose() {}*/
- 
- /* Purpose: initialization, main() function and main loop */
- 
diff -r -u -d --new-file /usr/ports/games/angband/patches/patch-ad angband/patches/patch-ad
--- /usr/ports/games/angband/patches/patch-ad	Mon Mar 31 06:27:25 1997
+++ angband/patches/patch-ad	Fri Sep  5 18:24:21 1997
@@ -1,12 +1,30 @@
---- src/Makefile.orig	Sat Mar  8 05:52:32 1997
-+++ src/Makefile	Mon Mar 31 20:10:52 1997
-@@ -136,8 +136,8 @@
+--- src/Makefile.orig	Fri Sep  5 18:01:33 1997
++++ src/Makefile	Fri Sep  5 18:05:13 1997
+@@ -94,7 +94,7 @@
+ #
+ # This is my compiler of choice, it seems to work most everywhere
+ #
+-CC = gcc
++#CC = gcc
+ 
+ 
+ #
+@@ -115,8 +115,8 @@
+ # including "USE_GETCH" and "USE_CURS_SET".  Note that "config.h" will
+ # attempt to "guess" at many of these flags based on your system.
+ #
+-CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU"
+-LIBS = -lX11 -lcurses -ltermcap
++#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU"
++#LIBS = -L/usr/X11-lX11 -lcurses -ltermcap
+ 
+ 
  ##
+@@ -137,7 +137,7 @@
  ## Variation -- Use "main-xaw.c" instead of "main-x11.c"
  ##
--#CFLAGS = -Wall -O1 -pipe -g -D"USE_XAW" -D"USE_GCU"
+ #CFLAGS = -Wall -O1 -pipe -g -D"USE_XAW" -D"USE_GCU"
 -#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap
-+CFLAGS = -Wall -O1 -pipe -I/usr/X11R6/include -DDEFAULT_PATH=\"${PREFIX}/lib/angband/\" -D"USE_XAW" -D"USE_GCU"
 +LIBS = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap
  
  
diff -r -u -d --new-file /usr/ports/games/angband/pkg/PLIST angband/pkg/PLIST
--- /usr/ports/games/angband/pkg/PLIST	Tue Apr  1 02:08:01 1997
+++ angband/pkg/PLIST	Thu Sep 18 00:23:43 1997
@@ -1,4 +1,13 @@
 bin/angband
+lib/angband/apex/scores.raw
+lib/angband/edit/a_info.txt
+lib/angband/edit/e_info.txt
+lib/angband/edit/f_info.txt
+lib/angband/edit/k_info.txt
+lib/angband/edit/r_info.txt
+lib/angband/edit/v_info.txt
+lib/angband/file/dead.txt
+lib/angband/file/news.txt
 lib/angband/help/attack.txt
 lib/angband/help/birth.txt
 lib/angband/help/command.txt
@@ -6,39 +15,45 @@
 lib/angband/help/general.txt
 lib/angband/help/help.hlp
 lib/angband/help/option.txt
+lib/angband/help/playing.txt
 lib/angband/help/version.txt
-lib/angband/edit/a_info.txt
-lib/angband/edit/e_info.txt
-lib/angband/edit/f_info.txt
-lib/angband/edit/k_info.txt
-lib/angband/edit/r_info.txt
-lib/angband/edit/v_info.txt
 lib/angband/user/font-ami.prf
 lib/angband/user/font-ibm.prf
+lib/angband/user/font-mac.prf
 lib/angband/user/font-win.prf
+lib/angband/user/font.prf
 lib/angband/user/graf-ami.prf
+lib/angband/user/graf-mac.prf
 lib/angband/user/graf-win.prf
+lib/angband/user/graf-xxx.prf
+lib/angband/user/graf.prf
 lib/angband/user/pref-acn.prf
-lib/angband/user/graf-mac.prf
-lib/angband/user/xtra-gcu.prf
+lib/angband/user/pref-ami.prf
 lib/angband/user/pref-emx.prf
-lib/angband/user/pref-ibm.prf
-lib/angband/user/pref-lsl.prf
+lib/angband/user/pref-gcu.prf
 lib/angband/user/pref-mac.prf
 lib/angband/user/pref-win.prf
 lib/angband/user/pref-x11.prf
-lib/angband/user/pref-xaw.prf
 lib/angband/user/pref.prf
-lib/angband/file/dead.txt
-lib/angband/file/news.txt
-@exec mkdir -p %D/lib/angband/bone
-@exec mkdir -p %D/lib/angband/data
-@exec mkdir -p %D/lib/angband/info
-@exec mkdir -p %D/lib/angband/save
-@exec mkdir -p %D/lib/angband/xtra
+lib/angband/user/user-mac.prf
+lib/angband/user/user.prf
+@exec mkdir -m 775 -p %D/lib/angband/bone
+@exec mkdir -m 775 -p %D/lib/angband/data
+@exec mkdir -m 775 -p %D/lib/angband/info
+@exec mkdir -m 775 -p %D/lib/angband/save
+@exec mkdir -m 775 -p %D/lib/angband/xtra
+@exec mkdir -m 775 -p %D/lib/angband/apex
+@exec mkdir -m 775 -p %D/lib/angband/edit
+@exec mkdir -m 775 -p %D/lib/angband/file
+@exec mkdir -m 775 -p %D/lib/angband/help
+@exec mkdir -m 775 -p %D/lib/angband/user
 @dirrm lib/angband/bone
 @dirrm lib/angband/data
 @dirrm lib/angband/info
 @dirrm lib/angband/save
 @dirrm lib/angband/xtra
-
+@dirrm lib/angband/apex
+@dirrm lib/angband/edit
+@dirrm lib/angband/file
+@dirrm lib/angband/help
+@dirrm lib/angband/user
>Audit-Trail:
>Unformatted:



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