Index: head/games/xkobo/Makefile =================================================================== --- head/games/xkobo/Makefile (revision 10316) +++ head/games/xkobo/Makefile (revision 10317) @@ -1,18 +1,20 @@ # New ports collection makefile for: xkobo # Version required: 1.11 # Date created: 18 Jul 1995 # Whom: jkh # -# $Id: Makefile,v 1.9 1997/07/02 07:54:05 tg Exp $ +# $Id: Makefile,v 1.10 1997/11/12 09:57:17 tg Exp $ # DISTNAME= xkobo-1.11 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ ftp://ftp.uoknor.edu/mirrors/X/contrib/games/ MASTER_SITE_SUBDIR= games + +MAINTAINER= ports@FreeBSD.ORG USE_IMAKE= yes ALL_TARGET= xkobo .include Property changes on: head/games/xkobo/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.10 \ No newline at end of property +1.11 \ No newline at end of property Index: head/games/xkobo/files/patch-aa =================================================================== --- head/games/xkobo/files/patch-aa (revision 10316) +++ head/games/xkobo/files/patch-aa (revision 10317) @@ -1,11 +1,28 @@ --- Imakefile.orig Fri Jan 10 03:29:36 1997 -+++ Imakefile Wed Nov 12 10:55:46 1997 ++++ Imakefile Wed Mar 25 20:18:50 1998 @@ -6,7 +6,7 @@ SHIPS = 5 /* RECORDS */ -HSCORE_DIR = /usr/local/games/xkobo-scores +HSCORE_DIR = $(LIBDIR)/xkobo-scores /* C++ COMPILER */ /* CXX = g++ */ +@@ -19,6 +19,7 @@ + #ifdef SECURE_SCOREFILES + /* ADMINISTER OF THE GAME */ + XKOBO_ADMINISTER = games ++DEF_SECURE = -DSECURE_SCOREFILES + #endif + + /* ------------------------------------------------------------------- */ +@@ -35,7 +36,7 @@ + SRCS = $(SRCS1) $(SRCS2) + + DEFINES = -DWAIT_MSEC=$(WAIT_MSEC) -DSHIPS=$(SHIPS) \ +- -DXKOBO_SCORE_DIR=\"$(HSCORE_DIR)\" ++ -DXKOBO_SCORE_DIR=\"$(HSCORE_DIR)\" $(DEF_SECURE) + + CCOPTIONS = #-Wall -g -pg + Property changes on: head/games/xkobo/files/patch-aa ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/games/xkobo/files/patch-ab =================================================================== --- head/games/xkobo/files/patch-ab (nonexistent) +++ head/games/xkobo/files/patch-ab (revision 10317) @@ -0,0 +1,35 @@ +--- xlwin.C.orig Wed Mar 13 17:34:46 1996 ++++ xlwin.C Wed Mar 25 20:16:00 1998 +@@ -21,6 +21,10 @@ + */ + + extern "C"{ ++#ifdef SECURE_SCOREFILES ++#include ++#include ++#endif + #include + #include + } +@@ -105,7 +109,21 @@ + { + if (mask == -1) return; + if (disp == NULL){ ++#ifdef SECURE_SCOREFILES ++ uid_t ruid, euid; ++ ++ /* get ruid */ ++ ruid = getuid(); ++ /* save euid */ ++ euid = geteuid(); ++ /* become normal user to read $HOME/.Xauthority */ ++ (void)seteuid(ruid); ++#endif + disp = XOpenDisplay(disp_string); ++#ifdef SECURE_SCOREFILES ++ /* become XKOBO_ADMINISTER again */ ++ (void)seteuid(euid); ++#endif + if (disp == NULL){ + fprintf(stderr, "xlwin: can't open display\n"); + exit(1); Property changes on: head/games/xkobo/files/patch-ab ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/xkobo/pkg-plist =================================================================== --- head/games/xkobo/pkg-plist (revision 10316) +++ head/games/xkobo/pkg-plist (revision 10317) @@ -1,4 +1,4 @@ bin/xkobo man/man1/xkobo.1.gz -@exec mkdir %D/lib/X11/xkobo-scores && chmod 777 %D/lib/X11/xkobo-scores -@unexec rm -r %D/lib/X11/xkobo-scores +@exec mkdir -p %D/lib/X11/xkobo-scores && chmod 755 %D/lib/X11/xkobo-scores; chown games %D/lib/X11/xkobo-scores +@unexec rm -rf %D/lib/X11/xkobo-scores Property changes on: head/games/xkobo/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property