Use @rmempty
While here: - Document the license - simplify the plist to enforce the games group on the binary - use @postexec instead of @exec
This commit is contained in:
parent
249c3e07c3
commit
e351a16dd1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552946
2 changed files with 5 additions and 5 deletions
|
@ -11,6 +11,8 @@ DISTNAME= ${PORTNAME}-01092003
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= BSD version of text-based Tetris game
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
USES= ncurses
|
||||
MAKE_ARGS= TMPLDFLAGS="-lncurses"
|
||||
NO_WRKSUBDIR= yes
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
@group games
|
||||
bin/bsdtris
|
||||
@group
|
||||
@(,games,) bin/bsdtris
|
||||
man/man6/bsdtris.6.gz
|
||||
@exec touch /var/games/bsdtris.scores ; chmod 664 /var/games/bsdtris.scores ; chgrp games /var/games/bsdtris.scores
|
||||
@unexec if test ! -s /var/games/bsdtris.scores; then rm -f /var/games/bsdtris.scores; fi
|
||||
@postexec touch /var/games/bsdtris.scores ; chmod 664 /var/games/bsdtris.scores ; chgrp games /var/games/bsdtris.scores
|
||||
@rmempty /var/games/bsdtris.scores
|
||||
|
|
Loading…
Reference in a new issue