From a01f5af07efe0819cd7f71d8ea9753a39f71c4a9 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Wed, 9 Oct 2013 19:03:28 +0200 Subject: 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. --- remote/modules/cups/cups.build | 19 +++++++++++++++++++ remote/modules/cups/cups.conf | 8 ++++++++ remote/modules/cups/cups.conf.ubuntu | 8 ++++++++ .../modules/cups/data/etc/systemd/system/cups.service | 8 ++++++++ .../systemd/system/network.target.wants/cups.service | 1 + 5 files changed, 44 insertions(+) create mode 100644 remote/modules/cups/cups.build create mode 100644 remote/modules/cups/cups.conf create mode 100644 remote/modules/cups/cups.conf.ubuntu create mode 100644 remote/modules/cups/data/etc/systemd/system/cups.service create mode 120000 remote/modules/cups/data/etc/systemd/system/network.target.wants/cups.service (limited to 'remote/modules/cups') diff --git a/remote/modules/cups/cups.build b/remote/modules/cups/cups.build new file mode 100644 index 00000000..0238f1bd --- /dev/null +++ b/remote/modules/cups/cups.build @@ -0,0 +1,19 @@ +#!/bin/bash + +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + +} + +post_copy() { + : +} + diff --git a/remote/modules/cups/cups.conf b/remote/modules/cups/cups.conf new file mode 100644 index 00000000..8c30a08b --- /dev/null +++ b/remote/modules/cups/cups.conf @@ -0,0 +1,8 @@ +REQUIRED_BINARIES=" + cupsd +" +REQUIRED_DIRECTORIES=" + /usr/lib/cups/ + /usr/share/cups/ +" +REQUIRED_FILES="" diff --git a/remote/modules/cups/cups.conf.ubuntu b/remote/modules/cups/cups.conf.ubuntu new file mode 100644 index 00000000..6eeb9aeb --- /dev/null +++ b/remote/modules/cups/cups.conf.ubuntu @@ -0,0 +1,8 @@ +REQUIRED_INSTALLED_PACKAGES=" + cups + cups-daemon +" +REQUIRED_CONTENT_PACKAGES=" + cups + cups-daemon +" diff --git a/remote/modules/cups/data/etc/systemd/system/cups.service b/remote/modules/cups/data/etc/systemd/system/cups.service new file mode 100644 index 00000000..38beff56 --- /dev/null +++ b/remote/modules/cups/data/etc/systemd/system/cups.service @@ -0,0 +1,8 @@ +[Unit] +Description=Common Unix Printing System +Requires=network.target graphical.target +After=network.target +Before=graphical.target + +[Service] +ExecStart=/usr/sbin/cupsd -f diff --git a/remote/modules/cups/data/etc/systemd/system/network.target.wants/cups.service b/remote/modules/cups/data/etc/systemd/system/network.target.wants/cups.service new file mode 120000 index 00000000..d8578ebb --- /dev/null +++ b/remote/modules/cups/data/etc/systemd/system/network.target.wants/cups.service @@ -0,0 +1 @@ +../cups.service \ No newline at end of file -- cgit v1.2.3-55-g7522