ports/84319: New port print/cups-magicolor.

Frank Mayhar frank at exit.com
Sat Jul 30 15:30:23 UTC 2005


The following reply was made to PR ports/84319; it has been noted by GNATS.

From: Frank Mayhar <frank at exit.com>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/84319: New port print/cups-magicolor.
Date: Sat, 30 Jul 2005 08:28:57 -0700

 This is a multi-part message in MIME format.
 --------------040306080707010908090609
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I ran into yet another oversight in this port; deinstall was failing to 
 remove the new directories.  I've attached a sharfile with a fixed Makefile 
 and a (new) pkg-plist.
 
 This time for sure. :-)
 -- 
 Frank Mayhar frank at exit.com	http://www.exit.com/
 Exit Consulting                 http://www.gpsclock.com/
                                  http://www.exit.com/blog/frank/
 
 --------------040306080707010908090609
 Content-Type: application/x-shar;
  name="cups-magicolor-2.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="cups-magicolor-2.shar"
 
 #!/bin/sh
 # This is a shell archive (produced by GNU sharutils 4.3.81).
 # To extract the files from this archive, save it to some FILE, remove
 # everything before the `!/bin/sh' line above, then type `sh FILE'.
 #
 # Made on 2005-07-29 23:00 PDT by <frank at realtime.exit.com>.
 # Source directory was `/usr/ports/print'.
 #
 # Existing files will *not* be overwritten unless `-c' is specified.
 #
 # This shar contains:
 # length mode       name
 # ------ ---------- ------------------------------------------
 #    765 -rw-r--r-- cups-magicolor/Makefile
 #   1143 -rw-r--r-- cups-magicolor/pkg-plist
 #
 save_IFS="${IFS}"
 IFS="${IFS}:"
 gettext_dir=FAILED
 locale_dir=FAILED
 first_param="$1"
 for dir in $PATH
 do
   if test "$gettext_dir" = FAILED && test -f $dir/gettext \
      && ($dir/gettext --version >/dev/null 2>&1)
   then
     case `$dir/gettext --version 2>&1 | sed 1q` in
       *GNU*) gettext_dir=$dir ;;
     esac
   fi
   if test "$locale_dir" = FAILED && test -f $dir/shar \
      && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
   then
     locale_dir=`$dir/shar --print-text-domain-dir`
   fi
 done
 IFS="$save_IFS"
 if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
 then
   echo=echo
 else
   TEXTDOMAINDIR=$locale_dir
   export TEXTDOMAINDIR
   TEXTDOMAIN=sharutils
   export TEXTDOMAIN
   echo="$gettext_dir/gettext -s"
 fi
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     shar_n= shar_c='
 '
   else
     shar_n=-n shar_c=
   fi
 else
   shar_n= shar_c='\c'
 fi
 if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 && test -f $$.touch; then
   shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
 elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 && test ! -f 123123592001.5 && test -f $$.touch; then
   shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
 elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 && test -f $$.touch; then
   shar_touch='touch -am $3$4$5$6$2 "$8"'
 else
   shar_touch=:
   echo
   $echo 'WARNING: not restoring timestamps.  Consider getting and'
   $echo "installing GNU \`touch', distributed in GNU File Utilities..."
   echo
 fi
 rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
 #
 $echo $shar_n 'x -' 'lock directory' "\`_sh37000': "$shar_c
 if mkdir _sh37000; then
   $echo 'created'
 else
   $echo 'failed to create'
   exit 1
 fi
 # ============= cups-magicolor/Makefile ==============
 if test ! -d 'cups-magicolor'; then
   $echo $echo_n 'x -' 'cups-magicolor: '$echo_c
   if mkdir 'cups-magicolor'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/Makefile' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/Makefile' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/Makefile' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/Makefile' &&
 # New ports collection makefile for:	cups-pstoraster
 # Date created:		Jul 13 2002
 # Whom:			ports at FreeBSD.org
 #
 # $FreeBSD: ports/print/cups-pstoraster/Makefile,v 1.21 2005/06/29 09:27:04 barner Exp $
 #
 X
 PORTNAME=	cups-magicolor
 PORTVERSION=	1.1.0
 CATEGORIES=	print
 MASTER_SITES=	ftp://ftp.minolta-qms.com/pub/crc/out_going/other/
 X
 MAINTAINER=	frank at exit.com
 COMMENT=	CUPS support for the Konica-Minolta Magicolor 2430DL.
 X
 PATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/print/cups-base:configure
 LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
 RUN_DEPENDS=	espgs:${PORTSDIR}/print/cups-pstoraster
 X
 DISTNAME=	magicolor2430DL-1.1.0
 X
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 X
 do-configure:
 X	$(CP) ${PORTSDIR}/print/cups-base/work/cups-*/config.h ${WRKSRC}
 X
 X.include <bsd.port.mk>
 SHAR_EOF
   (set 20 05 07 29 22 56 00 'cups-magicolor/Makefile'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/Makefile' ||
   $echo 'restore of' 'cups-magicolor/Makefile' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/Makefile:' 'MD5 check failed'
 85718abf1de5cb67d5dd6fbe6aa8110d  cups-magicolor/Makefile
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/Makefile'`"
     test 765 -eq "$shar_count" ||
     $echo 'cups-magicolor/Makefile:' 'original size' '765,' 'current size' "$shar_count!"
   fi
 fi
 # ============= cups-magicolor/pkg-plist ==============
 if test ! -d 'cups-magicolor'; then
   $echo $echo_n 'x -' 'cups-magicolor: '$echo_c
   if mkdir 'cups-magicolor'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/pkg-plist' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/pkg-plist' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/pkg-plist' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/pkg-plist' &&
 libexec/cups/filter/rastertokm2430dl
 share/cups/model/KONICA_MINOLTA/km2430dl.ppd.gz
 share/KONICA_MINOLTA/mc2430DL/Profiles/km_0.icm
 share/KONICA_MINOLTA/mc2430DL/Profiles/km_1.icm
 share/KONICA_MINOLTA/mc2430DL/Profiles/km_2.icm
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_00.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_01.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_02.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_03.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_10.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_11.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_12.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_13.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_20.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_21.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_22.bmp
 share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_23.bmp
 share/KONICA_MINOLTA/mc2430DL/Installation
 share/KONICA_MINOLTA/mc2430DL/COPYING
 @dirrm share/KONICA_MINOLTA/mc2430DL/Profiles
 @dirrm share/KONICA_MINOLTA/mc2430DL/Halftones
 @dirrm share/cups/model/KONICA_MINOLTA
 @dirrm share/KONICA_MINOLTA/mc2430DL
 @dirrm share/KONICA_MINOLTA
 SHAR_EOF
   (set 20 05 07 29 22 58 57 'cups-magicolor/pkg-plist'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/pkg-plist' ||
   $echo 'restore of' 'cups-magicolor/pkg-plist' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/pkg-plist:' 'MD5 check failed'
 7424dce4fddebebf200410e5afa22a1b  cups-magicolor/pkg-plist
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/pkg-plist'`"
     test 1143 -eq "$shar_count" ||
     $echo 'cups-magicolor/pkg-plist:' 'original size' '1143,' 'current size' "$shar_count!"
   fi
 fi
 $echo $shar_n 'x -' 'lock directory' "\`_sh37000': " $shar_c
 if rm -fr _sh37000; then
   $echo 'removed'
 else
   $echo 'failed to remove'
 fi
 exit 0
 
 --------------040306080707010908090609--



More information about the freebsd-ports-bugs mailing list