Mantis - cups
Viewing Issue Advanced Details
2924 packaging feature always 2008-07-08 07:43 2012-03-24 20:47
dam  
maciej  
normal  
closed  
fixed  
none    
none  
0002924: A subsiture package for SUNWpcr and SUNWpcu should be provided
It would be cool to have a package containing links of /usr/bin/lp* to the cups binaries which acts as a plug-in-replacemenet for the supplied System V provided. The package should be flagged INCOMPATIBLE with the above package.
Issue History
2009-11-18 10:07 maciej Status new => assigned
2009-11-18 10:07 maciej Assigned To => maciej
2009-11-18 10:08 maciej Note Added: 0007007
2009-11-18 10:33 skayser Note Added: 0007008
2009-11-18 12:21 maciej Note Added: 0007010
2010-02-27 14:18 maciej Note Added: 0007541
2010-02-27 14:37 dam Note Added: 0007542
2010-12-16 22:20 maciej Note Added: 0008577
2010-12-16 22:20 maciej Status assigned => resolved
2010-12-16 22:20 maciej Resolution open => fixed
2012-03-24 20:47 dam Note Added: 0009758
2012-03-24 20:47 dam Status resolved => closed

Notes
(0007007)
maciej   
2009-11-18 10:08   
I put the topic up for discussion on the mailing list.

http://lists.opencsw.org/pipermail/maintainers/2009-November/004887.html [^]
(0007008)
skayser   
2009-11-18 10:33   
Regarding replacing the printing system, we also do it manually via a JET custom_scripts on installation (because we have had problems with the stock Solaris printing system). It's a bit more invasive though as we pkgrm a couple of more packages. It's a workaround, but serves us well.

#!/bin/sh
#
# Substitute stock Solaris 10 cups installation with OpenCSW
# cups. Plain cups submitted all file types as text/plain
# to our Cups server (might have changed) ...
#
# http://forums.sun.com/thread.jspa?threadID=5375841&tstart=0 [^]

ADMIN_FILE=/var/opt/csw/pkgutil/admin

/usr/sbin/svcadm disable print/ppd-cache-update
/usr/sbin/svcadm disable print/rfc1179

# pkgrm pkgs one by one. If we would pkgrm all at once and
# just one of them is not present (or other errors occur) the
# whole pkgrm would abort
SUNCUPS_PKGS="
        SUNWctlu SUNWmp SUNWpsu SUNWscplp
        SUNWppm SUNWpcu SUNWpsr SUNWpcr
        SUNWipplu SUNWipplr"

for p in $SUNCUPS_PKGS; do
        /usr/bin/yes | /usr/sbin/pkgrm -a $ADMIN_FILE $p
done

/opt/csw/bin/pkgutil -yi cupsclient
mkdir -p /opt/csw/etc/cups
echo "Servername printsrv.consol.de" > /etc/opt/csw/cups/client.conf
/opt/csw/bin/lpoptions -d polarmist

grep CSWcupsclient /var/sadm/install/contents | \
        grep /bin/ | awk '{ print $1 }' | \
        while read f; do ln -s $f /usr/bin/; done
(0007010)
maciej   
2009-11-18 12:21   
cupsclient_ln is in testing.

skayser: your script needs an update:

mkdir -p /opt/csw/etc/cups

to

mkdir -p /etc/opt/csw/cups

Or, with the latest cupsclient package update, you don't need this line at all.
(0007541)
maciej   
2010-02-27 14:18   
Doesn't seem like it's going to be released. Dago, what do we do with this one?
(0007542)
dam   
2010-02-27 14:37   
I say we use a the prefix CSWsunwcups and make a new catalog "sunwreplace" or similar on mirror.opencsw.org and collect everything until we have the new release-and-staging in place.
(0008577)
maciej   
2010-12-16 22:20   
There doesn't seem to be an agreement how to do this. Other repository, or other prefix - these things have to be decided first. I'll close this bug for now. If you have the power to spearhead and solve underlying issues (how to provide substitute symlinks in general), please reopen this bug. The code for the package is there in the repo, I'll respin and release it.
(0009758)
dam   
2012-03-24 20:47   
A community answer has been provided that describes what needs to be done to replace Solaris Printing with Cups:
  http://www.opencsw.org/community/questions/75/how-can-i-replace-the-solaris-printing-system-with-opencsw-cups [^]