svn commit: r404818 - in head/games/xtet42: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Dec 30 10:20:17 UTC 2015
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 at 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 at 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
- at group games
- at mode 2755
-bin/xtet42
- at mode 664
-%%DATADIR%%/.xtet42.hiscore.single
-%%DATADIR%%/.xtet42.hiscore
-%%DATADIR%%/.xtet42.unlock
-%%DATADIR%%/.xtet42.log
- at mode 775
- at exec install -d -o root -g games -m 755 %D/%%DATADIR%%
- at dirrm %%DATADIR%%
+ at sample(,games,664) /var/games/xtet42/.xtet42.hiscore.sample
+ at sample(,games,664) /var/games/xtet42/.xtet42.hiscore.single.sample
+ at sample(,games,664) /var/games/xtet42/.xtet42.log.sample
+ at sample(,games,664) /var/games/xtet42/.xtet42.unlock.sample
+ at dir(,games,775) /var/games/xtet42
More information about the svn-ports-all
mailing list