summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-01-09 15:57:04 +0100
committerSimon Rettberg2017-01-09 15:57:04 +0100
commita33c83a0cd3c2d9eeaba0f1caca720769ed77e3c (patch)
treee50d9c914a1fa14a6f99fba05996af8dea98aade
parent[kdm-theme-bwlp] Run greeter as kdm user, not root (diff)
downloadtm-scripts-a33c83a0cd3c2d9eeaba0f1caca720769ed77e3c.tar.gz
tm-scripts-a33c83a0cd3c2d9eeaba0f1caca720769ed77e3c.tar.xz
tm-scripts-a33c83a0cd3c2d9eeaba0f1caca720769ed77e3c.zip
[cups] Move inactive backends from backends-available to backends, so they become active
-rw-r--r--remote/modules/cups/module.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/modules/cups/module.build b/remote/modules/cups/module.build
index 0128c3e6..2b29bb7d 100644
--- a/remote/modules/cups/module.build
+++ b/remote/modules/cups/module.build
@@ -12,6 +12,10 @@ build() {
list_packet_files >> "$COPYLIST"
tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}"
+ # Move any disabled backends to the backend directory
+ mv -n -- "${MODULE_BUILD_DIR}/usr/lib/cups/backend-available/"* "${MODULE_BUILD_DIR}/usr/lib/cups/backend/"
+ rm -f -- "${MODULE_BUILD_DIR}/usr/lib/cups/backend-available/"*
+
# 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"