From owner-svn-ports-head@freebsd.org Thu Feb 11 21:17:41 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AC6CAA4FA2; Thu, 11 Feb 2016 21:17:41 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03913269; Thu, 11 Feb 2016 21:17:40 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1BLHeXO014778; Thu, 11 Feb 2016 21:17:40 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1BLHd8i014775; Thu, 11 Feb 2016 21:17:39 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201602112117.u1BLHd8i014775@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Thu, 11 Feb 2016 21:17:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r408699 - head/games/monsterz X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 21:17:41 -0000 Author: thierry Date: Thu Feb 11 21:17:39 2016 New Revision: 408699 URL: https://svnweb.freebsd.org/changeset/ports/408699 Log: Modernize pkg-plist. PR: ports/206743 Submitted by: pawel Modified: head/games/monsterz/Makefile head/games/monsterz/pkg-plist Modified: head/games/monsterz/Makefile ============================================================================== --- head/games/monsterz/Makefile Thu Feb 11 20:00:35 2016 (r408698) +++ head/games/monsterz/Makefile Thu Feb 11 21:17:39 2016 (r408699) @@ -3,7 +3,7 @@ PORTNAME= monsterz PORTVERSION= 0.7.1 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= games MASTER_SITES= http://sam.zoy.org/monsterz/ \ SF/nemysisfreebsdp/:icons @@ -34,7 +34,9 @@ DESKTOP_ENTRIES="Monsterz" "${COMMENT}" OPTIONS_DEFINE= DOCS -.include +pre-configure: + ${REINPLACE_CMD} '/test -f/ s|scorefile)|&.sample|g' \ + ${WRKSRC}/Makefile post-install: .for d in graphics sound @@ -48,9 +50,9 @@ post-install: -f ${DATADIR:S;${PREFIX}/;;}) ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/monsterz -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.endif .include Modified: head/games/monsterz/pkg-plist ============================================================================== --- head/games/monsterz/pkg-plist Thu Feb 11 20:00:35 2016 (r408698) +++ head/games/monsterz/pkg-plist Thu Feb 11 21:17:39 2016 (r408699) @@ -1,8 +1,4 @@ -@group games -@mode 2555 -bin/monsterz -@mode -@group +@(,games,2555) bin/monsterz %%DATADIR%%/graphics/background.png %%DATADIR%%/graphics/bigtiles.png %%DATADIR%%/graphics/board.png @@ -26,9 +22,5 @@ bin/monsterz %%DATADIR%%/sound/warning.wav %%DATADIR%%/sound/whip.wav share/pixmaps/monsterz.png -@dirrm %%DATADIR%%/sound -@dirrm %%DATADIR%%/graphics -@dirrm %%DATADIR%% -@exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi -@unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi -@exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod 664 %%SCOREDIR%%/monsterz && chgrp games %%SCOREDIR%%/monsterz +@sample(,games,664) %%SCOREDIR%%/monsterz.sample +@dir(,,775) %%SCOREDIR%%