From 6defe3658ab212f6a2b899b6337baf0b23a34257 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Fri, 28 Nov 2014 11:19:01 +0000 Subject: - Convert highscore handling to plist --- games/mirrormagic/Makefile | 8 ++------ games/mirrormagic/files/pkg-deinstall.in | 16 ---------------- games/mirrormagic/files/pkg-install.in | 10 ---------- games/mirrormagic/pkg-plist | 7 ++----- 4 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 games/mirrormagic/files/pkg-deinstall.in delete mode 100644 games/mirrormagic/files/pkg-install.in (limited to 'games') diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile index 953d0891972..bea372bcaa6 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 diff --git a/games/mirrormagic/files/pkg-deinstall.in b/games/mirrormagic/files/pkg-deinstall.in deleted file mode 100644 index 5fb203d395d..00000000000 --- 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 6eb955c9645..00000000000 --- 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 c281d7daefe..32d02990e9a 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 -- cgit