summaryrefslogtreecommitdiffstats
path: root/remote/modules/printergui
diff options
context:
space:
mode:
authorManuel Schneider2013-10-09 19:03:28 +0200
committerManuel Schneider2013-10-09 19:03:28 +0200
commita01f5af07efe0819cd7f71d8ea9753a39f71c4a9 (patch)
treee7b18dbcf3ab80afb18d83937fb652f9d027ef9e /remote/modules/printergui
parent[vbox] Unneded REQUIRED_LIB deleted. (diff)
downloadtm-scripts-a01f5af07efe0819cd7f71d8ea9753a39f71c4a9.tar.gz
tm-scripts-a01f5af07efe0819cd7f71d8ea9753a39f71c4a9.tar.xz
tm-scripts-a01f5af07efe0819cd7f71d8ea9753a39f71c4a9.zip
Contains the complete bunch of software needed for the printing system in the pools:
- A lpd server is started in vmchooser-run_virt. - A iptables rule redirects traffic from sourceport 515 to destport 5515 - Added module cups, the printserver in the minilinux. - Binaries an libs needed for a minimal cups installation. - Systemd-service for cups. - Added module printergui, the custom cups frontend. - Is a single GUI-binary that pops up in case of a printjob sent to the lpd. - Modules are enabled in stage32.
Diffstat (limited to 'remote/modules/printergui')
-rw-r--r--remote/modules/printergui/printergui.build19
-rw-r--r--remote/modules/printergui/printergui.conf7
-rw-r--r--remote/modules/printergui/printergui.conf.ubuntu6
3 files changed, 32 insertions, 0 deletions
diff --git a/remote/modules/printergui/printergui.build b/remote/modules/printergui/printergui.build
new file mode 100644
index 00000000..b414230c
--- /dev/null
+++ b/remote/modules/printergui/printergui.build
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+fetch_source() {
+ git clone "${REQUIRED_GIT}" src
+}
+
+build() {
+ local SRCDIR="${MODULE_DIR}/src/"
+
+ mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin"
+ cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Cpdspofj not cd!"
+ pinfo "Running qmake"
+ qmake-qt4 "$SRCDIR/src/printergui.pro" -r -spec linux-g++ || perror "'qmake' failed."
+ pinfo "Running make"
+ make || perror "'make' failed."
+}
+post_copy() {
+ chmod a+rwt "${TARGET_BUILD_DIR}/var/spool/STANDARD"
+}
diff --git a/remote/modules/printergui/printergui.conf b/remote/modules/printergui/printergui.conf
new file mode 100644
index 00000000..26203a80
--- /dev/null
+++ b/remote/modules/printergui/printergui.conf
@@ -0,0 +1,7 @@
+REQUIRED_GIT="git://git.openslx.org/openslx-ng/printergui.git"
+REQUIRED_BINARIES="
+ printergui
+"
+REQUIRED_SYSTEM_FILES="
+"
+
diff --git a/remote/modules/printergui/printergui.conf.ubuntu b/remote/modules/printergui/printergui.conf.ubuntu
new file mode 100644
index 00000000..3dc662fd
--- /dev/null
+++ b/remote/modules/printergui/printergui.conf.ubuntu
@@ -0,0 +1,6 @@
+REQUIRED_INSTALLED_PACKAGES="
+libcups2-dev
+"
+REQUIRED_CONTENT_PACKAGES="
+libcups2-dev
+"