diff options
| author | Simon Rettberg | 2013-06-03 19:28:04 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-06-03 19:31:42 +0200 |
| commit | 899f98e303c2b060bcc4e306a8f97aced11f490b (patch) | |
| tree | 0dc9d2337b7fafffdb2955f7cc10ebb33b23b30d | |
| parent | Merge branch 'master' of simonslx:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.tar.gz tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.tar.xz tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.zip | |
[german] skeleton for module that activated german utf-8 locales, sets up the terminals properly and loads a german keymap
| -rw-r--r-- | remote/modules/german/german.build | 30 | ||||
| -rw-r--r-- | remote/modules/german/german.conf | 7 | ||||
| -rw-r--r-- | remote/rootfs/rootfs-stage32/rootfs-stage32.conf | 2 | ||||
| -rw-r--r-- | remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper | 1 |
4 files changed, 38 insertions, 2 deletions
diff --git a/remote/modules/german/german.build b/remote/modules/german/german.build new file mode 100644 index 00000000..49ce31d7 --- /dev/null +++ b/remote/modules/german/german.build @@ -0,0 +1,30 @@ +fetch_source() { + : +} + +build() { + # Make sure uncompressed locales are present, so we can fetch german utf8 + if [ ! -d "/usr/lib/locale/de_DE.utf8" ]; then + pinfo "Generating locales..." + locale-gen --purge --no-archive || perror "Could not run locale-gen" + [ ! -d "/usr/lib/locale/de_DE.utf8" ] && perror "locale-gen was executed, but de_DE.utf8 does not exist." + fi + + # Put everything we build or get from the system in build dir + local FILELIST="$MODULE_DIR/list_copy_build" + rm -f "$FILELIST" + + # Copy required directories from source system to build dir + for FILE in ${REQUIRED_DIRECTORIES}; do + [ ! -d "${FILE}" ] && perror "Missing required directory $FILE" + echo ${FILE} >> "${FILELIST}" + done + + # Done collecting file and directory names, copy everything + tarcopy "$(sort -u "$FILELIST")" "$MODULE_BUILD_DIR" +} + +post_copy() { + : +} + diff --git a/remote/modules/german/german.conf b/remote/modules/german/german.conf new file mode 100644 index 00000000..ec22c760 --- /dev/null +++ b/remote/modules/german/german.conf @@ -0,0 +1,7 @@ +REQUIRED_CONTENT_PACKAGES="" +REQUIRED_BINARIES="" +REQUIRED_FILES="" +REQUIRED_DIRECTORIES=" + /usr/lib/locale/de_DE.utf8 +" + diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf index 44f97fa0..3b47d131 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf @@ -47,7 +47,7 @@ REQUIRED_LIBRARIES=" libcap libtinfo libresolv libau" -REQUIRED_DIRECTORIES=" " +REQUIRED_DIRECTORIES="" REQUIRED_FILES=" /etc/environment /etc/issue /etc/inputrc diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper index 3f7f446e..2fd5af1a 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper @@ -48,7 +48,6 @@ REQUIRED_LIBRARIES=" libcap libtinfo libresolv libau" -REQUIRED_DIRECTORIES="" REQUIRED_FILES=" /etc/environment /etc/issue /etc/inputrc |
