From owner-svn-ports-head@FreeBSD.ORG Sat Jan 24 17:53:06 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76272259; Sat, 24 Jan 2015 17:53:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 622C1C0A; Sat, 24 Jan 2015 17:53:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0OHr6nH098512; Sat, 24 Jan 2015 17:53:06 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0OHr5Ew098509; Sat, 24 Jan 2015 17:53:05 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201501241753.t0OHr5Ew098509@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sat, 24 Jan 2015 17:53:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r377803 - in head/games/cosmo: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2015 17:53:06 -0000 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