Home | History | Annotate | Download | only in cdrtools
      1 #!/bin/sh
      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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #ident	"@(#)install-cdrtools	1.15	08/04/16 SMI"
     27 
     28 PKGVERS=${VER}
     29 PREFIX=${ROOT}/usr
     30 BINDIR=${PREFIX}/bin
     31 SHAREDIR=${PREFIX}/share
     32 
     33 . ${SRC}/tools/install.subr
     34 
     35 # manpages are special "sun" versions with corrected section
     36 # references, etc.  These are the ones we actually install.
     37 # Note to maintainers - if the package revs, you need to re-create
     38 # new sun versions of the manpages.
     39 
     40 MANSCRIPT=sunman-stability
     41 
     42 for man in mkisofs cdrecord cdda2wav readcd
     43 do
     44 	if [ ${man} = "mkisofs" ]; then
     45 		section="8";
     46 	else
     47 		section="1";
     48 	fi
     49 	manpage=${man}.${section}
     50 	mandir=${SHAREDIR}/man/man${section}
     51 	_install M ${PKGVERS}/${man}/${manpage} ${mandir}/${manpage} 444
     52 done
     53 
     54 # Handle mkisofs first since it doesn't need a wrapper script.
     55 FILE=mkisofs
     56 cd ${PKGVERS}
     57 cd $FILE/OBJ/`uname -p`-sunos5-cc
     58 _install E ${FILE} ${BINDIR}/${FILE} 555
     59 
     60 cd ../../..
     61 # Handle the other binaries.
     62 for binary in cdrecord cdda2wav readcd
     63 do
     64 	cd $binary/OBJ/`uname -p`-sunos5-cc
     65 	for i in $binary
     66 	do
     67 		_install E ${i} ${BINDIR}/${i}.bin 555
     68 	done	
     69 	cd ../../..
     70 done
     71 
     72 RIGHTSDIR=${ROOT}/etc/security
     73 
     74 # Install exec_attr with new entries for rbac to add.
     75 _install N ../../../common/rbac/exec_attr $RIGHTSDIR/exec_attr 644
     76 
     77 BINDIR=${ROOT}/usr/bin
     78 
     79 # Install wrapper scripts.
     80 _install S ../Solaris/cdrecord $BINDIR/cdrecord 555
     81 _install S ../Solaris/cdda2wav $BINDIR/cdda2wav 555
     82 _install S ../Solaris/readcd $BINDIR/readcd 555
     83 
     84 exit 0
     85