1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

- Simplify MASTER_SITES

- Modernize plist
- Improve highscore handling
This commit is contained in:
Dmitry Marakasov 2014-10-29 15:30:55 +00:00
parent 7aa46ba578
commit 50473cdf41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371680
3 changed files with 7 additions and 17 deletions

View File

@ -5,8 +5,7 @@ PORTNAME= lexter
PORTVERSION= 1.0.3
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/arcade
MASTER_SITES= SUNSITE/games/arcade
MAINTAINER= ports@FreeBSD.org
COMMENT= Real-time word puzzle for text terminals
@ -17,4 +16,8 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --localstatedir=/var/games
USES= gettext
post-install:
@${MKDIR} ${STAGEDIR}/var/games
@${TOUCH} ${STAGEDIR}/var/games/lexter.scores.sample
.include <bsd.port.mk>

View File

@ -1,9 +0,0 @@
#!/bin/sh
FILE="/var/games/lexter.scores"
[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
echo "===> Creating initial high score file $FILE"
touch $FILE
chown root:games $FILE
chmod 664 $FILE

View File

@ -1,10 +1,6 @@
@group games
@mode 2555
bin/lexter
@group
@mode
@(,games,2555) bin/lexter
man/man6/lexter.6.gz
share/lexter/dict.en
share/lexter/dict.fr
@dirrm share/lexter
@unexec [ -s /var/games/lexter.scores ] || rm -f /var/games/lexter.scores
@sample(,games,664) /var/games/lexter.scores.sample