summaryrefslogtreecommitdiffstats
path: root/remote/modules/printergui
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-25 15:24:04 +0100
committerJonathan Bauer2014-03-25 15:24:04 +0100
commit3d1235af060955e271be68240c0ca46bc6d81b03 (patch)
treeef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/printergui
parent[rootfs-stage32] /var/log/openslx in tmpfiles.d (diff)
downloadtm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/modules/printergui')
-rw-r--r--remote/modules/printergui/module.build25
-rw-r--r--remote/modules/printergui/module.conf9
-rw-r--r--remote/modules/printergui/module.conf.opensuse7
-rw-r--r--remote/modules/printergui/module.conf.ubuntu7
4 files changed, 48 insertions, 0 deletions
diff --git a/remote/modules/printergui/module.build b/remote/modules/printergui/module.build
new file mode 100644
index 00000000..2ee49154
--- /dev/null
+++ b/remote/modules/printergui/module.build
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+fetch_source() {
+ git clone "${REQUIRED_GIT}" src
+ cd src
+ git checkout "$REQUIRED_COMMIT"
+ cd ..
+}
+
+build() {
+ local SRCDIR="${MODULE_DIR}/src/"
+ local DESTDIR="$MODULE_BUILD_DIR/opt/openslx/cups"
+
+ mkdir -p "$DESTDIR"
+ cd "$DESTDIR" || perror "Could not cd to $DESTDIR!"
+ pinfo "Running cmake"
+ cmake "$SRCDIR/" || perror "'cmake' failed (e.g. not installed)."
+ pinfo "Running make"
+ make || perror "'make' failed."
+ chmod 0700 "$DESTDIR/printpwgui" # So picky cupsd won't drop privileges to lp
+}
+post_copy() {
+ :
+}
+
diff --git a/remote/modules/printergui/module.conf b/remote/modules/printergui/module.conf
new file mode 100644
index 00000000..17203d3e
--- /dev/null
+++ b/remote/modules/printergui/module.conf
@@ -0,0 +1,9 @@
+REQUIRED_GIT="git://git.openslx.org/openslx-ng/printergui.git"
+REQUIRED_COMMIT="HEAD"
+REQUIRED_BINARIES="
+ printergui
+ printpwgui
+"
+REQUIRED_SYSTEM_FILES="
+"
+
diff --git a/remote/modules/printergui/module.conf.opensuse b/remote/modules/printergui/module.conf.opensuse
new file mode 100644
index 00000000..2d4c7a95
--- /dev/null
+++ b/remote/modules/printergui/module.conf.opensuse
@@ -0,0 +1,7 @@
+REQUIRED_INSTALLED_PACKAGES="
+cups-devel
+libqt4-devel
+"
+REQUIRED_CONTENT_PACKAGES="
+cups-devel
+"
diff --git a/remote/modules/printergui/module.conf.ubuntu b/remote/modules/printergui/module.conf.ubuntu
new file mode 100644
index 00000000..2f679912
--- /dev/null
+++ b/remote/modules/printergui/module.conf.ubuntu
@@ -0,0 +1,7 @@
+REQUIRED_INSTALLED_PACKAGES="
+libcups2-dev
+libqt4-dev
+"
+REQUIRED_CONTENT_PACKAGES="
+libcups2-dev
+"