[PC-BSD Commits] r12932 - in pbi/modules/games/searchandrescue: . resources resources/bin scripts

svn at pcbsd.org svn at pcbsd.org
Wed Sep 21 09:24:04 PDT 2011


Author: kenmoore
Date: 2011-09-21 09:24:04 -0700 (Wed, 21 Sep 2011)
New Revision: 12932

Added:
   pbi/modules/games/searchandrescue/resources/bin/
   pbi/modules/games/searchandrescue/resources/bin/searchandrescue.sh
Modified:
   pbi/modules/games/searchandrescue/external-links
   pbi/modules/games/searchandrescue/pbi.conf
   pbi/modules/games/searchandrescue/scripts/post-install.sh
Log:
Fix searchandrescue by adding a wrapper script to set variables before running and rebuild.


Modified: pbi/modules/games/searchandrescue/external-links
===================================================================
--- pbi/modules/games/searchandrescue/external-links	2011-09-21 15:24:33 UTC (rev 12931)
+++ pbi/modules/games/searchandrescue/external-links	2011-09-21 16:24:04 UTC (rev 12932)
@@ -9,3 +9,4 @@
 #bin/appfoo             bin/appfoo              binary,nocrash
 #bin/appfoo2            bin/appfoo-test         binary
 
+bin/searchandresccue.sh	bin/searchandrescue.sh	binary

Modified: pbi/modules/games/searchandrescue/pbi.conf
===================================================================
--- pbi/modules/games/searchandrescue/pbi.conf	2011-09-21 15:24:33 UTC (rev 12931)
+++ pbi/modules/games/searchandrescue/pbi.conf	2011-09-21 16:24:04 UTC (rev 12932)
@@ -24,5 +24,7 @@
 # Ports to build before / after
 PBI_MKPORTBEFORE=""
 PBI_MKPORTAFTER="games/searchandrescue-data"
+
+PBI_BUILDKEY="01"; export PBI_BUILDKEY
  
 export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT PBI_MKPORTBEFORE PBI_MKPORTAFTER

Modified: pbi/modules/games/searchandrescue/scripts/post-install.sh
===================================================================
--- pbi/modules/games/searchandrescue/scripts/post-install.sh	2011-09-21 15:24:33 UTC (rev 12931)
+++ pbi/modules/games/searchandrescue/scripts/post-install.sh	2011-09-21 16:24:04 UTC (rev 12932)
@@ -1,4 +1,7 @@
 #!/bin/sh
 
-ln -s ${PBI_PROGDIRPATH}/share/searchandrescue /usr/local/share/searchandrescue
+#ln -s ${PBI_PROGDIRPATH}/share/searchandrescue /usr/local/share/searchandrescue
 
+sed -i.bak "s,CHANGEME,${PBI_PROGDIRPATH},g" ${PBI_PROGDIRPATH}/bin/searchandrescue.sh
+chmod 755 ${PBI_PROGDIRPATH}/bin/searchandrescue.sh
+



More information about the Commits mailing list