[SCM] sddm packaging branch, master, updated. c5b91854dd623f0134f596374d797cc115dca636
Rohan Garg
rohangarg-guest at moszumanska.debian.org
Fri Oct 17 13:34:15 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-std/sddm.git;a=commitdiff;h=c5b9185
The following commit has been merged in the master branch:
commit c5b91854dd623f0134f596374d797cc115dca636
Author: Rohan Garg <rohan at kde.org>
Date: Fri Oct 17 15:34:00 2014 +0200
Add the SDDM config file back in, required for debconf selection
---
debian/sddm.config | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/debian/sddm.config b/debian/sddm.config
new file mode 100644
index 0000000..ed8b8c5
--- /dev/null
+++ b/debian/sddm.config
@@ -0,0 +1,71 @@
+#!/bin/sh
+# Debian sddm package configuration script
+# based on xdm script
+# Copyright 2000-2001 Branden Robinson.
+# Licensed under the GNU General Public License, version 2. See the file
+# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
+
+set -e
+
+# source debconf library
+. /usr/share/debconf/confmodule
+
+# set default display manager
+DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
+
+OWNERS=
+if db_metaget shared/default-x-display-manager owners; then
+ OWNERS="$RET"
+fi
+
+CHOICES=
+if db_metaget shared/default-x-display-manager choices; then
+ CHOICES="$RET"
+fi
+
+if [ "$OWNERS" != "$CHOICES" ]; then
+ db_subst shared/default-x-display-manager choices "$OWNERS" || :
+ db_fset shared/default-x-display-manager seen false || :
+fi
+
+# debconf is not a registry; use the current contents of the default display
+# manager file to pre-answer the question if possible
+if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
+ CURRENT_DEFAULT=$(basename "$(grep -v '^[[:space:]]*#' \
+ "$DEFAULT_DISPLAY_MANAGER_FILE" |
+ head -n 1)")
+ if [ -n "$CURRENT_DEFAULT" ]; then
+ db_set shared/default-x-display-manager "$CURRENT_DEFAULT"
+ fi
+else
+ CURRENT_DEFAULT=
+ if db_get shared/default-x-display-manager; then
+ CURRENT_DEFAULT="$RET"
+ fi
+fi
+
+# when installing from scratch as part of a release upgrade, default to
+# sddm, otherwise ask
+if [ -z "$2" -a -n "$RELEASE_UPGRADE_IN_PROGRESS" ]; then
+ db_set shared/default-x-display-manager sddm
+ db_fset shared/default-x-display-manager seen true
+else
+ db_input high shared/default-x-display-manager || :
+ db_go || :
+fi
+
+# using this display manager?
+NEW_DEFAULT=
+if db_get shared/default-x-display-manager; then
+ NEW_DEFAULT="$RET"
+fi
+
+# move the default display manager file if we are going to change it
+if [ -n "$NEW_DEFAULT" ]; then
+ if [ "$NEW_DEFAULT" != "$CURRENT_DEFAULT" ]; then
+ if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
+ mv "$DEFAULT_DISPLAY_MANAGER_FILE" \
+ "${DEFAULT_DISPLAY_MANAGER_FILE}.dpkg-tmp"
+ fi
+ fi
+fi
--
sddm packaging
More information about the pkg-kde-commits
mailing list