106N/A# The contents of this file are subject to the terms of the
106N/A# Common Development and Distribution License (the "License").
106N/A# You may not use this file except in compliance with the License.
106N/A# See the License for the specific language governing permissions
106N/A# and limitations under the License.
106N/A# When distributing Covered Code, include this CDDL HEADER in each
106N/A# If applicable, add the following below this CDDL HEADER, with the
106N/A# fields enclosed by brackets "[]" replaced with your own identifying
106N/A# information: Portions Copyright [yyyy] [name of copyright owner]
106N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
106N/A# Use is subject to license terms.
106N/A#ident "%Z%%M% %I% %E% SMI"
106N/A# If appropriate, enable this service.
106N/ABASEPREFIX=`echo $BASEDIR | sed "s/\//_/g"`
106N/ALPFILENAME=`echo sunwpsr_lpsched"$BASEPREFIX" | cut -c 1-256`
106N/ALPTMPFILE=/tmp/$LPFILENAME
106N/Aif [ -f $LPTMPFILE ]; then
106N/APPDFILENAME=`echo sunwpsr_ppd_cache_update"$BASEPREFIX" | cut -c 1-256`
106N/APPDTMPFILE=/tmp/$PPDFILENAME
106N/Aif [ -f $PPDTMPFILE ] ; then
181N/A # Enable the ppd-cache-update service.
247N/A # Ensure pre-existing printer configuration files with an
247N/A # old system PPD file delivery location are updated to
247N/A # reflect the newest location of PPD files.
247N/A if [ -d $NEW_PATH ] ; then
-e "s;${OLD_PATH}/foomatic;${NEW_PATH}/SUNWfoomatic;g" \
-e "s;${OLD_PATH}/gimp;${NEW_PATH}/SUNWgimp;g" \
-e "s;${OLD_PATH}/hpijs;${NEW_PATH}/SUNWhpijs;g" \
# This works around the problem of legacy cleanup service removal until
#
r.manifest is fixed to work on alternate pkg root.
if [ "${PKG_INSTALL_ROOT:-/}" != "/" ] ; then