diff options
| author | Simon Rettberg | 2014-09-04 15:27:53 +0200 |
|---|---|---|
| committer | root | 2014-09-04 15:27:53 +0200 |
| commit | 85bab4ebda008936fab76bb314c940261a0e0ed4 (patch) | |
| tree | e2bf860c9640d721f4bd585245c92c2f4d883eef /remote/modules/cups/module.build | |
| parent | Merge branch 'master' of git://git.openslx.org/openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-85bab4ebda008936fab76bb314c940261a0e0ed4.tar.gz tm-scripts-85bab4ebda008936fab76bb314c940261a0e0ed4.tar.xz tm-scripts-85bab4ebda008936fab76bb314c940261a0e0ed4.zip | |
[cups] Fix ghostscript dependencies for Ubuntu 14.04
Diffstat (limited to 'remote/modules/cups/module.build')
| -rw-r--r-- | remote/modules/cups/module.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/remote/modules/cups/module.build b/remote/modules/cups/module.build index 0238f1bd..0128c3e6 100644 --- a/remote/modules/cups/module.build +++ b/remote/modules/cups/module.build @@ -5,12 +5,17 @@ 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() { |
