diff options
author | marino <marino@FreeBSD.org> | 2014-01-20 02:16:46 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-01-20 02:16:46 +0800 |
commit | d9f8560498c834e052160a15e4b12e80973d5d81 (patch) | |
tree | 5a888312cb79cc165fbf406bbeac970f5719b161 /games | |
parent | f7fb3df3a6b03d71e0d1cacb439efbd6fda59547 (diff) | |
download | freebsd-ports-gnome-d9f8560498c834e052160a15e4b12e80973d5d81.tar.gz freebsd-ports-gnome-d9f8560498c834e052160a15e4b12e80973d5d81.tar.zst freebsd-ports-gnome-d9f8560498c834e052160a15e4b12e80973d5d81.zip |
games/nsnake: games/nsnake: fix permissions and fix score file
Support stage too.
PR: ports/184920
Approved by: maintainer timeout
Diffstat (limited to 'games')
-rw-r--r-- | games/nsnake/Makefile | 15 | ||||
-rw-r--r-- | games/nsnake/pkg-plist | 10 |
2 files changed, 16 insertions, 9 deletions
diff --git a/games/nsnake/Makefile b/games/nsnake/Makefile index 40e8ba8f55fd..5fdf2b918379 100644 --- a/games/nsnake/Makefile +++ b/games/nsnake/Makefile @@ -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 ncurses 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> diff --git a/games/nsnake/pkg-plist b/games/nsnake/pkg-plist new file mode 100644 index 000000000000..d4302e9ae5a5 --- /dev/null +++ b/games/nsnake/pkg-plist @@ -0,0 +1,10 @@ +@owner games +@group games +@mode 4555 +bin/nsnake +man/man6/nsnake.6.gz +%%DOCS%%%%DOCSDIR%%/CHANGELOG +%%DOCS%%@dirrm %%DOCSDIR%% +@mode +@exec mkdir -p /var/db/nsnake +@exec chown games:games /var/db/nsnake |