# HG changeset patch # User sonam gupta - Sun Microsystems - Bangalore India # Date 1313729458 -19800 # Node ID 9ca5b97b5b08099bcaf1290b5649144535da75ca # Parent e031a1a0c3a199789696d9041c78891db8aee501 PSARC/2011/084 LP print service EOF 7079107 CUPS changes for LP EOF 7079183 Rename a2ps package because of LP EOF 7079201 man(1) is unable to find CUPS man pages. diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/a2ps/a2ps.p5m --- a/components/a2ps/a2ps.p5m Thu Aug 18 21:38:10 2011 -0700 +++ b/components/a2ps/a2ps.p5m Fri Aug 19 10:20:58 2011 +0530 @@ -23,7 +23,7 @@ default mangler.man.stability volatile> set name=pkg.fmri \ - value=pkg:/print/lp/filter/a2ps@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) + value=pkg:/print/filter/a2ps@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) set name=pkg.description \ value="GNU a2ps converts files into PostScript for printing or viewing." set name=pkg.summary \ @@ -35,6 +35,8 @@ set name=org.opensolaris.arc-caseid \ value=PSARC/2004/262 set name=org.opensolaris.consolidation value=$(CONSOLIDATION) +set pkg.linted=true + dir path=etc dir path=etc/gnu dir path=etc/lp diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/Makefile --- a/components/cups/Makefile Thu Aug 18 21:38:10 2011 -0700 +++ b/components/cups/Makefile Fri Aug 19 10:20:58 2011 +0530 @@ -65,9 +65,6 @@ CONFIGURE_OPTIONS += "ac_cv_func_statfs=no" $(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)" -$(BUILD_DIR)/%/.installed: ENV += MAN1EXT="1cups" -$(BUILD_DIR)/%/.installed: ENV += MAN8EXT="1cups" -$(BUILD_DIR)/%/.installed: ENV += MAN8DIR="1cups" PATCH_LEVEL = 0 diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/Solaris/print-service-selector --- a/components/cups/Solaris/print-service-selector Thu Aug 18 21:38:10 2011 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -#!/bin/ksh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. -# - -. /lib/svc/share/smf_include.sh - -CUPS_SVC='cups/scheduler' -CUPS_BIN='/usr/lib/cups/bin/lp' -LP_BIN='/usr/lib/lp/bin/lp' -ACTIVE_SVC_PROP='general/active' - -is_cups_active() -{ - ACTIVE=$( /usr/bin/svcprop -C -p "$ACTIVE_SVC_PROP" "${CUPS_SVC}:default" \ - 2>/dev/null ) - [[ "$ACTIVE" == 'true' ]] -} - -is_lp_installed() -{ - [[ -f "$LP_BIN" ]] -} - -is_cups_installed() -{ - [[ -f "$CUPS_BIN" ]] -} - -set_cups_active() -{ - if ! /usr/sbin/print-service -s cups - then - echo "ERROR: Unable to set CUPS as the default print service" >&2 - exit $SMF_EXIT_ERR_FATAL - fi -} - -if is_lp_installed -then - # Do nothing. They either upgraded, installed LP only, or both. - # In any of these cases, we either want the default or the previously - # selected behaviour. - true -elif is_cups_installed -then - # LP is not installed -- make CUPS the default if it is not already - is_cups_active || set_cups_active -else - echo "ERROR: Neither CUPS nor LP packages installed" >&2 - exit $SMF_EXIT_ERR_FATAL -fi - -exit $SMF_EXIT_OK diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/Solaris/service-selector.xml --- a/components/cups/Solaris/service-selector.xml Thu Aug 18 21:38:10 2011 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/cups.p5m --- a/components/cups/cups.p5m Thu Aug 18 21:38:10 2011 -0700 +++ b/components/cups/cups.p5m Fri Aug 19 10:20:58 2011 +0530 @@ -153,7 +153,7 @@ dir path=usr/share/locale/zh_CN dir path=usr/share/locale/zh_TW dir path=usr/share/man -dir path=usr/share/man/man1cups +dir path=usr/share/man/man1 dir path=usr/share/man/man5 dir path=usr/share/man/man7 dir path=usr/share/man/man8 @@ -174,11 +174,6 @@ # edited file-objects file group=lp mode=0640 path=etc/cups/cupsd.conf preserve=true -file Solaris/print-service-selector mode=0555 \ - path=lib/svc/method/print-service-selector -file Solaris/service-selector.xml mode=0444 \ - path=lib/svc/manifest/application/print/service-selector.xml \ - restart_fmri=svc:/system/manifest-import:default file path=lib/svc/manifest/application/cups.xml mode=0444 \ restart_fmri=svc:/system/manifest-import:default @@ -186,28 +181,23 @@ file Solaris/ManageCUPS.html mode=0444 \ path=usr/lib/help/auths/locale/C/ManageCUPS.html -# move: cancel lp lpr lpstat lpq lprm -# from usr/bin to usr/lib/cups/bin -file usr/bin/cancel path=usr/lib/cups/bin/cancel -file usr/bin/lp path=usr/lib/cups/bin/lp -file usr/bin/lpr path=usr/lib/cups/bin/lpr -file usr/bin/lpstat path=usr/lib/cups/bin/lpstat -file usr/bin/lpq path=usr/lib/cups/bin/lpq -file usr/bin/lprm path=usr/lib/cups/bin/lprm - -# move: cupsaccept lpc lpmove lpadmin lpinfo -# from usr/sbin to usr/lib/cups/bin -file usr/sbin/cupsaccept path=usr/lib/cups/bin/cupsaccept -file usr/sbin/lpc path=usr/lib/cups/bin/lpc -file usr/sbin/lpmove path=usr/lib/cups/bin/lpmove -file usr/sbin/lpadmin path=usr/lib/cups/bin/lpadmin -file usr/sbin/lpinfo path=usr/lib/cups/bin/lpinfo +file path=usr/bin/cancel +file path=usr/bin/lp +file path=usr/bin/lpr +file path=usr/bin/lpstat +file path=usr/bin/lpq +file path=usr/bin/lprm +file path=usr/sbin/cupsaccept +file path=usr/sbin/lpc +file path=usr/sbin/lpmove +file path=usr/sbin/lpadmin +file path=usr/sbin/lpinfo # install the desktop menu related bits file Solaris/desktop-print-management mode=0555 \ - path=usr/lib/cups/bin/desktop-print-management + path=usr/bin/desktop-print-management file Solaris/desktop-print-management-applet mode=0555 \ - path=usr/lib/cups/bin/desktop-print-management-applet + path=usr/bin/desktop-print-management-applet file Solaris/smb mode=0555 \ path=usr/lib/cups/backend/smb @@ -299,7 +289,6 @@ file path=usr/sbin/cupsctl file path=usr/sbin/cupsd file path=usr/sbin/cupsfilter -file path=usr/sbin/lpinfo file path=usr/share/cups/banners/classified file path=usr/share/cups/banners/confidential file path=usr/share/cups/banners/labeled @@ -1135,38 +1124,37 @@ file path=usr/share/locale/ru/cups_ru.po file path=usr/share/locale/sv/cups_sv.po file path=usr/share/locale/zh_TW/cups_zh_TW.po -# Pages from "1" and "1m" sections should be moved to "1cups" section. -file usr/share/man/man1/cancel.1 path=usr/share/man/man1cups/cancel.1cups -file usr/share/man/man1/cups-config.1 path=usr/share/man/man1cups/cups-config.1cups -file usr/share/man/man1/cupstestdsc.1 path=usr/share/man/man1cups/cupstestdsc.1cups -file usr/share/man/man1/cupstestppd.1 path=usr/share/man/man1cups/cupstestppd.1cups -file usr/share/man/man1/lp.1 path=usr/share/man/man1cups/lp.1cups -file usr/share/man/man1/lpoptions.1 path=usr/share/man/man1cups/lpoptions.1cups -file usr/share/man/man1/lppasswd.1 path=usr/share/man/man1cups/lppasswd.1cups -file usr/share/man/man1/lpq.1 path=usr/share/man/man1cups/lpq.1cups -file usr/share/man/man1/lpr.1 path=usr/share/man/man1cups/lpr.1cups -file usr/share/man/man1/lprm.1 path=usr/share/man/man1cups/lprm.1cups -file usr/share/man/man1/lpstat.1 path=usr/share/man/man1cups/lpstat.1cups -file usr/share/man/man1/ppdc.1 path=usr/share/man/man1cups/ppdc.1cups -file usr/share/man/man1/ppdhtml.1 path=usr/share/man/man1cups/ppdhtml.1cups -file usr/share/man/man1/ppdi.1 path=usr/share/man/man1cups/ppdi.1cups -file usr/share/man/man1/ppdmerge.1 path=usr/share/man/man1cups/ppdmerge.1cups -file usr/share/man/man1/ppdpo.1 path=usr/share/man/man1cups/ppdpo.1cups -file usr/share/man/man1m/cups-deviced.1m path=usr/share/man/man1cups/cups-deviced.1cups -file usr/share/man/man1m/cups-driverd.1m path=usr/share/man/man1cups/cups-driverd.1cups -file usr/share/man/man1m/cups-lpd.1m path=usr/share/man/man1cups/cups-lpd.1cups -file usr/share/man/man1m/cups-polld.1m path=usr/share/man/man1cups/cups-polld.1cups -file usr/share/man/man1m/cupsaccept.1m path=usr/share/man/man1cups/cupsaccept.1cups -file usr/share/man/man1m/cupsaddsmb.1m path=usr/share/man/man1cups/cupsaddsmb.1cups -file usr/share/man/man1m/cupsctl.1m path=usr/share/man/man1cups/cupsctl.1cups -file usr/share/man/man1m/cupsd.1m path=usr/share/man/man1cups/cupsd.1cups -file usr/share/man/man1m/cupsenable.1m path=usr/share/man/man1cups/cupsenable.1cups -file usr/share/man/man1m/cupsfilter.1m path=usr/share/man/man1cups/cupsfilter.1cups -file usr/share/man/man1m/lpadmin.1m path=usr/share/man/man1cups/lpadmin.1cups -file usr/share/man/man1m/lpc.1m path=usr/share/man/man1cups/lpc.1cups -file usr/share/man/man1m/lpinfo.1m path=usr/share/man/man1cups/lpinfo.1cups -file usr/share/man/man1m/lpmove.1m path=usr/share/man/man1cups/lpmove.1cups -# Pages for cups from "1m" sections should also be moved to "8" section. +file path=usr/share/man/man1/cancel.1 +file path=usr/share/man/man1/cups-config.1 +file path=usr/share/man/man1/cupstestdsc.1 +file path=usr/share/man/man1/cupstestppd.1 +file path=usr/share/man/man1/lp.1 +file path=usr/share/man/man1/lpoptions.1 +file path=usr/share/man/man1/lppasswd.1 +file path=usr/share/man/man1/lpq.1 +file path=usr/share/man/man1/lpr.1 +file path=usr/share/man/man1/lprm.1 +file path=usr/share/man/man1/lpstat.1 +file path=usr/share/man/man1/ppdc.1 +file path=usr/share/man/man1/ppdhtml.1 +file path=usr/share/man/man1/ppdi.1 +file path=usr/share/man/man1/ppdmerge.1 +file path=usr/share/man/man1/ppdpo.1 +file path=usr/share/man/man1m/cups-deviced.1m +file path=usr/share/man/man1m/cups-driverd.1m +file path=usr/share/man/man1m/cups-lpd.1m +file path=usr/share/man/man1m/cups-polld.1m +file path=usr/share/man/man1m/cupsaccept.1m +file path=usr/share/man/man1m/cupsaddsmb.1m +file path=usr/share/man/man1m/cupsctl.1m +file path=usr/share/man/man1m/cupsd.1m +file path=usr/share/man/man1m/cupsenable.1m +file path=usr/share/man/man1m/cupsfilter.1m +file path=usr/share/man/man1m/lpadmin.1m +file path=usr/share/man/man1m/lpc.1m +file path=usr/share/man/man1m/lpinfo.1m +file path=usr/share/man/man1m/lpmove.1m +# Pages for cups from "1m" sections should also be copied to "8" section. file usr/share/man/man1m/cups-deviced.1m path=usr/share/man/man8/cups-deviced.8 file usr/share/man/man1m/cups-driverd.1m path=usr/share/man/man8/cups-driverd.8 file usr/share/man/man1m/cups-lpd.1m path=usr/share/man/man8/cups-lpd.8 @@ -1205,16 +1193,18 @@ link path=usr/lib/libcupsmime.so target=libcupsmime.so.1 link path=usr/lib/libcupsppdc.so target=libcupsppdc.so.1 -link path=usr/lib/cups/bin/accept target=cupsaccept -link path=usr/lib/cups/bin/cupsdisable target=cupsaccept -link path=usr/lib/cups/bin/cupsenable target=cupsaccept -link path=usr/lib/cups/bin/cupsreject target=cupsaccept -link path=usr/lib/cups/bin/reject target=cupsaccept +link path=usr/sbin/accept target=cupsaccept +link path=usr/sbin/cupsdisable target=cupsaccept +link path=usr/bin/disable target=../sbin/cupsaccept +link path=usr/sbin/cupsenable target=cupsaccept +link path=usr/bin/enable target=../sbin/cupsaccept +link path=usr/sbin/cupsreject target=cupsaccept +link path=usr/sbin/reject target=cupsaccept -link path=usr/share/man/man1cups/accept.1cups target=cupsaccept.1cups -link path=usr/share/man/man1cups/cupsdisable.1cups target=cupsenable.1cups -link path=usr/share/man/man1cups/cupsreject.1cups target=cupsaccept.1cups -link path=usr/share/man/man1cups/reject.1cups target=cupsaccept.1cups +link path=usr/share/man/man1/accept.1 target=../man1m/cupsaccept.1m +link path=usr/share/man/man1/cupsdisable.1 target=../man1m/cupsenable.1m +link path=usr/share/man/man1/cupsreject.1 target=../man1m/cupsaccept.1m +link path=usr/share/man/man1/reject.1 target=../man1m/cupsaccept.1m legacy pkg=SUNWcupsr \ desc="Common Unix Print System v1.4 (root)" \ diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/patches/00-man.patch --- a/components/cups/patches/00-man.patch Thu Aug 18 21:38:10 2011 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ ---- Makedefs.in.orig Fri Apr 23 11:56:34 2010 -+++ Makedefs.in Tue Dec 7 00:56:35 2010 -@@ -259,7 +259,7 @@ - # - - .SILENT: --.SUFFIXES: .1 .1.gz .1m .1m.gz .3 .3.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz -+.SUFFIXES: .1 .1.gz .1cups .1m .1m.gz .3 .3.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz - - .c.o: - echo Compiling $<... -@@ -277,7 +277,7 @@ - echo Compiling $<... - $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $< - --.man.1 .man.1m .man.3 .man.5 .man.7 .man.8: -+.man.1 .man.1cups .man.1m .man.3 .man.5 .man.7 .man.8: - echo Linking $<... - $(RM) $@ - $(LN) $< $@ ---- man/Makefile.orig Tue Jun 22 14:42:44 2010 -+++ man/Makefile Tue Dec 7 00:56:35 2010 -@@ -126,10 +126,10 @@ - # - - install-data: all -- $(INSTALL_DIR) -m 755 $(MANDIR)/man1 -+ $(INSTALL_DIR) -m 755 $(MANDIR)/man$(MAN1EXT) - for file in $(MAN1); do \ -- echo Installing $$file in $(MANDIR)/man1...; \ -- $(INSTALL_MAN) $$file $(MANDIR)/man1; \ -+ echo Installing $$file in $(MANDIR)/man$(MAN1EXT)...; \ -+ $(INSTALL_MAN) $$file $(MANDIR)/man$(MAN1EXT); \ - done - $(INSTALL_DIR) -m 755 $(MANDIR)/man5 - for file in $(MAN5); do \ diff -r e031a1a0c3a1 -r 9ca5b97b5b08 components/cups/patches/02-smf.patch --- a/components/cups/patches/02-smf.patch Thu Aug 18 21:38:10 2011 -0700 +++ b/components/cups/patches/02-smf.patch Fri Aug 19 10:20:58 2011 +0530 @@ -1,21 +1,35 @@ ---- init/cups.xml.in.orig Fri Oct 2 22:41:34 2009 -+++ init/cups.xml.in Fri Oct 2 22:42:36 2009 -@@ -60,6 +60,14 @@ - +--- init/cups.xml.in.orig Thu Jul 8 22:54:14 2010 ++++ init/cups.xml.in Tue Aug 16 14:51:37 2011 +@@ -52,14 +52,6 @@ + -+ -+ -+ -+ +- +- +- +- + +- ++ + + + + ++