From: mike Date: Wed, 1 Feb 2006 04:44:42 +0000 (+0000) Subject: Update OSX packages to include both the launchd and non-launchd startup X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09a48dfaba327a0b3f34c9388596c15ea3e68b86;p=thirdparty%2Fcups.git Update OSX packages to include both the launchd and non-launchd startup scripts, with auto-detect at startup. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5034 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/Makefile b/Makefile index 01f89dd3f9..e6fc230150 100644 --- a/Makefile +++ b/Makefile @@ -103,17 +103,17 @@ install: installhdrs if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ - $(INSTALL_SCRIPT) init/cups.osx $(BUILDROOT)$(INITDDIR)/PrintingServices; \ - $(INSTALL_DATA) init/cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ + $(INSTALL_SCRIPT) init/PrintingServices.standard $(BUILDROOT)$(INITDDIR)/PrintingServices; \ + $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ - $(INSTALL_DATA) init/cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ + $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \ - $(INSTALL_DATA) init/cupsd-launchd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \ + $(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \ $(INSTALL_DIR) $(BUILDROOT)/System/Library/StartupItems/PrintingServices; \ - $(INSTALL_SCRIPT) init/cupsd-launchd.sh $(BUILDROOT)/System/Library/StartupItems/PrintingServices/PrintingServices; \ - $(INSTALL_DATA) init/cups.plist $(BUILDROOT)/System/Library/StartupItems/PrintingServices/StartupParameters.plist; \ + $(INSTALL_SCRIPT) init/PrintingServices.launchd $(BUILDROOT)/System/Library/StartupItems/PrintingServices/PrintingServices; \ + $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)/System/Library/StartupItems/PrintingServices/StartupParameters.plist; \ $(INSTALL_DIR) $(BUILDROOT)/System/Library/StartupItems/PrintingServices/Resources/English.lproj; \ - $(INSTALL_DATA) init/cups.strings $(BUILDROOT)/System/Library/StartupItems/PrintingServices/Resources/English.lproj/Localizable.strings; \ + $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)/System/Library/StartupItems/PrintingServices/Resources/English.lproj/Localizable.strings; \ else \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ fi \ diff --git a/init/cups.strings b/init/Localizable.strings similarity index 100% rename from init/cups.strings rename to init/Localizable.strings diff --git a/init/cupsd-launchd.sh b/init/PrintingServices.launchd similarity index 82% rename from init/cupsd-launchd.sh rename to init/PrintingServices.launchd index c956220543..edcb0c6dc1 100755 --- a/init/cupsd-launchd.sh +++ b/init/PrintingServices.launchd @@ -3,5 +3,5 @@ # writable. This works around a problem in launchd... if test -e /private/var/run/cupsd; then - chmod g+w,o+w /private/var/run/cupsd + chmod a+rwx /private/var/run/cupsd fi diff --git a/init/cups.osx b/init/PrintingServices.standard similarity index 100% rename from init/cups.osx rename to init/PrintingServices.standard diff --git a/init/cups.plist b/init/StartupParameters.plist similarity index 100% rename from init/cups.plist rename to init/StartupParameters.plist diff --git a/init/cupsd-launchd.plist b/init/org.cups.cupsd.plist similarity index 100% rename from init/cupsd-launchd.plist rename to init/org.cups.cupsd.plist diff --git a/tools/testosx b/tools/testosx index af37a09750..0ece7bf5e7 100755 --- a/tools/testosx +++ b/tools/testosx @@ -36,12 +36,19 @@ chmod 755 $pkgdir/Resources/preflight cat >$pkgdir/Resources/postflight <