aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-29 23:30:55 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-29 23:30:55 +0800
commit0bb1a5bab952d24ccce109cbbf082d3f6ccd4ce0 (patch)
tree32234a07a8060627263428cfb097ec3654126916 /games
parent98f3dd4aa550c3e48513a52e684a1db175a19fef (diff)
downloadfreebsd-ports-gnome-0bb1a5bab952d24ccce109cbbf082d3f6ccd4ce0.tar.gz
freebsd-ports-gnome-0bb1a5bab952d24ccce109cbbf082d3f6ccd4ce0.tar.zst
freebsd-ports-gnome-0bb1a5bab952d24ccce109cbbf082d3f6ccd4ce0.zip
- Simplify MASTER_SITES
- Modernize plist - Improve highscore handling
Diffstat (limited to 'games')
-rw-r--r--games/lexter/Makefile7
-rw-r--r--games/lexter/pkg-install9
-rw-r--r--games/lexter/pkg-plist8
3 files changed, 7 insertions, 17 deletions
diff --git a/games/lexter/Makefile b/games/lexter/Makefile
index 6db62eca4f07..892d9c9aacdc 100644
--- a/games/lexter/Makefile
+++ b/games/lexter/Makefile
@@ -5,8 +5,7 @@ PORTNAME= lexter
PORTVERSION= 1.0.3
PORTREVISION= 5
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= games/arcade
+MASTER_SITES= SUNSITE/games/arcade
MAINTAINER= ports@FreeBSD.org
COMMENT= Real-time word puzzle for text terminals
@@ -17,4 +16,8 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --localstatedir=/var/games
USES= gettext
+post-install:
+ @${MKDIR} ${STAGEDIR}/var/games
+ @${TOUCH} ${STAGEDIR}/var/games/lexter.scores.sample
+
.include <bsd.port.mk>
diff --git a/games/lexter/pkg-install b/games/lexter/pkg-install
deleted file mode 100644
index 0a93e455e990..000000000000
--- a/games/lexter/pkg-install
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-FILE="/var/games/lexter.scores"
-[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
-
-echo "===> Creating initial high score file $FILE"
-touch $FILE
-chown root:games $FILE
-chmod 664 $FILE
diff --git a/games/lexter/pkg-plist b/games/lexter/pkg-plist
index 97f857de79a8..786e7e99f2d0 100644
--- a/games/lexter/pkg-plist
+++ b/games/lexter/pkg-plist
@@ -1,10 +1,6 @@
-@group games
-@mode 2555
-bin/lexter
-@group
-@mode
+@(,games,2555) bin/lexter
man/man6/lexter.6.gz
share/lexter/dict.en
share/lexter/dict.fr
@dirrm share/lexter
-@unexec [ -s /var/games/lexter.scores ] || rm -f /var/games/lexter.scores
+@sample(,games,664) /var/games/lexter.scores.sample