From 899f98e303c2b060bcc4e306a8f97aced11f490b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Jun 2013 19:28:04 +0200 Subject: [german] skeleton for module that activated german utf-8 locales, sets up the terminals properly and loads a german keymap --- remote/modules/german/german.build | 30 ++++++++++++++++++++++ remote/modules/german/german.conf | 7 +++++ remote/rootfs/rootfs-stage32/rootfs-stage32.conf | 2 +- .../rootfs-stage32/rootfs-stage32.conf.zypper | 1 - 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 remote/modules/german/german.build create mode 100644 remote/modules/german/german.conf (limited to 'remote') 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 -- cgit v1.2.3-55-g7522