[Debian Wiki] Update of "BOINC/ServerGuide/AppDeployment" by SteffenMoeller

Debian Wiki debian-www at lists.debian.org
Tue Sep 3 15:42:29 UTC 2013


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "BOINC/ServerGuide/AppDeployment" page has been changed by SteffenMoeller:
https://wiki.debian.org/BOINC/ServerGuide/AppDeployment?action=diff&rev1=38&rev2=39

Comment:
Fixing directory structure.

  Copy the upper_case app to the project.
  {{{
  $ . ~/.boinc_test.conf && \
-   cp ~/fetch-app/apps/upper_case/* $installroot/$fileprojectname/apps/upper_case
+   cp ~/fetch-app/apps/upper_case/* $installroot/$fileprojectname/apps/upper_case/
  }}}
  
  The boinc_test.conf sets the variables ''$installroot'' etc. Start
@@ -139, +139 @@

  The project.xml file informs the BOINC server about what this project is all about, i.e. what platforms we are supporting with what tools (''apps''). You can copy and paste the following BASH shell lines to your local console. It will create the file ''project.xml'' in the project's root directory or bail out if something goes the unexpected way.
  
  {{{
- [ -z "$installroot" -o -z "$fileprojectname" ] || . ~/.boinc_test.conf
+ [ -z "$installroot" -o -z "$projectname" ] || . ~/.boinc_test.conf
- if [ -z "$installroot" -o -z "$fileprojectname" ]; then
+ if [ -z "$installroot" -o -z "$projectname" ]; then
-    echo 'Variables $installroot (' $installroot ') and $fileprojectname (' $fileprojectname ') are both required.'
+    echo 'Variables $installroot (' $installroot ') and $projectname (' $projectname ') are both required.'
- elif [ -d "$installroot/$fileprojectname" ]; then
+ elif [ -d "$installroot/$projectname" ]; then
+    if [ -f "$installroot/$projectname"/project.xml ]; then
+        sudo gzip -9 --suffix ".$(date +"%Y%m%dT%H%M").gz" "$installroot/$projectname"/project.xml
+    fi
     (cat << EOPROJECTXML
  <boinc>
   <app>
@@ -159, +162 @@

   </platform>
  </boinc>
  EOPROJECTXML
- ) | sudo tee "$installroot"/"$fileprojectname"/project.xml
+ ) | sudo tee "$installroot"/"$projectname"/project.xml
  fi
  }}}
  
  This file feed the xadd tool, which in turn feeds the project's MySQL database. The entries say that those applications should be prepared for to be eventually found. Thus, it is OK if only one of the 32 and 64 bit platforms are covered.  Please look into standard platform names BOINC follows [[http://boinc.berkeley.edu/trac/wiki/BoincPlatforms|here]] to avoid confusion.
  
  Now let us invoke xadd. Change to the '''$projectroot''' {{{
- cd "$installroot"/"$fileprojectname"
+ cd "$installroot"/"$projectname"
  }}}
  and run initiate the addition of the binary found in the directory structure to the local database {{{
  sudo bin/xadd
@@ -234, +237 @@

  elif [ ! -r "$privateKeyfile" ]; then
     echo 'Have your private key ready as created during setup, expected at $privateKeyfile .'
  else 
-    sudo ./bin/sign_executable apps/upper_case/upper_case_${appver}_${boincplat} "$privateKeyfile" > apps/upper_case/upper_case_${appver}_${boincplat}.sig
+    sudo ./bin/sign_executable apps/upper_case/$appver/$boincplat/upper_case_${appver}_${boincplat} "$privateKeyfile" | sudo tee apps/upper_case/$appver/$boincplat/upper_case_${appver}_${boincplat}.sig
  fi
  }}}
  



More information about the pkg-boinc-commits mailing list