[49479] trunk/dports/games/larn/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Apr 10 15:53:29 PDT 2009


On Apr 10, 2009, at 17:06, aschenke at macports.org wrote:

> Revision: 49479
>           http://trac.macports.org/changeset/49479
> Author:   aschenke at macports.org
> Date:     2009-04-10 15:06:39 -0700 (Fri, 10 Apr 2009)
> Log Message:
> -----------
> added proper score & logging support for multiuser environment
>
> Modified Paths:
> --------------
>     trunk/dports/games/larn/Portfile
>
> Modified: trunk/dports/games/larn/Portfile
> ===================================================================
> --- trunk/dports/games/larn/Portfile	2009-04-10 19:52:47 UTC (rev  
> 49478)
> +++ trunk/dports/games/larn/Portfile	2009-04-10 22:06:39 UTC (rev  
> 49479)
> @@ -37,7 +37,9 @@
>                          depends_lib-delete port:libcompat
>                      }
>
> -configure           {
> +configure           {
> +						addgroup games
> +
>                          reinplace "s|MAN|MAN6|" ${worksrcpath}/ 
> Makefile
>                          reinplace "s|/usr/share/games|${prefix}/ 
> share|g" ${worksrcpath}/pathnames.h
>                          reinplace "s|/var/games|${prefix}/var/ 
> games|g" ${worksrcpath}/pathnames.h
> @@ -45,11 +47,11 @@
>
>  destroot            {
>                          xinstall -m 755 -d ${destroot}${prefix}/ 
> share/larn
> -                        xinstall -m 755 -c ${worksrcpath}/larn $ 
> {destroot}${prefix}/bin
> +                        xinstall -m 2755 -g games -c $ 
> {worksrcpath}/larn ${destroot}${prefix}/bin
>                          xinstall -m 644 -c ${worksrcpath}/larn. 
> 6.gz ${destroot}${prefix}/share/man/man6
>                          xinstall -m 644 -c ${worksrcpath}/datfiles/ 
> larn.help ${destroot}${prefix}/share/larn
>                          xinstall -m 644 -c ${worksrcpath}/datfiles/ 
> larnmaze ${destroot}${prefix}/share/larn
>                          xinstall -m 775 -d ${destroot}${prefix}/ 
> var/games/larn
> -                        xinstall -m 660 -c /dev/null ${destroot}$ 
> {prefix}/var/games/larn/lscore12.0
> -                        xinstall -m 660 -c /dev/null ${destroot}$ 
> {prefix}/var/games/larn/llog12.0
> +                        xinstall -m 660 -g games -c /dev/null $ 
> {destroot}${prefix}/var/games/larn/lscore12.0
> +                        xinstall -m 660 -g games -c /dev/null $ 
> {destroot}${prefix}/var/games/larn/llog12.0
>                      }

You probably do not want score and logging files registered to the  
port, because they will be overwritten when the port is upgraded.  
High score and logging files should probably be persistent across  
port upgrades.





More information about the macports-dev mailing list