Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 92 lines (73 sloc) 2.143 kb
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
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 (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
eb02bc6 Jerry Jelinek install missing files into proto area
jjelinek authored
25 # Copyright (c) 2011, Joyent Inc. All rights reserved.
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
26
27 VERS=$1
28
29 PREFIX=${DESTDIR}/usr
30 BINDIR=${PREFIX}/bin
31 LIBDIR=${PREFIX}/lib
32 INCDIR=${PREFIX}/include
eb02bc6 Jerry Jelinek install missing files into proto area
jjelinek authored
33 MANDIR=${PREFIX}/share/man/man1
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
34
35 mkdir -p $BINDIR
36 mkdir -p $LIBDIR
a36874e Keith M Wesolowski OS-1150 libbz2 needs DT_SONAME
wesolows authored
37 mkdir -p $LIBDIR/amd64
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
38 mkdir -p $INCDIR
eb02bc6 Jerry Jelinek install missing files into proto area
jjelinek authored
39 mkdir -p $MANDIR
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
40
41 . ../install.subr
42
43
44 rm -f bzgrep.tmp
45 sed \
46 -e s,'^#!/bin/sh','#!/bin/ksh', \
47 < ${VERS}/bzgrep \
48 > bzgrep.tmp
49 _install S bzgrep.tmp ${BINDIR}/bzgrep 555
50
a36874e Keith M Wesolowski OS-1150 libbz2 needs DT_SONAME
wesolows authored
51 cd ${VERS}/i386
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
52
53 for i in bzip2 bzip2recover
54 do
55 _install E ${i} ${BINDIR}/${i} 555
56 done
57
58 _install H ${BINDIR}/bzip2 ${BINDIR}/bunzip2
59 _install H ${BINDIR}/bzip2 ${BINDIR}/bzcat
60
a36874e Keith M Wesolowski OS-1150 libbz2 needs DT_SONAME
wesolows authored
61 _install D libbz2.so.1 ${LIBDIR}/libbz2.so.1 755
62 _install L libbz2.so.1 ${LIBDIR}/libbz2.so
63
64 cd ${VERS}/amd64
65
66 _install D libbz2.so.1 ${LIBDIR}/amd64/libbz2.so.1 755
67 _install L libbz2.so.1 ${LIBDIR}/amd64/libbz2.so
68
69 cd ${VERS}
70
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
71 for i in bzmore bzdiff
72 do
73 _install S ${i} ${BINDIR}/${i} 555
74 done
75
76 _install H ${BINDIR}/bzgrep ${BINDIR}/bzegrep
77 _install H ${BINDIR}/bzgrep ${BINDIR}/bzfgrep
78 _install H ${BINDIR}/bzmore ${BINDIR}/bzless
79 _install H ${BINDIR}/bzdiff ${BINDIR}/bzcmp
80
81 for i in bzlib.h
82 do
83 _install N ${i} ${INCDIR}/${i} 644
84 done
85
eb02bc6 Jerry Jelinek install missing files into proto area
jjelinek authored
86 for i in bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
87 do
88 _install N ${i} ${MANDIR}/${i} 555
89 done
90
495f5aa John Sonnenschein initial import
JohnSonnenschein authored
91 exit 0
Something went wrong with that request. Please try again.