mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
- Convert highscore handling to plist
This commit is contained in:
parent
13b8f6b186
commit
97402a02aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373543
@ -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>
|
||||
|
@ -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
|
@ -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%%"
|
@ -1,5 +1,2 @@
|
||||
@group games
|
||||
@mode 2555
|
||||
bin/mirrormagic
|
||||
@mode
|
||||
@group
|
||||
@(,games,2555) bin/mirrormagic
|
||||
@dir(,games,775) /var/games/mirrormagic
|
||||
|
Loading…
Reference in New Issue
Block a user