summaryrefslogtreecommitdiffstats
path: root/games/yamsweeper
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-09-22 08:56:11 +0000
committermax <max@FreeBSD.org>1996-09-22 08:56:11 +0000
commitf40f82e070382ac5658ea1826f04162a70a1a21d (patch)
tree705eec2e98e1db91ec719c8d6d08d2a2402c2ca6 /games/yamsweeper
parent3c1af8be25589d4bd8e8895ee37661ae465e065b (diff)
downloadFreeBSD-ports-f40f82e070382ac5658ea1826f04162a70a1a21d.zip
FreeBSD-ports-f40f82e070382ac5658ea1826f04162a70a1a21d.tar.gz
Fix to update score file correctly.
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
Diffstat (limited to 'games/yamsweeper')
-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 4f142dd..440e61c 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 4579f14..347de7e 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 914ad0a..55b9db1 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
OpenPOWER on IntegriCloud