View | Details | Raw Unified
Collapse All | Expand All

(-) install.orig (-7 / +7 lines)
 Lines 9-15    Link Here 
prefix=/usr/local
prefix=/usr/local
gzip=0
gzip=0
moreoptions=1
moreoptions=1
while [ $moreoptions == 1 ]
while [ $moreoptions = 1 ]
  do
  do
  case $1 in
  case $1 in
      -p|--prefix)
      -p|--prefix)
 Lines 46-55    Link Here 
# Copy files
# Copy files
echo "Copying files ..."
echo "Copying files ..."
mkdir -p $destdir$prefix
mkdir -p $destdir$prefix
cp -ax bin share $destdir$prefix
cp -RPp bin share $destdir$prefix
# Compress files
# Compress files
if [ $gzip == 1 ]; then
if [ $gzip = 1 ]; then
  echo "Compressing PPD files ..."
  echo "Compressing PPD files ..."
  gzip -rf $destdir$prefix/share/ppd
  gzip -rf $destdir$prefix/share/ppd
fi
fi
 Lines 57-65    Link Here 
# Link for CUPS (do only if we have a CUPS daemon, PPD link to
# Link for CUPS (do only if we have a CUPS daemon, PPD link to
# /usr/share/cups/model not needed on pure CUPS clients)
# /usr/share/cups/model not needed on pure CUPS clients)
cups=0
cups=0
if ( which cupsd > /dev/null 2>&1 ); then
if type cupsd > /dev/null 2> /dev/null; then
  echo "Setting link for CUPS ..."
  echo "Setting link for CUPS ..."
  if ( which cups-config > /dev/null 2>&1 ); then
  if type cups-config > /dev/null 2> /dev/null; then
    # CUPS installed from source or "devel" package installed
    # CUPS installed from source or "devel" package installed
    ppddir=`cups-config --datadir`/model
    ppddir=`cups-config --datadir`/model
  else
  else
 Lines 73-79    Link Here 
fi
fi
# Do we have PPR installed
# Do we have PPR installed
if ( which ppad > /dev/null 2>&1 ); then
if type ppad > /dev/null 2>/dev/null; then
  echo "Setting link for PPR ..."
  echo "Setting link for PPR ..."
  if [ -d $destdir/usr/share/ppr/PPDFiles/ ]; then
  if [ -d $destdir/usr/share/ppr/PPDFiles/ ]; then
    rm -f $destdir/usr/share/ppr/PPDFiles/foomatic-ppds
    rm -f $destdir/usr/share/ppr/PPDFiles/foomatic-ppds
 Lines 92-98    Link Here 
echo "Installation finished"
echo "Installation finished"
echo ""
echo ""
if [ $cups == 1 ]; then
if [ $cups = 1 ]; then
    echo "Please restart the CUPS daemon. Note that the CUPS daemon"
    echo "Please restart the CUPS daemon. Note that the CUPS daemon"
    echo "needs some minutes to register all PPD files."
    echo "needs some minutes to register all PPD files."
    echo
    echo