From 3d1235af060955e271be68240c0ca46bc6d81b03 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 25 Mar 2014 15:24:04 +0100 Subject: [modules] new module naming convention rename $MODULE.{conf,build} to module.{conf,build} --- remote/modules/printergui/module.build | 25 +++++++++++++++++++++++++ remote/modules/printergui/module.conf | 9 +++++++++ remote/modules/printergui/module.conf.opensuse | 7 +++++++ remote/modules/printergui/module.conf.ubuntu | 7 +++++++ 4 files changed, 48 insertions(+) create mode 100644 remote/modules/printergui/module.build create mode 100644 remote/modules/printergui/module.conf create mode 100644 remote/modules/printergui/module.conf.opensuse create mode 100644 remote/modules/printergui/module.conf.ubuntu (limited to 'remote/modules/printergui') 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 +" -- cgit v1.2.3-55-g7522