svn commit: r340328 - head/games/nsnake

John Marino marino at FreeBSD.org
Sun Jan 19 18:16:47 UTC 2014


Author: marino
Date: Sun Jan 19 18:16:46 2014
New Revision: 340328
URL: http://svnweb.freebsd.org/changeset/ports/340328
QAT: https://qat.redports.org/buildarchive/r340328/

Log:
  games/nsnake: games/nsnake: fix permissions and fix score file
  
  Support stage too.
  
  PR:		ports/184920
  Approved by:	maintainer timeout

Added:
  head/games/nsnake/pkg-plist   (contents, props changed)
Modified:
  head/games/nsnake/Makefile

Modified: head/games/nsnake/Makefile
==============================================================================
--- head/games/nsnake/Makefile	Sun Jan 19 18:04:35 2014	(r340327)
+++ head/games/nsnake/Makefile	Sun Jan 19 18:16:46 2014	(r340328)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nsnake
 PORTVERSION=	1.4
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	http://releases.malikania.fr/nsnake/
 EXTRACT_SUFX=	.tgz
@@ -13,12 +14,8 @@ COMMENT=	Snake game written in C and ncu
 LICENSE=	MIT
 
 OPTIONS_DEFINE=	DOCS
+OPTIONS_SUB=	yes
 
-MAN6=		${PORTNAME}.6
-PORTDOCS=	CHANGELOG
-PLIST_FILES=	bin/${PORTNAME}
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 do-build:
@@ -26,11 +23,11 @@ do-build:
 
 do-install:
 	(cd ${WRKSRC} \
-		&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin \
-		&& ${INSTALL_MAN} ${PORTNAME}.6 ${MANPREFIX}/man/man6)
+		&& ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin \
+		&& ${INSTALL_MAN} ${PORTNAME}.6 ${STAGEDIR}${MANPREFIX}/man/man6)
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${STAGEDIR}${DOCSDIR})
 .endif
 
 .include <bsd.port.mk>

Added: head/games/nsnake/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/nsnake/pkg-plist	Sun Jan 19 18:16:46 2014	(r340328)
@@ -0,0 +1,10 @@
+ at owner games
+ at group games
+ at mode 4555
+bin/nsnake
+man/man6/nsnake.6.gz
+%%DOCS%%%%DOCSDIR%%/CHANGELOG
+%%DOCS%%@dirrm %%DOCSDIR%%
+ at mode
+ at exec mkdir -p /var/db/nsnake
+ at exec chown games:games /var/db/nsnake


More information about the svn-ports-head mailing list