[boinc] 01/01: Move boinc-virtualbox to a new boinc-virtualbox package

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Tue Oct 17 12:56:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to branch master
in repository boinc.

commit 985890dbc502a587185692b4caebfdd4f3610627
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Tue Oct 17 14:55:13 2017 +0200

    Move boinc-virtualbox to a new boinc-virtualbox package
---
 debian/boinc-client.postinst     |  5 -----
 debian/boinc-virtualbox.postinst | 28 ++++++++++++++++++++++++++++
 debian/control.in                | 20 ++++++++++++++++++++
 3 files changed, 48 insertions(+), 5 deletions(-)

diff --git a/debian/boinc-client.postinst b/debian/boinc-client.postinst
index 8addde6..dc28e15 100644
--- a/debian/boinc-client.postinst
+++ b/debian/boinc-client.postinst
@@ -44,11 +44,6 @@ case "$1" in
 	    usermod -a -G video boinc || echo "Could not assign boinc user to group 'video'."
 	fi
 
-	# Assign boinc user to group vboxusers if not already the case
-	if ! getent group vboxusers | grep -q boinc; then
-	    usermod -a -G vboxusers boinc || echo "Could not assign boinc user to group 'vboxusers'."
-	fi
-
 	# Make sure the /var/lib/boinc-client directory exists and
 	# is owned by the boinc user.
 	mkdir -p $BOINC_DIR
diff --git a/debian/boinc-virtualbox.postinst b/debian/boinc-virtualbox.postinst
new file mode 100644
index 0000000..1f126b8
--- /dev/null
+++ b/debian/boinc-virtualbox.postinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+# postinst script for boinc-virtualbox
+
+set -e
+
+# Source the debconf shell library.
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	# Assign boinc user to group vboxusers if not already the case
+	if ! getent group vboxusers | grep -q boinc; then
+	    usermod -a -G vboxusers boinc || echo "Could not assign boinc user to group 'vboxusers'."
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/control.in b/debian/control.in
index bb6cc36..4b7834e 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -59,6 +59,26 @@ Package: boinc
 @ BOINC Manager, a graphical monitor and control utility for the
 @ BOINC core client.
 @
+ at Package: boinc-virtualbox
+ at Architecture: amd64 i386
+ at Section: contrib/misc
+ at Priority: optional
+ at Depends: ${misc:Depends}, boinc-client, virtualbox | virtualbox-5.0 | virtualbox-5.1 | virtualbox-5.2
+ at Recommends: virtualbox-ext-pack
+ at Description: metapackage for virtualbox-savvy projects
+@ The Berkeley Open Infrastructure for Network Computing (BOINC) is a
+@ software platform for distributed computing: several initiatives of
+@ various scientific disciplines all compete for the idle time of
+@ desktop computers. The developers' web site at the University of
+@ Berkeley serves as a common portal to the otherwise independently run
+@ projects.
+@ .
+@ Regular users (righteously) often find it an unbearable nuisance to
+@ care for the exact configuration of BOINC for virtualbox-based projects.
+@ This package adds a series of dependencies from the contrib
+@ section to the regular boinc package. This also meant this binary
+@ package to be redistributed in the contrib section of Debian.
+@
 @Package: boinc-client-nvidia-cuda
 @Architecture: amd64 i386 armhf
 @Section: contrib/net

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list