summaryrefslogtreecommitdiffstats
path: root/core/modules/cups/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/cups/module.build')
-rw-r--r--core/modules/cups/module.build24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/modules/cups/module.build b/core/modules/cups/module.build
new file mode 100644
index 00000000..0128c3e6
--- /dev/null
+++ b/core/modules/cups/module.build
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+fetch_source() {
+ :
+}
+
+build() {
+ local COPYLIST file
+ COPYLIST="list_dpkg_output"
+ [ -e "$COPYLIST" ] && rm "$COPYLIST"
+
+ list_packet_files >> "$COPYLIST"
+ tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}"
+
+ # cups insists on overriding PATH, so we need to fix any scripts
+ for file in "${MODULE_BUILD_DIR}"/usr/lib/cups/{filter,backend}/*; do
+ head -n 1 "$file" | grep -q '^#!/' && sed -i '/^#!\//a . \/etc\/environment' "$file"
+ done
+}
+
+post_copy() {
+ :
+}
+