Date: Sat, 24 Jan 2015 17:53:05 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r377803 - in head/games/cosmo: . files Message-ID: <201501241753.t0OHr5Ew098509@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 @@ -@group games -@mode 2555 -bin/cosmo -@mode -@mode 664 -lib/X11/cosmo/best.dat -@mode -@group +@(,games,2555) bin/cosmo lib/X11/cosmo/cosmorc lib/X11/cosmo/moon.tif.gz -@mode 711 -@dirrm lib/X11/cosmo -@mode +@sample(,games,664) /var/games/cosmo/best.dat.sample +@dir /var/games/cosmo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501241753.t0OHr5Ew098509>