aboutsummaryrefslogtreecommitdiff
path: root/games/monsterz
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2013-05-25 15:41:31 +0000
committerThierry Thomas <thierry@FreeBSD.org>2013-05-25 15:41:31 +0000
commit7feebdcc7c15232d9c18080bb5fec201e0718431 (patch)
treee8cffd09e79cafb3934496f2b7f151a32858af58 /games/monsterz
parentbbc8d616105886ee9ffcdb5fb0b98f2f748a47c5 (diff)
downloadports-7feebdcc7c15232d9c18080bb5fec201e0718431.tar.gz
ports-7feebdcc7c15232d9c18080bb5fec201e0718431.zip
Fix plist and installation by packages.
Reported by: pointyhat via miwi
Notes
Notes: svn path=/head/; revision=319059
Diffstat (limited to 'games/monsterz')
-rw-r--r--games/monsterz/Makefile8
-rw-r--r--games/monsterz/files/patch-Makefile13
-rw-r--r--games/monsterz/pkg-plist2
3 files changed, 14 insertions, 9 deletions
diff --git a/games/monsterz/Makefile b/games/monsterz/Makefile
index 091013cba622..4e7239c5e642 100644
--- a/games/monsterz/Makefile
+++ b/games/monsterz/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: monsterz
-# Date created: Fri 29 apr 2005
-# Whom: thierry@pompo.net
-#
+# Created by: thierry@pompo.net
# $FreeBSD$
-#
PORTNAME= monsterz
PORTVERSION= 0.7.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://sam.zoy.org/monsterz/
diff --git a/games/monsterz/files/patch-Makefile b/games/monsterz/files/patch-Makefile
index 0e04d450f3a9..18c01a0313b9 100644
--- a/games/monsterz/files/patch-Makefile
+++ b/games/monsterz/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Fri May 12 18:39:38 2006
-+++ Makefile Sat May 13 19:06:56 2006
+--- Makefile.orig 2007-12-17 23:05:00.000000000 +0100
++++ Makefile 2013-05-25 16:56:29.000000000 +0200
@@ -1,5 +1,5 @@
-prefix = /usr/local
@@ -16,3 +16,12 @@
bitmap: $(BITMAP)
+@@ -50,7 +50,7 @@
+ cp $(BITMAP) $(DESTDIR)$(pkgdatadir)/graphics/
+ cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/
+ mkdir -p $(DESTDIR)$(scoredir)
+- test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile)
++ test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile)
+ chown root:games $(DESTDIR)$(scorefile)
+ chmod g+w $(DESTDIR)$(scorefile)
+
diff --git a/games/monsterz/pkg-plist b/games/monsterz/pkg-plist
index 40b8c1493fed..6a9338776e11 100644
--- a/games/monsterz/pkg-plist
+++ b/games/monsterz/pkg-plist
@@ -26,5 +26,5 @@ share/games/monsterz/sound/whip.wav
@dirrmtry share/games
@dirrmtry games
@exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi
-@exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod g+w %%SCOREDIR%%/monsterz
+@exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod g+w %%SCOREDIR%%/monsterz && chown root:games %%SCOREDIR%%/monsterz
@unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi