Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2015 10:20:16 +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: r404818 - in head/games/xtet42: . files
Message-ID:  <201512301020.tBUAKGTF020151@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Dec 30 10:20:16 2015
New Revision: 404818
URL: https://svnweb.freebsd.org/changeset/ports/404818

Log:
  - Move highscores to /var/games where they belong
  - Simplify Makefile
  - Modernize plist
  
  PR:		205631
  Submitted by:	amdmi3
  Approved by:	gmarco@gufi.org (maintainer)

Deleted:
  head/games/xtet42/files/
Modified:
  head/games/xtet42/Makefile
  head/games/xtet42/pkg-plist

Modified: head/games/xtet42/Makefile
==============================================================================
--- head/games/xtet42/Makefile	Wed Dec 30 10:17:05 2015	(r404817)
+++ head/games/xtet42/Makefile	Wed Dec 30 10:20:16 2015	(r404818)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xtet42
 PORTVERSION=	2.21
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	games
 MASTER_SITES=	http://utenti.gufi.org/~gmarco/files/distfiles/
 
@@ -11,25 +11,20 @@ MAINTAINER=	gmarco@gufi.org
 COMMENT=	One or two player T*tris game
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-setgid=games
+CONFIGURE_ARGS=	--localstatedir=/var/games
 USE_XORG=	x11
+ALL_TARGET=	${PORTNAME}
 
 post-extract:
 	@${CHMOD} -R u+w ${WRKSRC}
 
-post-patch:
-	@${REINPLACE_CMD} -e 's,^hiscoredir.*,hiscoredir=${DATADIR},' \
-		${WRKSRC}/Makefile.in
-
 do-install:
-	${MKDIR} ${STAGEDIR}${DATADIR}
-	@${CHMOD} 775 ${STAGEDIR}${DATADIR}
-	@${STRIP_CMD} ${WRKSRC}/xtet42
-	${INSTALL} -c -m 755 ${WRKSRC}/xtet42 ${STAGEDIR}${PREFIX}/bin
-	${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore ${STAGEDIR}${DATADIR}/.xtet42.hiscore
-	${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore.single ${STAGEDIR}${DATADIR}/.xtet42.hiscore.single
-	${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.unlock
-	${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.log
+	${INSTALL_PROGRAM} ${WRKSRC}/xtet42 ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/xtet42.6 ${STAGEDIR}${MANPREFIX}/man/man6
+	@${MKDIR} ${STAGEDIR}/var/games/xtet42
+	${INSTALL_DATA} ${WRKSRC}/xtet42.hiscore ${STAGEDIR}/var/games/xtet42/.xtet42.hiscore.sample
+	${INSTALL_DATA} ${WRKSRC}/xtet42.hiscore.single ${STAGEDIR}/var/games/xtet42/.xtet42.hiscore.single.sample
+	${INSTALL_DATA} /dev/null ${STAGEDIR}/var/games/xtet42/.xtet42.unlock.sample
+	${INSTALL_DATA} /dev/null ${STAGEDIR}/var/games/xtet42/.xtet42.log.sample
 
 .include <bsd.port.mk>

Modified: head/games/xtet42/pkg-plist
==============================================================================
--- head/games/xtet42/pkg-plist	Wed Dec 30 10:17:05 2015	(r404817)
+++ head/games/xtet42/pkg-plist	Wed Dec 30 10:20:16 2015	(r404818)
@@ -1,12 +1,7 @@
+@(,games,2755) bin/xtet42
 man/man6/xtet42.6.gz
-@group games
-@mode 2755
-bin/xtet42
-@mode 664
-%%DATADIR%%/.xtet42.hiscore.single
-%%DATADIR%%/.xtet42.hiscore
-%%DATADIR%%/.xtet42.unlock
-%%DATADIR%%/.xtet42.log
-@mode 775
-@exec install -d -o root -g games -m 755 %D/%%DATADIR%%
-@dirrm %%DATADIR%%
+@sample(,games,664) /var/games/xtet42/.xtet42.hiscore.sample
+@sample(,games,664) /var/games/xtet42/.xtet42.hiscore.single.sample
+@sample(,games,664) /var/games/xtet42/.xtet42.log.sample
+@sample(,games,664) /var/games/xtet42/.xtet42.unlock.sample
+@dir(,games,775) /var/games/xtet42



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