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-bzip2 1.12 08/04/21 SMI" 27 28 VERS=bzip2-1.0.5 29 30 PREFIX=${ROOT}/usr 31 BINDIR=${PREFIX}/bin 32 LIBDIR=${PREFIX}/lib 33 INCDIR=${PREFIX}/include 34 SHAREDIR=${PREFIX}/share 35 MAN1DIR=${SHAREDIR}/man/man1 36 MAN3DIR=${SHAREDIR}/man/man3 37 38 . ${SRC}/tools/install.subr 39 40 # install some stuff that doesn't come out of the source distribution 41 # (i.e. sun-specific stuff) from the base directory before installing 42 # from the build directory 43 44 _install N llib-lbz2 ${LIBDIR}/llib-lbz2 644 45 46 # manpages are special "sun" versions with corrected section 47 # references, etc. These are the ones we actually install. 48 # Note to maintainers - if the package revs, you need to re-create 49 # new sun versions of the manpages. 50 51 for i in *.1.sunman 52 do 53 manpage=`basename $i .sunman` 54 _install N $i ${MAN1DIR}/${manpage} 444 55 done 56 57 for i in *.3.sunman 58 do 59 manpage=`basename $i .sunman` 60 _install N $i ${MAN3DIR}/${manpage} 444 61 done 62 63 64 rm -f bzgrep.tmp 65 sed \ 66 -e s,'^#!/bin/sh','#!/bin/ksh', \ 67 < ${VERS}/bzgrep \ 68 > bzgrep.tmp 69 _install S bzgrep.tmp ${BINDIR}/bzgrep 555 70 71 cd ${VERS} 72 73 for i in bzip2 bzip2recover 74 do 75 _install E ${i} ${BINDIR}/${i} 555 76 done 77 78 _install H ${BINDIR}/bzip2 ${BINDIR}/bunzip2 79 _install H ${BINDIR}/bzip2 ${BINDIR}/bzcat 80 81 for i in bzmore bzdiff 82 do 83 _install S ${i} ${BINDIR}/${i} 555 84 done 85 86 _install H ${BINDIR}/bzgrep ${BINDIR}/bzegrep 87 _install H ${BINDIR}/bzgrep ${BINDIR}/bzfgrep 88 _install H ${BINDIR}/bzmore ${BINDIR}/bzless 89 _install H ${BINDIR}/bzdiff ${BINDIR}/bzcmp 90 91 _install D libbz2.so.1 ${LIBDIR}/libbz2.so.1 755 92 _install L libbz2.so.1 ${LIBDIR}/libbz2.so 93 _install N llib-lbz2.ln ${LIBDIR}/llib-lbz2.ln 644 94 95 for i in bzlib.h 96 do 97 _install N ${i} ${INCDIR}/${i} 644 98 done 99 100 exit 0 101