cups-2.0.2-rename-systemd-service-files.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 33e0d4c8e450fe69b195422c0880aaa96ca9478d Mon Sep 17 00:00:00 2001
  2. From: Matthias Maier <tamiko@kyomu.43-1.org>
  3. Date: Wed, 19 Nov 2014 18:00:06 +0100
  4. Subject: [PATCH] change systemd service files to gentoo naming scheme
  5. ---
  6. scheduler/Makefile | 10 +++++-----
  7. scheduler/org.cups.cupsd.path.in | 2 +-
  8. scheduler/org.cups.cupsd.service.in | 2 +-
  9. 3 files changed, 7 insertions(+), 7 deletions(-)
  10. diff --git a/scheduler/Makefile b/scheduler/Makefile
  11. index 3e0884a..b354420 100644
  12. --- a/scheduler/Makefile
  13. +++ b/scheduler/Makefile
  14. @@ -203,11 +203,11 @@ install-data:
  15. if test "x$(SYSTEMD_DIR)" != x; then \
  16. echo Installing systemd configuration files...; \
  17. $(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \
  18. - $(INSTALL_DATA) org.cups.cupsd.path $(BUILDROOT)$(SYSTEMD_DIR); \
  19. - $(INSTALL_DATA) org.cups.cupsd.service $(BUILDROOT)$(SYSTEMD_DIR); \
  20. - $(INSTALL_DATA) org.cups.cupsd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
  21. - $(INSTALL_DATA) org.cups.cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cups-lpd@.service; \
  22. - $(INSTALL_DATA) org.cups.cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
  23. + $(INSTALL_DATA) org.cups.cupsd.path $(BUILDROOT)$(SYSTEMD_DIR)/cups.path; \
  24. + $(INSTALL_DATA) org.cups.cupsd.service $(BUILDROOT)$(SYSTEMD_DIR)/cups.service; \
  25. + $(INSTALL_DATA) org.cups.cupsd.socket $(BUILDROOT)$(SYSTEMD_DIR)/cups.socket; \
  26. + $(INSTALL_DATA) org.cups.cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/cups-lpd@.service; \
  27. + $(INSTALL_DATA) org.cups.cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR)/cups-lpd.socket; \
  28. elif test "x$(XINETD)" != x; then \
  29. echo Installing xinetd configuration file for cups-lpd...; \
  30. $(INSTALL_DIR) -m 755 $(BUILDROOT)$(XINETD); \
  31. diff --git a/scheduler/org.cups.cupsd.service.in b/scheduler/org.cups.cupsd.service.in
  32. index 0a27c76..7a04248 100644
  33. --- a/scheduler/org.cups.cupsd.service.in
  34. +++ b/scheduler/org.cups.cupsd.service.in
  35. @@ -7,5 +7,5 @@ ExecStart=@sbindir@/cupsd -l
  36. Type=simple
  37. [Install]
  38. -Also=org.cups.cupsd.socket org.cups.cupsd.path
  39. +Also=cups.socket cups.path
  40. WantedBy=printer.target
  41. --
  42. 2.0.4