summaryrefslogtreecommitdiffstats
path: root/core/modules/cups-sicgs
diff options
context:
space:
mode:
authorJonathan Bauer2017-03-09 16:08:14 +0100
committerJonathan Bauer2017-03-09 16:08:14 +0100
commit7c114e60d48c50723f84348c372bd767996100c7 (patch)
treeb547f46d6e8a95f4688393e211b5d997e71c126b /core/modules/cups-sicgs
parent[rfs-stage31] Make bwLehrpool logo black in exam mode (diff)
downloadmltk-7c114e60d48c50723f84348c372bd767996100c7.tar.gz
mltk-7c114e60d48c50723f84348c372bd767996100c7.tar.xz
mltk-7c114e60d48c50723f84348c372bd767996100c7.zip
[cups-sicgs] support canon secure print
This installs sicgsfilter and sicnc binaries.
Diffstat (limited to 'core/modules/cups-sicgs')
-rw-r--r--core/modules/cups-sicgs/module.build28
-rw-r--r--core/modules/cups-sicgs/module.conf5
2 files changed, 33 insertions, 0 deletions
diff --git a/core/modules/cups-sicgs/module.build b/core/modules/cups-sicgs/module.build
new file mode 100644
index 00000000..212ac784
--- /dev/null
+++ b/core/modules/cups-sicgs/module.build
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+
+fetch_source() {
+ [ -s "${MODULE_DIR}/src/driver.zip" ] && return 0
+ rm -rf -- "${MODULE_DIR}/src"
+ mkdir -p "${MODULE_DIR}/src"
+ wget -O "${MODULE_DIR}/src/driver.zip" "${REQUIRED_ARCHIVE}" || perror "Could not create ${MODULE_DIR}/src"
+}
+
+build() {
+ cd "${MODULE_DIR}/src/" || perror "Could not cd to '${MODULE_DIR}/src'. Did fetch_source work?"
+ # Initial archive is zip
+ unzip -j -o "${MODULE_DIR}/src/driver.zip" || perror "Could not extract initial driver.zip"
+ # Then we have two tgz, 32bit and 64bit
+ tar -x -f *x86_64*.tar* --wildcards '*/sic*' || perror "Could not extract binaries from inner tar"
+
+ mkdir -p "${MODULE_BUILD_DIR}/usr/bin"
+ find . -name "sic*" -type f -executable -exec cp {} "${MODULE_BUILD_DIR}/usr/bin" \; \
+ || perror "Could not copy sic* binaries to module build dir"
+
+ cd - &>/dev/null
+}
+
+post_copy() {
+ :
+}
+
diff --git a/core/modules/cups-sicgs/module.conf b/core/modules/cups-sicgs/module.conf
new file mode 100644
index 00000000..c1e2678e
--- /dev/null
+++ b/core/modules/cups-sicgs/module.conf
@@ -0,0 +1,5 @@
+REQUIRED_ARCHIVE="http://files.canon-europe.com/files/soft45525/Software/CQue_v3.0.2_Linux_32_64_DE.tar.zip"
+REQUIRED_BINARIES="
+ sicgsfilter
+ sicnc
+"