[49480] trunk/dports/games/rogue/Portfile

aschenke at macports.org aschenke at macports.org
Fri Apr 10 15:07:19 PDT 2009


Revision: 49480
          http://trac.macports.org/changeset/49480
Author:   aschenke at macports.org
Date:     2009-04-10 15:07:19 -0700 (Fri, 10 Apr 2009)
Log Message:
-----------
added scoreboard support for multiuser environment

Modified Paths:
--------------
    trunk/dports/games/rogue/Portfile

Modified: trunk/dports/games/rogue/Portfile
===================================================================
--- trunk/dports/games/rogue/Portfile	2009-04-10 22:06:39 UTC (rev 49479)
+++ trunk/dports/games/rogue/Portfile	2009-04-10 22:07:19 UTC (rev 49480)
@@ -24,15 +24,21 @@
 
 worksrcdir		 ${name}${version}
 
-configure.args   --disable-scorefile \
-				 --disable-lockfile
+pre-configure    { addgroup games }
+post-configure   {
+					reinplace "s|rogue.scr|${prefix}/var/games/rogue/rogue.scr|" ${worksrcpath}/config.h
+					reinplace "s|rogue.lck|${prefix}/var/games/rogue/rogue.lck|" ${worksrcpath}/config.h
+				 }
 
 build.target     
 build.cmd        { make }
 
 destroot 		 {
-					xinstall -m 755 -c ${worksrcpath}/rogue ${destroot}${prefix}/bin/rogue
+					xinstall -m 2755 -g games -c ${worksrcpath}/rogue ${destroot}${prefix}/bin/rogue
 					xinstall -m 644 -c ${worksrcpath}/rogue.6 ${destroot}${prefix}/share/man/man6/rogue.6
+					
+					xinstall -m 775 -d ${destroot}${prefix}/var/games/rogue
+					xinstall -m 664 -g games -c /dev/null ${destroot}${prefix}/var/games/rogue/rogue.scr
 				
 					file mkdir ${destroot}${prefix}/share/doc/${name}
 					xinstall -m 644 -c ${worksrcpath}/${name}.doc ${destroot}${prefix}/share/doc/${name}/${name}.doc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090410/5acb1370/attachment.html>


More information about the macports-changes mailing list