[Lunar-commits] <moonbase> boinc-svn: BUILD update

Duncan Gibson engelsman at lunar-linux.org
Thu Mar 24 21:36:16 CET 2011


commit 613c4ab2a4a27acf802661434d4e4e78ade5846f
Author: Christian Krause <kizkizzbangbang at googlemail.com>
Date:   Thu Mar 24 21:36:16 2011 +0100

    boinc-svn: BUILD update
    
    - using default_build + OPTS+= instead of ./configure ... + default_make
    - added message to the boinc-user creation
    - installs the bash completion script now
---
 zbeta/boinc-svn/BUILD |   39 +++++++++++++++------------------------
 1 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/zbeta/boinc-svn/BUILD b/zbeta/boinc-svn/BUILD
index 5159366..e7834f2 100644
--- a/zbeta/boinc-svn/BUILD
+++ b/zbeta/boinc-svn/BUILD
@@ -21,33 +21,24 @@
         OPTS+=" --without-ssl --without-libgnutls"
   fi &&
 
-  # applies defaults to configure
-  # TODO: conf server and manager
-  ./configure --build=$BUILD                   \
-              --prefix=/usr                    \
-              --bindir=/usr/bin                \
-              --infodir=/usr/share/info        \
-              --mandir=/usr/share/man          \
-              --enable-shared                  \
-              --disable-static                 \
-              --enable-libraries               \
-              --enable-client                  \
-              --enable-dynamic-client-linkage  \
-              --disable-manager                \
-              --disable-server                 \
-              $OPTS                           &&
-
-  default_make  &&
+  # TODO: move enable/disable client/server/manager to CONFIGURE
+  OPTS+=" --enable-shared --disable-static --enable-libraries --enable-client --enable-dynamic-client-linkage --disable-manager --disable-server" &&
+
+  default_build  &&
 
   # creates 'boinc' user if necessary
   if grep "^boinc:" /etc/passwd > /dev/null; then
-    echo "user 'boinc' already exists"
+    message "${MESSAGE_COLOR}user 'boinc' already exists${DEFAULT_COLOR}"
   else
-    useradd --system              \
-            --user-group          \
-            --create-home         \
-            --home /var/lib/boinc \
-            boinc
-  fi
+    useradd --system               \
+            --user-group           \
+            --create-home          \
+            --home /var/lib/boinc  \
+            boinc                 &&
+    message "${MESSAGE_COLOR}user 'boinc' created${DEFAULT_COLOR}"
+  fi  &&
+
+  # install bash completion
+  install -m755 client/scripts/boinc.bash /etc/bash_completion.d/boinc-bash-completion.sh
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list