- Add LICENSE

- Switch highscore file handling to @sample
This commit is contained in:
Dmitry Marakasov 2014-11-27 19:47:06 +00:00
parent 5e7269ce12
commit 54b480fbc3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373520
3 changed files with 12 additions and 21 deletions

View File

@ -3,13 +3,16 @@
PORTNAME= ivan
PORTVERSION= 0.50
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/IVAN/IVAN%20${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Graphical roguelike game
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_SDL= sdl
USES= gmake
GNU_CONFIGURE= yes
@ -33,4 +36,8 @@ post-patch:
${WRKSRC}/Main/Include/stack.h ${WRKSRC}/Main/Source/lsquare.cpp \
${WRKSRC}/Main/Source/lterras.cpp
post-install:
${MKDIR} ${STAGEDIR}/var/games/ivan/Bones
${TOUCH} ${STAGEDIR}/var/games/ivan/ivan-highscore.scores.sample
.include <bsd.port.mk>

View File

@ -1,15 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
STATEDIR="/var/games/ivan"
[ "$2" != "POST-INSTALL" -o -d "$SCOREDIR" ] && exit 0
echo "Creating state directory..."
mkdir -p "$STATEDIR"
touch "$STATEDIR/ivan-highscore.scores"
mkdir -p "$STATEDIR/Bones"
chgrp -R games "$STATEDIR"
chmod -R g+w "$STATEDIR"

View File

@ -1,5 +1,4 @@
@group games
@mode 2555
bin/ivan
@mode
@group
@(,games,2555) bin/ivan
@sample(,games,664) /var/games/ivan/ivan-highscore.scores.sample
@dir(,games,775) /var/games/ivan/Bones
@dir(,games,775) /var/games/ivan