]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Rename systemd service files to match what the Linux distros use (Issue #30)
authorMichael R Sweet <msweet@msweet.org>
Sun, 15 Nov 2020 13:03:47 +0000 (08:03 -0500)
committerMichael R Sweet <msweet@msweet.org>
Sun, 15 Nov 2020 13:03:47 +0000 (08:03 -0500)
.gitignore
configure
configure.ac
packaging/cups.list.in
packaging/cups.spec.in
scheduler/Makefile
scheduler/cups-lpd.socket [moved from scheduler/org.cups.cups-lpd.socket with 100% similarity]
scheduler/cups-lpdAT.service.in [moved from scheduler/org.cups.cups-lpdAT.service.in with 100% similarity]
scheduler/cups.path.in [moved from scheduler/org.cups.cupsd.path.in with 100% similarity]
scheduler/cups.service.in [moved from scheduler/org.cups.cupsd.service.in with 100% similarity]
scheduler/cups.socket.in [moved from scheduler/org.cups.cupsd.socket.in with 100% similarity]

index a5e32e600aa0d5ef4cdc5892c4e1dd3f19c49306..4bc39c3798f5b4b8443e1b2c482f34f43f5e1311 100644 (file)
 *.bck
 *.cgi
 *.o
-autom4te.cache
-config.h
-config.log
-config.status
-cups-config
-Makedefs
-backend/dnssd
-backend/http
-backend/https
-backend/ipp
-backend/ipps
-backend/lpd
-backend/mdns
-backend/snmp
-backend/socket
-backend/test1284
-backend/testbackend
-backend/testsupplies
-backend/usb
-berkeley/lpc
-berkeley/lpq
-berkeley/lpr
-berkeley/lprm
-cgi-bin/testcgi
-cgi-bin/testhi
-cgi-bin/testhi.index
-cgi-bin/testtemplate
-conf/cups-files.conf
-conf/cupsd.conf
-conf/mime.convs
-conf/pam.std
-conf/snmp.conf
-cups/libcups.dylib
-cups/libcups.2.dylib
-cups/libcups.so
-cups/libcups.so.2
-cups/libcupsimage.dylib
-cups/libcupsimage.2.dylib
-cups/libcupsimage.so
-cups/libcupsimage.so.2
-cups/locale/
-cups/rasterbench
-cups/test.pwg
-cups/test.raster
-cups/testadmin
-cups/testarray
-cups/testcache
-cups/testclient
-cups/testconflicts
-cups/testcreds
-cups/testcups
-cups/testdest
-cups/testfile
-cups/testgetdests
-cups/testhttp
-cups/testi18n
-cups/testipp
-cups/testlang
-cups/testoptions
-cups/testppd
-cups/testpwg
-cups/testraster
-cups/testsnmp
-cups/testthreads
-cups/tlscheck
-desktop/cups.desktop
-doc/index.html
-doc/*/index.html
-filter/commandtops
-filter/gziptoany
-filter/pstops
-filter/rastertoepson
-filter/rastertohp
-filter/rastertolabel
-filter/rastertopwg
-locale/checkpo
-locale/po2strings
-locale/strings2po
-man/mantohtml
-monitor/bcp
-monitor/tbcp
-notifier/dbus
-notifier/mailto
-notifier/rss
-notifier/testnotify
-packaging/cups.list
-ppdc/genstrings
-ppdc/ppd/
-ppdc/ppd2/
-ppdc/ppdc
-ppdc/ppdc-static
-ppdc/ppdhtml
-ppdc/ppdi
-ppdc/ppdi-static
-ppdc/ppdmerge
-ppdc/ppdpo
-ppdc/sample-import.drv
-ppdc/sample.c
-ppdc/testcatalog
-scheduler/convert
-scheduler/cups-deviced
-scheduler/cups-driverd
-scheduler/cups-exec
-scheduler/cups-lpd
-scheduler/cups-lpd.xinetd
-scheduler/cups.sh
-scheduler/cups.xml
-scheduler/cupsd
-scheduler/cupsfilter
-scheduler/org.cups.cups-lpd.plist
-scheduler/org.cups.cups-lpdAT.service
-scheduler/org.cups.cupsd.path
-scheduler/org.cups.cupsd.service
-scheduler/org.cups.cupsd.socket
-scheduler/testlpd
-scheduler/testmime
-scheduler/testspeed
-scheduler/testsub
-systemv/cancel
-systemv/cupsaccept
-systemv/cupsaddsmb
-systemv/cupsctl
-systemv/cupsdisable
-systemv/cupsenable
-systemv/cupsreject
-systemv/cupstestdsc
-systemv/cupstestppd
-systemv/lp
-systemv/lpadmin
-systemv/lpinfo
-systemv/lpmove
-systemv/lpoptions
-systemv/lpstat
-templates/header.tmpl
-templates/*/header.tmpl
-test/cups-str-*.html
-test/*_log-*
-tools/ippevepcl
-tools/ippeveprinter
-tools/ippeveprinter-static
-tools/ippeveps
-tools/ippfind
-tools/ippfind-static
-tools/ipptool
-tools/ipptool-static
-vcnet/.vs
-vcnet/packages
-vcnet/Win32
-vcnet/x64
-xcode/CUPS.xcodeproj/project.xcworkspace/
-xcode/CUPS.xcodeproj/xcuserdata/
+/autom4te.cache
+/config.h
+/config.log
+/config.status
+/cups-config
+/Makedefs
+/backend/dnssd
+/backend/http
+/backend/https
+/backend/ipp
+/backend/ipps
+/backend/lpd
+/backend/mdns
+/backend/snmp
+/backend/socket
+/backend/test1284
+/backend/testbackend
+/backend/testsupplies
+/backend/usb
+/berkeley/lpc
+/berkeley/lpq
+/berkeley/lpr
+/berkeley/lprm
+/cgi-bin/testcgi
+/cgi-bin/testhi
+/cgi-bin/testhi.index
+/cgi-bin/testtemplate
+/conf/cups-files.conf
+/conf/cupsd.conf
+/conf/mime.convs
+/conf/pam.std
+/conf/snmp.conf
+/cups/libcups.dylib
+/cups/libcups.2.dylib
+/cups/libcups.so
+/cups/libcups.so.2
+/cups/libcupsimage.dylib
+/cups/libcupsimage.2.dylib
+/cups/libcupsimage.so
+/cups/libcupsimage.so.2
+/cups/locale/
+/cups/rasterbench
+/cups/test.pwg
+/cups/test.raster
+/cups/testadmin
+/cups/testarray
+/cups/testcache
+/cups/testclient
+/cups/testconflicts
+/cups/testcreds
+/cups/testcups
+/cups/testdest
+/cups/testfile
+/cups/testgetdests
+/cups/testhttp
+/cups/testi18n
+/cups/testipp
+/cups/testlang
+/cups/testoptions
+/cups/testppd
+/cups/testpwg
+/cups/testraster
+/cups/testsnmp
+/cups/testthreads
+/cups/tlscheck
+/desktop/cups.desktop
+/doc/index.html
+/doc/*/index.html
+/filter/commandtops
+/filter/gziptoany
+/filter/pstops
+/filter/rastertoepson
+/filter/rastertohp
+/filter/rastertolabel
+/filter/rastertopwg
+/locale/checkpo
+/locale/po2strings
+/locale/strings2po
+/man/mantohtml
+/monitor/bcp
+/monitor/tbcp
+/notifier/dbus
+/notifier/mailto
+/notifier/rss
+/notifier/testnotify
+/packaging/cups.list
+/ppdc/genstrings
+/ppdc/ppd/
+/ppdc/ppd2/
+/ppdc/ppdc
+/ppdc/ppdc-static
+/ppdc/ppdhtml
+/ppdc/ppdi
+/ppdc/ppdi-static
+/ppdc/ppdmerge
+/ppdc/ppdpo
+/ppdc/sample-import.drv
+/ppdc/sample.c
+/ppdc/testcatalog
+/scheduler/convert
+/scheduler/cups-deviced
+/scheduler/cups-driverd
+/scheduler/cups-exec
+/scheduler/cups-lpd
+/scheduler/cups-lpd.xinetd
+/scheduler/cups-lpdAT.service
+/scheduler/cups.path
+/scheduler/cups.service
+/scheduler/cups.sh
+/scheduler/cups.socket
+/scheduler/cups.xml
+/scheduler/cupsd
+/scheduler/cupsfilter
+/scheduler/org.cups.cups-lpd.plist
+/scheduler/testlpd
+/scheduler/testmime
+/scheduler/testspeed
+/scheduler/testsub
+/systemv/cancel
+/systemv/cupsaccept
+/systemv/cupsaddsmb
+/systemv/cupsctl
+/systemv/cupsdisable
+/systemv/cupsenable
+/systemv/cupsreject
+/systemv/cupstestdsc
+/systemv/cupstestppd
+/systemv/lp
+/systemv/lpadmin
+/systemv/lpinfo
+/systemv/lpmove
+/systemv/lpoptions
+/systemv/lpstat
+/templates/header.tmpl
+/templates/*/header.tmpl
+/test/cups-str-*.html
+/test/*_log-*
+/tools/ippevepcl
+/tools/ippeveprinter
+/tools/ippeveprinter-static
+/tools/ippeveps
+/tools/ippfind
+/tools/ippfind-static
+/tools/ipptool
+/tools/ipptool-static
+/vcnet/.vs
+/vcnet/packages
+/vcnet/Win32
+/vcnet/x64
+/xcode/CUPS.xcodeproj/project.xcworkspace/
+/xcode/CUPS.xcodeproj/xcuserdata/
 
index 40028aa64970c4261cd9b42981692c0c17fff193..a621b6ae6670e394bae53cb1461c86ea30b80f0a 100755 (executable)
--- a/configure
+++ b/configure
@@ -9928,7 +9928,7 @@ fi
 
 
 
-ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
+ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket templates/header.tmpl packaging/cups.list $LANGFILES"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
     "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
     "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
     "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
-    "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
-    "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
-    "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
-    "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
+    "scheduler/cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpdAT.service" ;;
+    "scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;;
+    "scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;;
+    "scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;;
     "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
     "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
     "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
index 1f75f72f6a62f7ca67a01fed5881340153c70724..f9eb35b832d46b1be38f184fe7fdf8758c44bfbf 100644 (file)
@@ -70,10 +70,10 @@ AC_OUTPUT(Makedefs
          scheduler/cups.sh
          scheduler/cups.xml
          scheduler/org.cups.cups-lpd.plist
-         scheduler/org.cups.cups-lpdAT.service
-         scheduler/org.cups.cupsd.path
-         scheduler/org.cups.cupsd.service
-         scheduler/org.cups.cupsd.socket
+         scheduler/cups-lpdAT.service
+         scheduler/cups.path
+         scheduler/cups.service
+         scheduler/cups.socket
          templates/header.tmpl
           packaging/cups.list
          $LANGFILES)
index 537c19450894f4c8994136d6357be372aa00520f..a167a991762260ef4ad94d00ac5faa391b9ef99a 100644 (file)
@@ -1,6 +1,7 @@
 #
 # ESP Package Manager (EPM) file list for CUPS.
 #
+# Copyright © 2020 by Michael R Sweet
 # Copyright © 2007-2019 by Apple Inc.
 # Copyright © 1997-2007 by Easy Software Products, all rights reserved.
 #
@@ -10,8 +11,8 @@
 
 # Product information
 %product CUPS
-%copyright 2007-2019 by Apple Inc.
-%vendor Apple Inc.
+%copyright 2020 by Michael R Sweet, 2007-2019 by Apple Inc.
+%vendor OpenPrinting
 #%license LICENSE
 %readme LICENSE
 %format rpm
@@ -20,8 +21,9 @@
 %format !rpm
 %version @CUPS_VERSION@
 %format all
-%description CUPS is the standards-based, open source printing system developed by
-%description Apple Inc. for macOS® and other UNIX®-like operating systems.
+%description CUPS is the standards-based, open source printing system developed
+%description by Apple Inc. and maintained by OpenPrinting for macOS® and other
+%description UNIX®-like operating systems.
 
 %format rpm
 %provides lpd
index d37103c4f5177119c9ae645d64e4c6a3ef490250..59caee08ac1240ed42cf7c47c2dbc796723de9cf 100644 (file)
@@ -3,6 +3,7 @@
 #
 # Original version by Jason McMullan <jmcc@ontv.com>.
 #
+# Copyright © 2020 by Michael R Sweet
 # Copyright © 2007-2019 by Apple Inc.
 # Copyright © 1999-2007 by Easy Software Products, all rights reserved.
 #
@@ -48,7 +49,7 @@ Group: System Environment/Daemons
 Source: https://github.com/apple/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz
 Url: http://www.cups.org
 Packager: Anonymous <anonymous@example.com>
-Vendor: Example Corp
+Vendor: OpenPrinting
 
 # Package names are as defined for Red Hat (and clone) distributions
 BuildRequires: gnutls-devel, pam-devel
@@ -97,7 +98,8 @@ Requires: %{name} = %{epoch}:%{version} xinetd
 
 %description
 CUPS is the standards-based, open source printing system developed by
-Apple Inc. for macOS® and other UNIX®-like operating systems.
+Apple Inc. and maintained by OpenPrinting for macOS® and other UNIX®-like
+operating systems.
 
 %description devel
 This package provides the CUPS headers and development environment.
@@ -126,11 +128,11 @@ rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/dat
 
 %post
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
-/bin/systemctl enable org.cups.cupsd.service
+/bin/systemctl enable cups.service
 
 if test $1 -ge 1; then
-       /bin/systemctl stop org.cups.cupsd.service
-       /bin/systemctl start org.cups.cupsd.service
+       /bin/systemctl stop cups.service
+       /bin/systemctl start cups.service
 fi
 
 %else
@@ -150,8 +152,8 @@ fi
 %preun
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
 if test $1 -ge 1; then
-       /bin/systemctl stop org.cups.cupsd.service
-       /bin/systemctl disable org.cups.cupsd.service
+       /bin/systemctl stop cups.service
+       /bin/systemctl disable cups.service
 fi
 
 %else
@@ -164,8 +166,8 @@ fi
 %postun
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
 if test $1 -ge 1; then
-       /bin/systemctl stop org.cups.cupsd.service
-       /bin/systemctl start org.cups.cupsd.service
+       /bin/systemctl stop cups.service
+       /bin/systemctl start cups.service
 fi
 
 %else
@@ -203,7 +205,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
 # SystemD
-/usr/lib/systemd/system/org.cups.cupsd.*
+/usr/lib/systemd/system/cups.*
 
 %else
 # Legacy init support on Linux
@@ -425,7 +427,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root)
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
 # SystemD
-/usr/lib/systemd/system/org.cups.cups-lpd*
+/usr/lib/systemd/system/cups-lpd*
 %else
 # Legacy xinetd
 /etc/xinetd.d/cups-lpd
index 442eed6207b1eb2b679470e7e8a3f1c2e78e7abd..e56206d9f2d9fe4ff06016ec83840d8fc810fc99 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Scheduler Makefile for CUPS.
 #
+# Copyright © 2020 by Michael R Sweet
 # Copyright © 2007-2019 by Apple Inc.
 # Copyright © 1997-2007 by Easy Software Products, all rights reserved.
 #
@@ -194,11 +195,11 @@ install-data:
        if test "x$(SYSTEMD_DIR)" != x; then \
                echo Installing systemd configuration files...; \
                $(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \
-               $(INSTALL_DATA) org.cups.cupsd.path $(BUILDROOT)$(SYSTEMD_DIR); \
-               $(INSTALL_DATA) org.cups.cupsd.service $(BUILDROOT)$(SYSTEMD_DIR); \
-               $(INSTALL_DATA) org.cups.cupsd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
-               $(INSTALL_DATA) org.cups.cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cups-lpd@.service; \
-               $(INSTALL_DATA) org.cups.cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
+               $(INSTALL_DATA) cups.path $(BUILDROOT)$(SYSTEMD_DIR); \
+               $(INSTALL_DATA) cups.service $(BUILDROOT)$(SYSTEMD_DIR); \
+               $(INSTALL_DATA) cups.socket $(BUILDROOT)$(SYSTEMD_DIR); \
+               $(INSTALL_DATA) cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/cups-lpd@.service; \
+               $(INSTALL_DATA) cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
        fi
        if test "x$(XINETD)" != x; then \
                echo Installing xinetd configuration file for cups-lpd...; \