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 +++++++ 2 files changed, 37 insertions(+) create mode 100644 remote/modules/german/german.build create mode 100644 remote/modules/german/german.conf (limited to 'remote/modules') 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 +" + -- cgit v1.2.3-55-g7522