aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-09-22 16:56:11 +0800
committermax <max@FreeBSD.org>1996-09-22 16:56:11 +0800
commitf40f82e070382ac5658ea1826f04162a70a1a21d (patch)
tree705eec2e98e1db91ec719c8d6d08d2a2402c2ca6 /games
parent3c1af8be25589d4bd8e8895ee37661ae465e065b (diff)
downloadfreebsd-ports-gnome-f40f82e070382ac5658ea1826f04162a70a1a21d.tar.gz
freebsd-ports-gnome-f40f82e070382ac5658ea1826f04162a70a1a21d.tar.zst
freebsd-ports-gnome-f40f82e070382ac5658ea1826f04162a70a1a21d.zip
Fix to update score file correctly.
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
Diffstat (limited to 'games')
-rw-r--r--games/yamsweeper/Makefile7
-rw-r--r--games/yamsweeper/files/Imakefile20
-rw-r--r--games/yamsweeper/pkg-plist10
3 files changed, 20 insertions, 17 deletions
diff --git a/games/yamsweeper/Makefile b/games/yamsweeper/Makefile
index 4f142dd6bba5..440e61c501c7 100644
--- a/games/yamsweeper/Makefile
+++ b/games/yamsweeper/Makefile
@@ -3,7 +3,7 @@
# Date created: 14 Sep 1996
# Whom: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1996/09/21 16:56:45 max Exp $
#
DISTNAME= yamsweeper-1.9
@@ -20,12 +20,7 @@ pre-configure:
@cp ${FILESDIR}/Imakefile ${WRKSRC}
post-install:
- @chmod 4755 ${PREFIX}/bin/yamsweeper
- @chown games.bin ${PREFIX}/bin/yamsweeper
@chown bin.bin ${PREFIX}/man/man1/yamsweeper.1.gz
- @chmod 755 ${PREFIX}/lib/X11/yamsweeper
- @chown games.bin ${PREFIX}/lib/X11/yamsweeper
- @chown games.bin ${PREFIX}/lib/X11/yamsweeper/yams.log
@chown games.bin ${X11BASE}/lib/X11/app-defaults/Yamsweeper
.include <bsd.port.mk>
diff --git a/games/yamsweeper/files/Imakefile b/games/yamsweeper/files/Imakefile
index 4579f1493a7b..347de7eea371 100644
--- a/games/yamsweeper/files/Imakefile
+++ b/games/yamsweeper/files/Imakefile
@@ -4,7 +4,7 @@
XCOMM Imakefile src for Yamsweeper, created by hirofumi
XCOMM
-XCOMM $Id: Imakefile,v 1.2 1994/11/03 00:18:42 hirofumi Exp hirofumi $
+XCOMM $Id: Imakefile,v 1.1.1.1 1996/09/21 16:56:46 max Exp $
XCOMM
#include "REVISION"
@@ -20,11 +20,13 @@ OBJS = $(SRCS:.c=.o)
YAMSDIR = $(LIBDIR)/yamsweeper
LOGFILE = $(YAMSDIR)/yams.log
-
+SCRFILE = $(YAMSDIR)/yams.hi
+OWNER = games
+GROUP = bin
DEFINES = '-DLOGFILE="$(LOGFILE)"' -DLOG_USER=cppLogUser \ @@\
-DHAS_RANDOM=1 -DNO_FD_SET=0 \ @@\
- -DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(YAMSDIR)/yams.hi"'
+ -DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(SCRFILE)"'
INSTALLDIR= $(BINDIR)
@@ -43,15 +45,27 @@ NormalProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
InstallProgramWithFlags(yamsweeper,$(INSTALLDIR),$(INSTUIDFLAGS))
InstallManPage(yamsweeper,$(MANDIR))
+install::
+ chown $(OWNER).$(GROUP) $(BINDIR)/yamsweeper
+ chmod 4755 $(BINDIR)/yamsweeper
+
+
#if cppLogUser
install::
MakeDir($(YAMSDIR))
+ chown $(OWNER).$(GROUP) $(YAMSDIR)
touch $(LOGFILE)
+ chown $(OWNER).$(GROUP) $(LOGFILE)
+ chmod 644 $(LOGFILE)
#endif /* cppLogUser */
#if cppHighScore
install::
MakeDir($(YAMSDIR))
+ chown $(OWNER).$(GROUP) $(YAMSDIR)
+ touch $(SCRFILE)
+ chown $(OWNER).$(GROUP) $(SCRFILE)
+ chmod 644 $(SCRFILE)
#endif
#else /* cppLogUser || cppHighScore */
diff --git a/games/yamsweeper/pkg-plist b/games/yamsweeper/pkg-plist
index 914ad0a401bf..55b9db1e330f 100644
--- a/games/yamsweeper/pkg-plist
+++ b/games/yamsweeper/pkg-plist
@@ -1,13 +1,7 @@
-@owner games
-@mode 4755
bin/yamsweeper
-@exec mkdir %D/lib/X11/yamsweeper && chmod 755 %D/lib/X11/yamsweeper && chown games.bin %D/lib/X11/yamsweeper
+lib/X11/yamsweeper/yams.hi
lib/X11/yamsweeper/yams.log
@unexec rm -rf %D/lib/X11/yamsweeper
-@mode 444
-@owner bin
man/man1/yamsweeper.1.gz
-@cwd /usr/X11R6
-@mode 444
-@owner games
+@cwd ${X11BASE}
lib/X11/app-defaults/Yamsweeper