Index: head/games/tornado/pkg-install =================================================================== --- head/games/tornado/pkg-install (revision 393562) +++ head/games/tornado/pkg-install (nonexistent) @@ -1,7 +0,0 @@ -#!/bin/sh - -FILE=/var/games/tornado.scores -[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0 - -echo "===> Creating initial high score file $FILE" -install -o root -g games -m 664 ${PKG_PREFIX}/share/tornado/tornado.scores.init $FILE Property changes on: head/games/tornado/pkg-install ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/tornado/Makefile =================================================================== --- head/games/tornado/Makefile (revision 393562) +++ head/games/tornado/Makefile (revision 393563) @@ -1,60 +1,58 @@ # Created by: minter@lunenburg.org # $FreeBSD$ PORTNAME= tornado PORTVERSION= 1.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= https://kiza.eu/media/software/tornado/ MAINTAINER= ports@FreeBSD.org COMMENT= Ccurses-based game of weather destruction LICENSE= GPLv2 # (or later) +LICENSE_FILE= ${WRKSRC}/COPYING USES= gettext gmake ncurses CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lintl post-patch: .for i in Makefile Makefile.inc @${REINPLACE_CMD} -e \ '/^CC/s| =| ?=| ; \ /^MAKE/s| =| ?=| ; \ /^LDFLAGS/s| =| +=| ; \ /^PREFIX/s| =| ?=| ; \ /^LOCALEPATH/s|/usr/local|$$(PREFIX)| ; \ /^CFLAGS/s| =| +=| ; \ s|-O2||' ${WRKSRC}/${i} .endfor @${REINPLACE_CMD} -e \ 's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/tornado.6.in .for i in de fr it nl no ru @${REINPLACE_CMD} -e \ 's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/${i}/tornado.6.${i}.in .endfor -post-build: - @${LN} -sf tornado.scores ${WRKSRC}/tornado.scores.init - do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} tornado \ - ${STAGEDIR}${PREFIX}/bin) - (cd ${WRKSRC}/doc/man && ${INSTALL_MAN} tornado.6 \ - ${STAGEDIR}${MAN6PREFIX}/man/man6) + ${INSTALL_PROGRAM} ${WRKSRC}/tornado \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/man/tornado.6 \ + ${STAGEDIR}${MAN6PREFIX}/man/man6 .for i in de fr it nl no ru @${MKDIR} ${STAGEDIR}${MAN6PREFIX}/man/${i}/man6 - (cd ${WRKSRC}/doc/man/${i} && ${INSTALL_MAN} tornado.6 \ - ${STAGEDIR}${MAN6PREFIX}/man/${i}/man6) + ${INSTALL_MAN} ${WRKSRC}/doc/man/${i}/tornado.6 \ + ${STAGEDIR}${MAN6PREFIX}/man/${i}/man6 .endfor .for i in de es fr it nl no pt ru @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES - (cd ${WRKSRC}/po && ${INSTALL_DATA} ${i}.mo \ - ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/tornado.mo) + ${INSTALL_DATA} ${WRKSRC}/po/${i}.mo \ + ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/tornado.mo .endfor - @${MKDIR} ${STAGEDIR}${DATADIR} - (cd ${WRKSRC} && ${INSTALL_DATA} tornado.scores.init \ - ${STAGEDIR}${DATADIR}) + @${MKDIR} ${STAGEDIR}/var/games + ${INSTALL_DATA} ${WRKSRC}/tornado.scores \ + ${STAGEDIR}/var/games/tornado.scores.sample .include Index: head/games/tornado/pkg-plist =================================================================== --- head/games/tornado/pkg-plist (revision 393562) +++ head/games/tornado/pkg-plist (revision 393563) @@ -1,31 +1,17 @@ -bin/tornado +@(,games,2755) bin/tornado man/de/man6/tornado.6.gz man/fr/man6/tornado.6.gz man/it/man6/tornado.6.gz man/man6/tornado.6.gz man/nl/man6/tornado.6.gz man/no/man6/tornado.6.gz man/ru/man6/tornado.6.gz share/locale/de/LC_MESSAGES/tornado.mo share/locale/es/LC_MESSAGES/tornado.mo share/locale/fr/LC_MESSAGES/tornado.mo share/locale/it/LC_MESSAGES/tornado.mo share/locale/nl/LC_MESSAGES/tornado.mo share/locale/no/LC_MESSAGES/tornado.mo share/locale/pt/LC_MESSAGES/tornado.mo share/locale/ru/LC_MESSAGES/tornado.mo -%%DATADIR%%/tornado.scores.init -@dirrm %%DATADIR%% -@dirrmtry man/ru/man6 -@dirrmtry man/ru -@dirrmtry man/no/man6 -@dirrmtry man/no -@dirrmtry man/nl/man6 -@dirrmtry man/nl -@dirrmtry man/it/man6 -@dirrmtry man/it -@dirrmtry man/fr/man6 -@dirrmtry man/fr -@dirrmtry man/de/man6 -@dirrmtry man/de -@unexec if cmp -s %D/%%DATADIR%%/tornado.scores.init /var/games/tornado.scores; then rm -f /var/games/tornado.scores; else true; fi +@sample(,games,664) /var/games/tornado.scores.sample