1618018 - Make cups systemd unit files more upstream-like
This commit is contained in:
parent
7fc03f9ac2
commit
24d583ff4c
@ -1,6 +1,6 @@
|
|||||||
diff -up cups-2.2.8/scheduler/main.c.systemd-socket cups-2.2.8/scheduler/main.c
|
diff -up cups-2.2.8/scheduler/main.c.systemd-socket cups-2.2.8/scheduler/main.c
|
||||||
--- cups-2.2.8/scheduler/main.c.systemd-socket 2018-06-05 18:06:54.000000000 +0200
|
--- cups-2.2.8/scheduler/main.c.systemd-socket 2018-06-05 18:06:54.000000000 +0200
|
||||||
+++ cups-2.2.8/scheduler/main.c 2018-06-08 17:32:39.417600671 +0200
|
+++ cups-2.2.8/scheduler/main.c 2018-09-19 10:38:09.285892238 +0200
|
||||||
@@ -681,8 +681,16 @@ main(int argc, /* I - Number of comm
|
@@ -681,8 +681,16 @@ main(int argc, /* I - Number of comm
|
||||||
|
|
||||||
#ifdef HAVE_ONDEMAND
|
#ifdef HAVE_ONDEMAND
|
||||||
@ -21,20 +21,19 @@ diff -up cups-2.2.8/scheduler/main.c.systemd-socket cups-2.2.8/scheduler/main.c
|
|||||||
cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started in foreground.");
|
cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started in foreground.");
|
||||||
diff -up cups-2.2.8/scheduler/org.cups.cupsd.path.in.systemd-socket cups-2.2.8/scheduler/org.cups.cupsd.path.in
|
diff -up cups-2.2.8/scheduler/org.cups.cupsd.path.in.systemd-socket cups-2.2.8/scheduler/org.cups.cupsd.path.in
|
||||||
--- cups-2.2.8/scheduler/org.cups.cupsd.path.in.systemd-socket 2018-06-05 18:06:54.000000000 +0200
|
--- cups-2.2.8/scheduler/org.cups.cupsd.path.in.systemd-socket 2018-06-05 18:06:54.000000000 +0200
|
||||||
+++ cups-2.2.8/scheduler/org.cups.cupsd.path.in 2018-06-08 17:32:39.417600671 +0200
|
+++ cups-2.2.8/scheduler/org.cups.cupsd.path.in 2018-09-19 10:46:11.246666713 +0200
|
||||||
@@ -3,7 +3,7 @@ Description=CUPS Scheduler
|
@@ -1,6 +1,6 @@
|
||||||
PartOf=org.cups.cupsd.service
|
[Unit]
|
||||||
|
Description=CUPS Scheduler
|
||||||
|
-PartOf=org.cups.cupsd.service
|
||||||
|
+PartOf=cups.service
|
||||||
|
|
||||||
[Path]
|
[Path]
|
||||||
-PathExists=@CUPS_CACHEDIR@/org.cups.cupsd
|
PathExists=@CUPS_CACHEDIR@/org.cups.cupsd
|
||||||
+PathExistsGlob=@CUPS_REQUESTS@/d*
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
diff -up cups-2.2.8/scheduler/org.cups.cupsd.service.in.systemd-socket cups-2.2.8/scheduler/org.cups.cupsd.service.in
|
diff -up cups-2.2.8/scheduler/org.cups.cupsd.service.in.systemd-socket cups-2.2.8/scheduler/org.cups.cupsd.service.in
|
||||||
--- cups-2.2.8/scheduler/org.cups.cupsd.service.in.systemd-socket 2018-06-08 17:32:39.417600671 +0200
|
--- cups-2.2.8/scheduler/org.cups.cupsd.service.in.systemd-socket 2018-06-05 18:06:54.000000000 +0200
|
||||||
+++ cups-2.2.8/scheduler/org.cups.cupsd.service.in 2018-06-08 17:34:09.091888847 +0200
|
+++ cups-2.2.8/scheduler/org.cups.cupsd.service.in 2018-09-19 10:41:11.378295760 +0200
|
||||||
@@ -1,10 +1,11 @@
|
@@ -1,12 +1,13 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=CUPS Scheduler
|
Description=CUPS Scheduler
|
||||||
Documentation=man:cupsd(8)
|
Documentation=man:cupsd(8)
|
||||||
@ -47,3 +46,28 @@ diff -up cups-2.2.8/scheduler/org.cups.cupsd.service.in.systemd-socket cups-2.2.
|
|||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
-Also=org.cups.cupsd.socket org.cups.cupsd.path
|
||||||
|
+Also=cups.socket cups.path
|
||||||
|
WantedBy=printer.target
|
||||||
|
diff -up cups-2.2.8/scheduler/org.cups.cupsd.socket.in.systemd-socket cups-2.2.8/scheduler/org.cups.cupsd.socket.in
|
||||||
|
--- cups-2.2.8/scheduler/org.cups.cupsd.socket.in.systemd-socket 2018-09-19 10:42:21.411681757 +0200
|
||||||
|
+++ cups-2.2.8/scheduler/org.cups.cupsd.socket.in 2018-09-19 10:42:44.819476530 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=CUPS Scheduler
|
||||||
|
-PartOf=org.cups.cupsd.service
|
||||||
|
+PartOf=cups.service
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
|
||||||
|
diff -up cups-2.2.8/scheduler/org.cups.cups-lpd.socket.systemd-socket cups-2.2.8/scheduler/org.cups.cups-lpd.socket
|
||||||
|
--- cups-2.2.8/scheduler/org.cups.cups-lpd.socket.systemd-socket 2018-09-19 10:53:59.222563802 +0200
|
||||||
|
+++ cups-2.2.8/scheduler/org.cups.cups-lpd.socket 2018-09-19 10:54:16.483412464 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=CUPS LPD Server Socket
|
||||||
|
-PartOf=org.cups.cups-lpd.service
|
||||||
|
+PartOf=cups-lpd.service
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=515
|
||||||
|
@ -15,7 +15,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.2.8
|
Version: 2.2.8
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
||||||
@ -65,7 +65,8 @@ Patch22: cups-hp-deviceid-oid.patch
|
|||||||
# same as HP OID
|
# same as HP OID
|
||||||
Patch24: cups-ricoh-deviceid-oid.patch
|
Patch24: cups-ricoh-deviceid-oid.patch
|
||||||
# change to notify type, because when it fails to start, it gives a error
|
# change to notify type, because when it fails to start, it gives a error
|
||||||
# message
|
# message + renaming org.cups.cupsd names, because we have cups units in
|
||||||
|
# in older Fedoras
|
||||||
Patch25: cups-systemd-socket.patch
|
Patch25: cups-systemd-socket.patch
|
||||||
# use IP_FREEBIND, because cupsd cannot bind to not yet existing IP address
|
# use IP_FREEBIND, because cupsd cannot bind to not yet existing IP address
|
||||||
# by default
|
# by default
|
||||||
@ -740,6 +741,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man5/ipptoolfile.5.gz
|
%{_mandir}/man5/ipptoolfile.5.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-4
|
||||||
|
- 1618018 - Make cups systemd unit files more upstream-like
|
||||||
|
|
||||||
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-3
|
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-3
|
||||||
- correcting license
|
- correcting license
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user