- Convert highscore handling to plist

This commit is contained in:
Dmitry Marakasov 2014-11-28 11:19:01 +00:00
parent 13b8f6b186
commit 97402a02aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373543
4 changed files with 4 additions and 37 deletions

View File

@ -22,11 +22,6 @@ USE_GCC= any # doesn't start otherwise (UB?)
PORTDATA= *
PORTDOCS= *
SCOREDIR= /var/games/${PORTNAME}
SUB_FILES= pkg-deinstall pkg-install
SUB_LIST= SCOREDIR="${SCOREDIR}"
DESKTOP_ENTRIES="Mirror Magic" \
"" \
"" \
@ -62,10 +57,11 @@ do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics levels music scores sounds" \
${STAGEDIR}${DATADIR}
${RMDIR} ${STAGEDIR}${DATADIR}/scores
${LN} -s ${SCOREDIR} ${STAGEDIR}${DATADIR}/scores
${LN} -s /var/games/${PORTNAME} ${STAGEDIR}${DATADIR}/scores
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in CHANGES CREDITS README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${MKDIR} ${STAGEDIR}/var/games/${PORTNAME}
.include <bsd.port.mk>

View File

@ -1,16 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
[ "$2" != "POST-DEINSTALL" ] && exit 0
rmdir "%%SCOREDIR%%" 2>/dev/null
if [ -e "%%SCOREDIR%%" ]; then
echo
echo "To completely remove the port, please remove the following"
echo "directory manually, if it's no longer needed:"
echo
echo " %%SCOREDIR%%"
echo
fi

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# $FreeBSD: head/games/pachi/pkg-install 340719 2014-01-22 15:52:06Z mat $
[ "$2" != "POST-INSTALL" ] && exit 0
[ -e "%%SCOREDIR%%" ] && exit 0
mkdir -p "%%SCOREDIR%%"
chgrp games "%%SCOREDIR%%"
chmod g+w "%%SCOREDIR%%"

View File

@ -1,5 +1,2 @@
@group games
@mode 2555
bin/mirrormagic
@mode
@group
@(,games,2555) bin/mirrormagic
@dir(,games,775) /var/games/mirrormagic