View | Details | Raw Unified | Return to bug 35496
Collapse All | Expand All

(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/conffiles/etc/default/keyboard (-7 / +4 lines)
 Lines 1-19    Link Here 
1
@%@UCRWARNING=# @%@
1
@%@UCRWARNING=# @%@
2
# KEYBOARD CONFIGURATION FILE
2
3
3
# Check /usr/share/doc/keyboard-configuration/README.Debian for
4
# Consult the keyboard(5) manual page.
4
# documentation on what to do after having modified this file.
5
6
# The following variables describe your keyboard and can have the same
7
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
8
# in /etc/X11/xorg.conf.
9
5
10
XKBMODEL="@%@xorg/keyboard/options/XkbModel@%@"
6
XKBMODEL="@%@xorg/keyboard/options/XkbModel@%@"
11
XKBLAYOUT="@%@xorg/keyboard/options/XkbLayout@%@"
7
XKBLAYOUT="@%@xorg/keyboard/options/XkbLayout@%@"
12
XKBVARIANT="@%@xorg/keyboard/options/XkbVariant@%@"
8
XKBVARIANT="@%@xorg/keyboard/options/XkbVariant@%@"
13
XKBOPTIONS="@%@xorg/keyboard/options/XkbOptions@%@"
9
XKBOPTIONS="@%@xorg/keyboard/options/XkbOptions@%@"
14
10
11
BACKSPACE="guess"
12
15
# If you don't want to use the XKB layout on the console, you can
13
# If you don't want to use the XKB layout on the console, you can
16
# specify an alternative keymap.  Make sure it will be accessible
14
# specify an alternative keymap.  Make sure it will be accessible
17
# before /usr is mounted.
15
# before /usr is mounted.
18
KMAP=/etc/console/boottime.kmap.gz
16
KMAP=/etc/console/boottime.kmap.gz
19
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/conffiles/keymap.py (-38 lines)
 Lines 1-38    Link Here 
1
# -*- coding: utf-8 -*-
2
#
3
# Univention Configuration Registry
4
#  config registry module for the network interfaces
5
#
6
# Copyright 2009-2014 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
import os
34
35
def handler(configRegistry, changes):
36
	for keymap in set(changes):
37
		if configRegistry.get(keymap):
38
			os.system('/usr/sbin/install-keymap "%s"' % configRegistry[keymap])
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/conffiles/xkbKeyboard.py (+2 lines)
 Lines 32-36    Link Here 
32
32
33
import os
33
import os
34
34
35
35
def handler(configRegistry, changes):
36
def handler(configRegistry, changes):
36
	os.system('/sbin/udevadm trigger --subsystem-match=input --action=change')
37
	os.system('/sbin/udevadm trigger --subsystem-match=input --action=change')
38
	os.system('/bin/setupcon --force --save')
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-base-files (4.0.0-5) unstable; urgency=low
2
3
  * Remove deprecated keyboard layout handling (Bug #35522)
4
5
 -- Philipp Hahn <hahn@univention.de>  Thu, 31 Jul 2014 14:49:40 +0200
6
1
univention-base-files (4.0.0-4) unstable; urgency=low
7
univention-base-files (4.0.0-4) unstable; urgency=low
2
8
3
  * Update templates for /etc/init.d/ files (Bug #35522)
9
  * Update templates for /etc/init.d/ files (Bug #35522)
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/univention-base-files.postinst (-25 / +1 lines)
 Lines 145-178   if [ -e /etc/init.d/rdate ]; then Link Here 
145
	chmod +x /etc/init.d/rdate
145
	chmod +x /etc/init.d/rdate
146
fi
146
fi
147
147
148
eval "$(univention-config-registry shell locale locale/keymap)"
149
if [ "$locale" = "de_DE@euro" ]; then
150
	locale="de_DE@euro:ISO-8859-15"
151
	univention-config-registry set locale="$locale"
152
elif [ "$locale" = "de_DE" ]; then
153
	locale="de_DE:ISO-8859-15"
154
	univention-config-registry set locale="$locale"
155
fi
156
if [ -n "$locale" ]; then
148
if [ -n "$locale" ]; then
157
	locale-gen || true
149
	locale-gen || true
158
fi
150
fi
159
if [ -z "$locale_keymap" ]; then
151
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/keymap.py 4~
160
	# try to catch the keymap from /etc/console/boottime.kmap.gz
161
	if [ -e /etc/console/boottime.kmap.gz ]; then
162
		md5_boottime=$(md5sum /etc/console/boottime.kmap.gz | sed -e 's| .*||')
163
		for f in $(find /usr/share/keymaps/i386/); do
164
			if [ -d "$f" ]; then
165
				continue
166
			fi
167
			md5_file=$(md5sum "$f" | sed -e 's| .*||')
168
			if [ "$md5_boottime" = "$md5_file" ]; then
169
				univention-config-registry set locale/keymap=$(echo "$f" | sed -e 's|.*/||;s|.kmap.gz||')
170
				break
171
			fi
172
		done
173
	fi
174
fi
175
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/set_locale.py 1.0.48~ -- "$@"
176
152
177
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
153
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
178
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
154
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/univention-base-files.postrm (-1 / +1 lines)
 Lines 35-41   set -e Link Here 
35
if test "$1" = "purge"; then
35
if test "$1" = "purge"; then
36
	rm -rf /var/cache/univention-baseconfig
36
	rm -rf /var/cache/univention-baseconfig
37
fi
37
fi
38
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/set_locale.py 1.0.48~ -- "$@"
38
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/keymap.py 4~
39
39
40
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
40
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
41
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
41
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/univention-base-files.preinst (-2 / +2 lines)
 Lines 36-43   dpkg-divert --rename --quiet --divert /etc/motd.debian --package univention-base Link Here 
36
# https://forge.univention.org/bugzilla/show_bug.cgi?id=27759
36
# https://forge.univention.org/bugzilla/show_bug.cgi?id=27759
37
dpkg-divert --rename --quiet --divert /etc/motd.tail.debian --package univention-base-files --add /etc/motd.tail
37
dpkg-divert --rename --quiet --divert /etc/motd.tail.debian --package univention-base-files --add /etc/motd.tail
38
38
39
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/set_locale.py 1.0.48~ -- "$@"
39
dpkg-maintscript-helper rm_conffile /etc/univention/templates/modules/keymap.py 4~
40
rm -f /etc/univention/templates/modules/set_locale.pyc || true
40
rm -f /etc/univention/templates/modules/keymap.pyc
41
41
42
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
42
# <https://forge.univention.org/bugzilla/show_bug.cgi?id=26058>
43
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
43
dpkg-maintscript-helper mv_conffile /etc/univention/templates/files/etc/network/interfaces /etc/univention/templates/files/etc/network/interfaces.d/10-default 2.0.2-1~ -- "$@"
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/univention-base-files.univention-config-registry (-4 lines)
 Lines 204-213   Variables: interfaces/primary Link Here 
204
Type: file
204
Type: file
205
File: etc/bash.bashrc
205
File: etc/bash.bashrc
206
206
207
Type: module
208
Module: keymap.py
209
Variables: locale/keymap
210
211
Type: file
207
Type: file
212
File: etc/default/keyboard
208
File: etc/default/keyboard
213
Variables: xorg/keyboard/options/XkbModel
209
Variables: xorg/keyboard/options/XkbModel
(-)a/branches/ucs-4.0/ucs-4.0-0/base/univention-base-files/debian/univention-base-files.univention-config-registry-variables (-6 lines)
 Lines 321-332   Description[en]=Localisation properties such as time/date formats and the prefer Link Here 
321
Type=str
321
Type=str
322
Categories=system-locale
322
Categories=system-locale
323
323
324
[locale/keymap]
325
Description[de]=Die verwendete Tastaturbelegung. Sie kann über das UMC-Modul 'Systemeinstellungen' geändert werden.
326
Description[en]=The keyboard layout in use. It can modified using the UMC module 'System settings'.
327
Type=str
328
Categories=system-locale
329
330
[logrotate/rotate]
324
[logrotate/rotate]
331
Description[de]=Logdateien werden nach diesem Kriterium rotiert, z.B. "daily", "weekly", "monthly", oder eine Größenbegrenzung wie "size 100M". Siehe 'man logrotate.conf' für weitere Formate.
325
Description[de]=Logdateien werden nach diesem Kriterium rotiert, z.B. "daily", "weekly", "monthly", oder eine Größenbegrenzung wie "size 100M". Siehe 'man logrotate.conf' für weitere Formate.
332
Description[en]=Log files are rotated according to this criterion, e.g. "daily", "weekly", "monthly" or up to a size limit like "size 100M". See 'man logrotate.conf' for additional formats.
326
Description[en]=Log files are rotated according to this criterion, e.g. "daily", "weekly", "monthly" or up to a size limit like "size 100M". See 'man logrotate.conf' for additional formats.

Return to bug 35496