[SCM] BOINC packaging branch, master, updated. debian/6.10.17+dfsg-3-281-gb4a5f52
Steffen Moeller
moeller at debian.org
Sat Jul 9 10:34:55 UTC 2011
The following commit has been merged in the master branch:
commit b4a5f52e00135aa7136928d98326a79f30ccc5b6
Author: Dhananjay M Balan <mb.dhananjay at gmail.com>
Date: Sat Jul 9 12:34:28 2011 +0200
Adjusting filenames to how BOINC expects them.
diff --git a/debian/fetch_example_applications.sh b/debian/fetch_example_applications.sh
index cfa6671..08cc1e9 100755
--- a/debian/fetch_example_applications.sh
+++ b/debian/fetch_example_applications.sh
@@ -3,7 +3,12 @@
# This script shall support the initial setup
# of a BOINC server by assisting in the download
# of example applications from Debian.
-#
+#
+# This script downloads the binaries, puts them in a
+# direcotory structure as BOINC
+# wants them( see http://boinc.berkeley.edu/trac/wiki/AppVersionNew ),
+# and then signs them.
+#
# This script is released under the same license
# as BOINC, created and copyright by
# Steffen Moeller <moeller at debian.org>
@@ -23,41 +28,54 @@ deb2boinc[sparc64]="sparc64-linux-gnu"
deb2boinc[mips]="mips-linux-gnu"
deb2boinc[s390]="s390-linux-gnu"
+# Path to your projects key file and sign_executable binary.
+keyfile="/home/dhananjay/projects/test/keys/code_sign_private"
+signapp=/home/dhananjay/projects/test/bin/sign_executable
+
mirror="http://ftp.de.debian.org/debian"
-version="6.12.28+dfsg-2"
+version="6.12.33+dfsg-1"
+shortver=$(echo $version|cut -d . -f1-2)
for arch in ${!deb2boinc[@]}
do
- if [ -d collection/$arch ]; then
- echo "Destination directory 'collection/arch' already exiting ... skipping."
- continue
- fi
-
- if [ ! -r $arch.deb ]; then
- url="$mirror/pool/main/b/boinc/boinc-server-maker_${version}_${arch}.deb"
- if ! wget -O - $url > ${arch}.deb ; then
- echo "Platform '$arch' failed to download .... skipping."
- rm -f ${arch}.deb
- continue
+ if [ ! -r $arch.deb ]; then
+ url="$mirror/pool/main/b/boinc/boinc-app-examples_${version}_${arch}.deb"
+ if ! wget -O - $url > ${arch}.deb ; then
+ echo "Platform '$arch' failed to download .... skipping."
+ rm -f ${arch}.deb
+ continue
+ fi
fi
- fi
-
- ar xvf ${arch}.deb data.tar.gz
- echo "Untaring"
- tar xzf data.tar.gz ./usr/lib/boinc-server/apps/
- echo "Contents:"
- ls ./usr/lib/boinc-server/apps/
- mkdir -p collection
- mv ./usr/lib/boinc-server/apps collection/$arch
- mv usr deleteThisDir
- rm -r deleteThisDir
-
- for f in collection/$arch/*
- do
- echo renaming $f to ${f}_${deb2boinc[$arch]}
- mv $f ${f}_${deb2boinc[$arch]}
- done
+ ar xvf ${arch}.deb data.tar.gz
+ echo "Untaring"
+ tar xzf data.tar.gz ./usr/lib/boinc-server/apps/
+ echo "Contents:"
+ ls ./usr/lib/boinc-server/apps/
+ mkdir -p collection
+ mv ./usr/lib/boinc-server/apps collection/$arch
+ mv usr deleteThisDir
+ rm -r deleteThisDir
+
+ echo Reorganising and signing the application binaries.
+
+ for f in collection/$arch/*
+ do
+ appname=`echo $f|cut -d / -f 3`
+ apppath=apps/$appname/$shortver/${deb2boinc[$arch]}/
+ mkdir -p $apppath
+ mv $f $apppath
+ ${signapp} $apppath/$appname $keyfile >> $apppath/${appname}.sig
+ done
+
+
done
+echo cleaning up.
+
+if [ -d collection ]
+then
+ rm -r collection
+fi
+
--
BOINC packaging
More information about the pkg-boinc-commits
mailing list