svn commit: r377803 - in head/games/cosmo: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Jan 24 17:53:06 UTC 2015
Author: amdmi3
Date: Sat Jan 24 17:53:04 2015
New Revision: 377803
URL: https://svnweb.freebsd.org/changeset/ports/377803
QAT: https://qat.redports.org/buildarchive/r377803/
Log:
- Move highscore to /var/games, use @sample
Modified:
head/games/cosmo/Makefile
head/games/cosmo/files/patch-Imakefile
head/games/cosmo/pkg-plist
Modified: head/games/cosmo/Makefile
==============================================================================
--- head/games/cosmo/Makefile Sat Jan 24 17:49:36 2015 (r377802)
+++ head/games/cosmo/Makefile Sat Jan 24 17:53:04 2015 (r377803)
@@ -3,7 +3,7 @@
PORTNAME= cosmo
PORTVERSION= 2.0.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://hanzubon.jp/mirrors/Vine/%SUBDIR%/ \
http://ftp.jaist.ac.jp/pub/Linux/Vine/%SUBDIR%/ \
@@ -29,7 +29,8 @@ do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/cosmo
${INSTALL_PROGRAM} ${WRKSRC}/cosmo ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/cosmorc ${STAGEDIR}${PREFIX}/lib/X11/cosmo
- ${ECHO} > ${STAGEDIR}${PREFIX}/lib/X11/cosmo/best.dat
+ ${MKDIR} ${STAGEDIR}/var/games/cosmo
+ ${ECHO_CMD} > ${STAGEDIR}/var/games/cosmo/best.dat.sample
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moon.tif.gz \
${STAGEDIR}${PREFIX}/lib/X11/cosmo
Modified: head/games/cosmo/files/patch-Imakefile
==============================================================================
--- head/games/cosmo/files/patch-Imakefile Sat Jan 24 17:49:36 2015 (r377802)
+++ head/games/cosmo/files/patch-Imakefile Sat Jan 24 17:53:04 2015 (r377803)
@@ -1,5 +1,5 @@
---- Imakefile.orig Sat May 11 16:06:00 1996
-+++ Imakefile Wed Oct 18 08:09:08 2000
+--- Imakefile.orig 1996-05-11 11:06:00.000000000 +0400
++++ Imakefile 2015-01-24 20:35:32.000000000 +0300
@@ -1,21 +1,22 @@
-BINDIR = /usr/local/games
+XCOMM BINDIR = /usr/local/games
@@ -12,8 +12,9 @@
+XCOMM CC = gcc
REGULATE_TIMER = -DREG_TIMER
-DATADIR = $(BINDIR)/cosmodir
+-DATAFILE = $(DATADIR)/best.dat
+DATADIR = $(LIBDIR)/cosmo
- DATAFILE = $(DATADIR)/best.dat
++DATAFILE = /var/games/cosmo/best.dat
PROTO_DEFINES = -DRANK_FILE=\"$(DATAFILE)\" $(PAD) $(REGULATE_TIMER) $(SIGNAL)
-CDEBUGFLAGS = -O2 # -g
+XCOMM CDEBUGFLAGS = -O2 # -g
@@ -28,7 +29,7 @@
hd: hd.c
$(CC) -o hd hd.c
-@@ -27,11 +28,12 @@
+@@ -27,11 +28,10 @@
install::
@if [ -d $(DATADIR) ]; then echo cosmodir exists, not created.;\
@@ -36,10 +37,9 @@
+ else $(MKDIRHIER) $(DATADIR); fi
$(CHMOD) 711 $(DATADIR)
@if [ -f $(DATAFILE) ]; then echo ranking file exists, not created.;\
- else echo > $(DATAFILE); fi
+- else echo > $(DATAFILE); fi
- $(CHMOD) 666 $(DATAFILE)
-+ $(CHOWN) root:games $(DATAFILE)
-+ $(CHMOD) 664 $(DATAFILE)
++ else echo > $(DATAFILE).sample; fi
pack::
$(TAR) cfz cosmo.tgz *.c *.h Imakefile chara.dat *.doc
Modified: head/games/cosmo/pkg-plist
==============================================================================
--- head/games/cosmo/pkg-plist Sat Jan 24 17:49:36 2015 (r377802)
+++ head/games/cosmo/pkg-plist Sat Jan 24 17:53:04 2015 (r377803)
@@ -1,13 +1,5 @@
- at group games
- at mode 2555
-bin/cosmo
- at mode
- at mode 664
-lib/X11/cosmo/best.dat
- at mode
- at group
+@(,games,2555) bin/cosmo
lib/X11/cosmo/cosmorc
lib/X11/cosmo/moon.tif.gz
- at mode 711
- at dirrm lib/X11/cosmo
- at mode
+ at sample(,games,664) /var/games/cosmo/best.dat.sample
+ at dir /var/games/cosmo
More information about the svn-ports-head
mailing list