svn commit: r362541 - in head/games/bsdgames: . files
Adam Weinberger
adamw at FreeBSD.org
Tue Jul 22 13:39:59 UTC 2014
Author: adamw
Date: Tue Jul 22 13:39:58 2014
New Revision: 362541
URL: http://svnweb.freebsd.org/changeset/ports/362541
QAT: https://qat.redports.org/buildarchive/r362541/
Log:
Stage, simplify, and put everything in /var/games as a @sample so that
saved data is precious.
Also, take maintainership, thank you uqs!
Deleted:
head/games/bsdgames/files/share.mtree
head/games/bsdgames/files/var.mtree
Modified:
head/games/bsdgames/Makefile
head/games/bsdgames/pkg-plist
Modified: head/games/bsdgames/Makefile
==============================================================================
--- head/games/bsdgames/Makefile Tue Jul 22 13:31:21 2014 (r362540)
+++ head/games/bsdgames/Makefile Tue Jul 22 13:39:58 2014 (r362541)
@@ -3,7 +3,7 @@
PORTNAME= bsdgames
PORTVERSION= 2.4
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= games
# Fetched from http://gitweb.dragonflybsd.org/dragonfly.git/tree/v2.4.0:/games
@@ -11,47 +11,14 @@ CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= uqs
-MAINTAINER= uqs at FreeBSD.org
+MAINTAINER= adamw at FreeBSD.org
COMMENT= Traditional BSD games taken from DragonFly BSD
CONFLICTS= hangman-*
+USES= tar:bzip2
WRKSRC= ${WRKDIR}/dragonfly
-USE_BZIP2= yes
MAKE_ENV+= NO_WERROR=1
-MAN6= adventure.6 \
- arithmetic.6 \
- atc.6 \
- backgammon.6 \
- battlestar.6 \
- bs.6 \
- canfield.6 \
- cfscores.6 \
- cribbage.6 \
- fish.6 \
- hack.6 \
- hangman.6 \
- hunt.6 \
- huntd.6 \
- larn.6 \
- mille.6 \
- phantasia.6 \
- piano.6 \
- pig.6 \
- quiz.6 \
- rain.6 \
- robots.6 \
- rogue.6 \
- sail.6 \
- snake.6 \
- snscore.6 \
- trek.6 \
- wargames.6 \
- worm.6 \
- worms.6 \
- wump.6
-
-MANCOMPRESSED= maybe
# contain /usr/share/games
SHAREPATH_FILES=atc/atc.6 \
@@ -79,7 +46,6 @@ GAMESPATH_FILES=backgammon/backgammon/ba
SGID_BINARIES= atc battlestar canfield/canfield cribbage hack phantasia \
robots sail snake/snake
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s/NOMAN/NO_MAN/" \
${WRKSRC}/backgammon/teachgammon/Makefile \
@@ -100,12 +66,16 @@ post-patch:
${WRKSRC}/$${f}/Makefile; \
done
-# Only useful for DESTDIR
-VARDIR?= /var
-
-pre-su-install:
- ${MKDIR} ${VARDIR}
- mtree -deU -f ${FILESDIR}/var.mtree -p ${VARDIR}
- mtree -deU -f ${FILESDIR}/share.mtree -p ${PREFIX}/share
+pre-install:
+.for d in atc larn quiz.db
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/games/$d
+.endfor
+.for d in atc battlestar hackdir/save larn phantasia
+ @${MKDIR} ${STAGEDIR}/var/games/$d
+.endfor
+
+post-install:
+ @${TOUCH} ${STAGEDIR}/var/games/atc_score
+ @${FIND} ${STAGEDIR}/var/games -type f -exec ${MV} {} {}.sample \;
.include <bsd.port.mk>
Modified: head/games/bsdgames/pkg-plist
==============================================================================
--- head/games/bsdgames/pkg-plist Tue Jul 22 13:31:21 2014 (r362540)
+++ head/games/bsdgames/pkg-plist Tue Jul 22 13:39:58 2014 (r362541)
@@ -2,7 +2,6 @@ bin/adventure
bin/arithmetic
bin/atc
bin/backgammon
-bin/teachgammon
bin/battlestar
bin/bs
bin/canfield
@@ -25,22 +24,52 @@ bin/rogue
bin/sail
bin/snake
bin/snscore
+bin/teachgammon
bin/trek
bin/wargames
bin/worm
bin/worms
bin/wump
+man/man6/adventure.6.gz
+man/man6/arithmetic.6.gz
+man/man6/atc.6.gz
+man/man6/backgammon.6.gz
+man/man6/battlestar.6.gz
+man/man6/bs.6.gz
+man/man6/canfield.6.gz
+man/man6/cfscores.6.gz
+man/man6/cribbage.6.gz
+man/man6/fish.6.gz
+man/man6/hack.6.gz
+man/man6/hangman.6.gz
+man/man6/hunt.6.gz
+man/man6/huntd.6.gz
+man/man6/larn.6.gz
+man/man6/mille.6.gz
+man/man6/phantasia.6.gz
+man/man6/piano.6.gz
+man/man6/pig.6.gz
+man/man6/quiz.6.gz
+man/man6/rain.6.gz
+man/man6/robots.6.gz
+man/man6/rogue.6.gz
+man/man6/sail.6.gz
+man/man6/snake.6.gz
+man/man6/snscore.6.gz
+man/man6/trek.6.gz
+man/man6/wargames.6.gz
+man/man6/worm.6.gz
+man/man6/worms.6.gz
+man/man6/wump.6.gz
share/games/atc/Game_List
share/games/atc/Killer
share/games/atc/crossover
share/games/atc/default
share/games/atc/easy
share/games/atc/game_2
- at dirrm share/games/atc
share/games/larn/larnmaze
share/games/larn/larnopts
share/games/larn/larn.help
- at dirrm share/games/larn
share/games/quiz.db/africa
share/games/quiz.db/america
share/games/quiz.db/areas
@@ -74,51 +103,47 @@ share/games/quiz.db/spell
share/games/quiz.db/state
share/games/quiz.db/trek
share/games/quiz.db/ucc
- at dirrm share/games/quiz.db
share/games/cribbage.instr
share/games/fish.instr
share/games/wump.info
+ at dirrm share/games/atc
+ at dirrm share/games/larn
+ at dirrm share/games/quiz.db
@dirrm share/games
- at cwd /var/games
- at exec chgrp games /var/games
- at dirrmtry atc
- at exec mkdir %D/atc
- at exec chmod 0775 %D/atc
- at dirrmtry battlestar
- at exec mkdir %D/battlestar
- at exec chmod 0775 %D/battlestar
-hackdir/perm
-hackdir/rumors
-hackdir/help
-hackdir/hh
-hackdir/data
-phantasia/monsters
-phantasia/void
- at comment FIXME below are highscores, we should keep them if non-empty
- at comment Also, we must make sure to not clobber them upon install XXX
-hackdir/record
- at dirrmtry hackdir/save
- at dirrmtry hackdir
- at exec mkdir -p %D/hackdir/save
- at exec chmod 0770 %D/hackdir %D/hackdir/save
-larn/lscore12.0
-larn/llog12.0
- at dirrmtry larn
- at exec chmod 0775 %D/larn
-phantasia/characs
-phantasia/gold
-phantasia/lastdead
-phantasia/mess
-phantasia/motd
-phantasia/scoreboard
- at dirrmtry phantasia
- at exec chmod 0775 %D/phantasia
- at comment atc_score
-battlestar.log
-cfscores
-criblog
-robots_roll
-rogue.scores
-saillog
-snakerawscores
-snake.log
+ at group games
+ at mode 664
+ at sample /var/games/hackdir/help.sample
+ at sample /var/games/hackdir/hh.sample
+ at sample /var/games/hackdir/data.sample
+ at sample /var/games/hackdir/perm.sample
+ at sample /var/games/hackdir/record.sample
+ at sample /var/games/hackdir/rumors.sample
+ at sample /var/games/larn/lscore12.0.sample
+ at sample /var/games/larn/llog12.0.sample
+ at sample /var/games/phantasia/monsters.sample
+ at sample /var/games/phantasia/void.sample
+ at sample /var/games/phantasia/characs.sample
+ at sample /var/games/phantasia/gold.sample
+ at sample /var/games/phantasia/lastdead.sample
+ at sample /var/games/phantasia/mess.sample
+ at sample /var/games/phantasia/motd.sample
+ at sample /var/games/phantasia/scoreboard.sample
+ at sample /var/games/atc_score.sample
+ at sample /var/games/battlestar.log.sample
+ at sample /var/games/cfscores.sample
+ at sample /var/games/criblog.sample
+ at sample /var/games/robots_roll.sample
+ at sample /var/games/rogue.scores.sample
+ at sample /var/games/saillog.sample
+ at sample /var/games/snakerawscores.sample
+ at sample /var/games/snake.log.sample
+ at mode 0775
+ at dirrmtry /var/games/phantasia
+ at dirrmtry /var/games/larn
+ at mode 0770
+ at dirrmtry /var/games/hackdir/save
+ at mode 0775
+ at dirrmtry /var/games/hackdir
+ at dirrmtry /var/games/battlestar
+ at dirrmtry /var/games/atc
+ at dirrmtry /var/games
More information about the svn-ports-head
mailing list