[Pkg-dkms-commits] [SCM] Maintenance of the dkms package branch, master, updated. upstream/2.0.20.4-6-g2f1426c

Giuseppe Iuculano giuseppe at iuculano.it
Wed Dec 24 15:42:06 UTC 2008


The following commit has been merged in the master branch:
commit 2f1426c2b93d02f62492e9b4f8683ff84e2e458c
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date:   Wed Dec 24 15:13:47 2008 +0100

    debian/patches/04-use_su-to-root.patch:  Use su-to-root if available

diff --git a/debian/patches/04-use_su-to-root.patch b/debian/patches/04-use_su-to-root.patch
new file mode 100644
index 0000000..b131c5a
--- /dev/null
+++ b/debian/patches/04-use_su-to-root.patch
@@ -0,0 +1,13 @@
+--- a/dkms
++++ b/dkms
+@@ -3005,7 +3005,9 @@
+     ROOT=""
+     ADMINABLE=""
+     if [ "$USER" != "root" ]; then
+-        if [ -x /usr/bin/gksudo ] && [ ! -z "$DISPLAY" ]; then
++        if [ -x /usr/sbin/su-to-root ] && [ ! -z "$DISPLAY" ]; then
++            ROOT="/usr/sbin/su-to-root -c"
++        elif [ -x /usr/bin/gksudo ] && [ ! -z "$DISPLAY" ]; then
+             ROOT="/usr/bin/gksudo --description 'DKMS Debian package builder' "
+         elif [ -x /usr/bin/kdesu ] && [ ! -z "$DISPLAY" ]; then
+             ROOT="/usr/bin/kdesu"
diff --git a/debian/patches/series b/debian/patches/series
index 245de67..4d0f1dc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-fix_manpage.patch
 02-fix_distribution.patch
 03-remove_dkms_lib_directory_if_empty.patch
+04-use_su-to-root.patch

-- 
Maintenance of the dkms package



More information about the Pkg-dkms-commits mailing list