diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2014-11-28 19:19:01 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2014-11-28 19:19:01 +0800 |
commit | 6defe3658ab212f6a2b899b6337baf0b23a34257 (patch) | |
tree | ac42eef803df424edf21cc00a720f8ead5d258b5 | |
parent | 8ebb33731d82ce13199f54aaad796db341efae52 (diff) | |
download | freebsd-ports-gnome-6defe3658ab212f6a2b899b6337baf0b23a34257.tar.gz freebsd-ports-gnome-6defe3658ab212f6a2b899b6337baf0b23a34257.tar.zst freebsd-ports-gnome-6defe3658ab212f6a2b899b6337baf0b23a34257.zip |
- Convert highscore handling to plist
-rw-r--r-- | games/mirrormagic/Makefile | 8 | ||||
-rw-r--r-- | games/mirrormagic/files/pkg-deinstall.in | 16 | ||||
-rw-r--r-- | games/mirrormagic/files/pkg-install.in | 10 | ||||
-rw-r--r-- | games/mirrormagic/pkg-plist | 7 |
4 files changed, 4 insertions, 37 deletions
diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile index 953d08919726..bea372bcaa63 100644 --- a/games/mirrormagic/Makefile +++ b/games/mirrormagic/Makefile @@ -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> diff --git a/games/mirrormagic/files/pkg-deinstall.in b/games/mirrormagic/files/pkg-deinstall.in deleted file mode 100644 index 5fb203d395dc..000000000000 --- a/games/mirrormagic/files/pkg-deinstall.in +++ /dev/null @@ -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 diff --git a/games/mirrormagic/files/pkg-install.in b/games/mirrormagic/files/pkg-install.in deleted file mode 100644 index 6eb955c96456..000000000000 --- a/games/mirrormagic/files/pkg-install.in +++ /dev/null @@ -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%%" diff --git a/games/mirrormagic/pkg-plist b/games/mirrormagic/pkg-plist index c281d7daefe4..32d02990e9ac 100644 --- a/games/mirrormagic/pkg-plist +++ b/games/mirrormagic/pkg-plist @@ -1,5 +1,2 @@ -@group games -@mode 2555 -bin/mirrormagic -@mode -@group +@(,games,2555) bin/mirrormagic +@dir(,games,775) /var/games/mirrormagic |