cups: Use systemd files provided by CUPS

This commit is contained in:
Jascha Geerds
2015-04-28 20:37:34 +02:00
committed by Domen Kožar
parent 252bc4a4b9
commit e9cf6cd34f
2 changed files with 16 additions and 6 deletions

View File

@@ -58,6 +58,19 @@ stdenv.mkDerivation {
''
# Delete obsolete stuff that conflicts with cups-filters.
rm -rf $out/share/cups/banners $out/share/cups/data/testprint
# Rename systemd files provided by CUPS
for f in $out/lib/systemd/system/*; do
substituteInPlace "$f" \
--replace "org.cups.cupsd" "cups" \
--replace "org.cups." ""
if [[ "$f" =~ .*cupsd\..* ]]; then
mv "$f" "''${f/org\.cups\.cupsd/cups}"
else
mv "$f" "''${f/org\.cups\./}"
fi
done
'';
meta = {