summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2016-07-14 14:02:43 +0200
committerroot2016-07-14 14:02:43 +0200
commitc5dd230a9ea5b45736b6109ac901322c26aaf1dc (patch)
treef940b0ec6cffa31a801783af028b96f77b8f04bb
parentMerge branch 'master' of git://git.openslx.org/openslx-ng/tm-scripts (diff)
downloadtm-scripts-c5dd230a9ea5b45736b6109ac901322c26aaf1dc.tar.gz
tm-scripts-c5dd230a9ea5b45736b6109ac901322c26aaf1dc.tar.xz
tm-scripts-c5dd230a9ea5b45736b6109ac901322c26aaf1dc.zip
[xscreensaver] initial module
-rwxr-xr-xremote/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver8
-rw-r--r--remote/modules/xscreensaver/module.build13
-rw-r--r--remote/modules/xscreensaver/module.conf8
-rw-r--r--remote/modules/xscreensaver/module.conf.ubuntu6
4 files changed, 35 insertions, 0 deletions
diff --git a/remote/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver b/remote/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver
new file mode 100755
index 00000000..385a8280
--- /dev/null
+++ b/remote/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver
@@ -0,0 +1,8 @@
+#!/bin/ash
+
+if ! which xscreensaver; then
+ echo "Failed to find xscreensaver in '$PATH'!"
+ return 1
+fi
+
+xscreensaver -no-splash &
diff --git a/remote/modules/xscreensaver/module.build b/remote/modules/xscreensaver/module.build
new file mode 100644
index 00000000..435a7b10
--- /dev/null
+++ b/remote/modules/xscreensaver/module.build
@@ -0,0 +1,13 @@
+fetch_source() {
+ :
+}
+
+build() {
+ COPYLIST="list_dpkg_output"
+ list_packet_files > "$COPYLIST"
+ tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"
+}
+
+post_copy() {
+ :
+}
diff --git a/remote/modules/xscreensaver/module.conf b/remote/modules/xscreensaver/module.conf
new file mode 100644
index 00000000..2134f0cb
--- /dev/null
+++ b/remote/modules/xscreensaver/module.conf
@@ -0,0 +1,8 @@
+REQUIRED_BINARIES="
+ xscreensaver
+ xscreensaver-command
+"
+REQUIRED_LIBRARIES=""
+REQUIRED_DIRECTORIES="
+ /etc/pam.d/
+"
diff --git a/remote/modules/xscreensaver/module.conf.ubuntu b/remote/modules/xscreensaver/module.conf.ubuntu
new file mode 100644
index 00000000..b25b886f
--- /dev/null
+++ b/remote/modules/xscreensaver/module.conf.ubuntu
@@ -0,0 +1,6 @@
+REQUIRED_CONTENT_PACKAGES="
+ xscreensaver
+"
+REQUIRED_INSTALLED_PACKAGES="
+ xscreensaver
+"