Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2016 00:20:34 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r405600 - in head/games/xbomb: . files
Message-ID:  <201601090020.u090KYOY040619@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Jan  9 00:20:34 2016
New Revision: 405600
URL: https://svnweb.freebsd.org/changeset/ports/405600

Log:
  - Move highscores to /var/games
  - Modernize plist
  - Add license
  
  PR:		205628
  Submitted by:	amdmi3

Modified:
  head/games/xbomb/Makefile
  head/games/xbomb/files/patch-hiscore.c
  head/games/xbomb/pkg-plist

Modified: head/games/xbomb/Makefile
==============================================================================
--- head/games/xbomb/Makefile	Fri Jan  8 23:41:25 2016	(r405599)
+++ head/games/xbomb/Makefile	Sat Jan  9 00:20:34 2016	(r405600)
@@ -9,6 +9,9 @@ MASTER_SITES=	http://www.gedanken.org.uk
 MAINTAINER=	danilo@FreeBSD.org
 COMMENT=	Minesweeper with a couple of grid types
 
+LICENSE=	GPLv2 # or later
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 USES=		pkgconfig tar:tgz
 USE_XORG=	xaw7
 
@@ -21,9 +24,9 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/xbomb ${STAGEDIR}${PREFIX}/bin/xbomb
 	${INSTALL_MAN} ${WRKSRC}/xbomb.6 ${STAGEDIR}${MANPREFIX}/man/man6/xbomb.6
 	${INSTALL_DATA} ${WRKSRC}/xbomb.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XBomb
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xbomb
-	@${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb3.hi
-	@${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb4.hi
-	@${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb6.hi
+	@${MKDIR} ${STAGEDIR}/var/games/xbomb
+	@${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb3.hi.sample
+	@${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb4.hi.sample
+	@${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb6.hi.sample
 
 .include <bsd.port.mk>

Modified: head/games/xbomb/files/patch-hiscore.c
==============================================================================
--- head/games/xbomb/files/patch-hiscore.c	Fri Jan  8 23:41:25 2016	(r405599)
+++ head/games/xbomb/files/patch-hiscore.c	Sat Jan  9 00:20:34 2016	(r405600)
@@ -5,9 +5,9 @@
  
  /*+ The names of the high score tables. +*/
 -static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"};
-+static char *filenames[NTYPES]={LOCALBASE"/lib/X11/xbomb/xbomb6.hi",
-+                                LOCALBASE"/lib/X11/xbomb/xbomb4.hi",
-+                                LOCALBASE"/lib/X11/xbomb/xbomb3.hi"};
++static char *filenames[NTYPES]={"/var/games/xbomb/xbomb6.hi",
++                                "/var/games/xbomb/xbomb4.hi",
++                                "/var/games/xbomb/xbomb3.hi"};
  
  /*+ The names of the positions in the high score tables. +*/
  static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"};

Modified: head/games/xbomb/pkg-plist
==============================================================================
--- head/games/xbomb/pkg-plist	Fri Jan  8 23:41:25 2016	(r405599)
+++ head/games/xbomb/pkg-plist	Sat Jan  9 00:20:34 2016	(r405600)
@@ -1,15 +1,7 @@
-@group games
-@mode 2755
-bin/xbomb
-@mode
-@group
+@(,games,2755) bin/xbomb
 man/man6/xbomb.6.gz
 lib/X11/app-defaults/XBomb
-@group games
-@mode 664
-lib/X11/xbomb/xbomb3.hi
-lib/X11/xbomb/xbomb4.hi
-lib/X11/xbomb/xbomb6.hi
-@mode
-@group
-@dirrmtry lib/X11/xbomb
+@sample(,games,664) /var/games/xbomb/xbomb3.hi.sample
+@sample(,games,664) /var/games/xbomb/xbomb4.hi.sample
+@sample(,games,664) /var/games/xbomb/xbomb6.hi.sample
+@dir /var/games/xbomb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601090020.u090KYOY040619>