Home | History | Annotate | Download | only in foomatic-filters
      1 #!/bin/sh -e
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License (the "License").
      7 # You may not use this file except in compliance with the License.
      8 #
      9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10 # or http://www.opensolaris.org/os/licensing.
     11 # See the License for the specific language governing permissions
     12 # and limitations under the License.
     13 #
     14 # When distributing Covered Code, include this CDDL HEADER in each
     15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16 # If applicable, add the following below this CDDL HEADER, with the
     17 # fields enclosed by brackets "[]" replaced with your own identifying
     18 # information: Portions Copyright [yyyy] [name of copyright owner]
     19 #
     20 # CDDL HEADER END
     21 #
     22 #
     23 #
     24 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 #ident	"@(#)install-sfw	1.11	08/03/26 SMI"
     28 
     29 # install the lpsched foomatics bits
     30 
     31 VERS=3.0.2
     32 PKGVERS=foomatic-filters-${VERS}
     33 PREFIX=${ROOT}/usr
     34 BINDIR=${PREFIX}/bin
     35 INFODIR=${PREFIX}/info
     36 ETCPREFIX=${ROOT}/etc/gnu/foomatic
     37 LPPREFIX=${ROOT}/usr/lib/lp
     38 LPBIN=${LPPREFIX}/bin
     39 LPMODEL=${LPPREFIX}/model
     40 LPETC=${ROOT}/etc/lp
     41 LPFD=${LPETC}/fd
     42 
     43 MANSCRIPT=../Solaris/sunman-stability
     44 
     45 . ${SRC}/tools/install.subr
     46 
     47 
     48 cd ${PKGVERS}
     49 
     50 mkdir -p ${LPBIN}
     51 mkdir -p ${LPMODEL}
     52 chmod 755 ${LPPREFIX}
     53 chmod 755 ${LPBIN}
     54 chmod 755 ${LPMODEL}
     55 
     56 mkdir -p ${LPETC}
     57 mkdir -p ${LPFD}
     58 chmod 775 ${LPETC}
     59 chmod 755 ${LPFD}
     60 
     61 mkdir -p ${ETCPREFIX}
     62 chmod 755 ${ETCPREFIX}
     63 
     64 #
     65 # Shell script 'wecho' that emulates the gnu echo (gecho) options
     66 #
     67 _install S ../Solaris/wecho.sh ${LPBIN}/wecho 555
     68 
     69 _install S foomatic-gswrapper ${LPBIN}/foomatic-gswrapper 555
     70 _install S foomatic-rip ${LPBIN}/foomatic-rip 555
     71 _install L ../../lp/bin/foomatic-rip ${PREFIX}/lib/cups/filter/foomatic-rip
     72 _install S beh ${LPBIN}/beh 555
     73 _install S ../Solaris/netstandard_foomatic ${LPMODEL}/netstandard_foomatic 555
     74 _install S ../Solaris/standard_foomatic ${LPMODEL}/standard_foomatic 555
     75 
     76 _install M foomatic-gswrapper.1 ${PREFIX}/share/man/man1/foomatic-gswrapper.1 444
     77 _install M foomatic-rip.1 ${PREFIX}/share/man/man1/foomatic-rip.1 444
     78 
     79 _install N filter.conf ${ETCPREFIX}/filter.conf 444
     80 _install N filter.conf ${ETCPREFIX}/filter.conf.sample 444
     81 
     82 # 'a2ps' filter definition - supplies PostScript input to foomatic-rip
     83 #_install N ../Solaris/a2ps.fd ${LPFD}/a2ps.fd 444
     84 _install N ../Solaris/foomatic.fd ${LPFD}/foomatic.fd 444
     85 
     86 exit 0
     87