0
|
1 |
#!/usr/bin/ksh93
|
|
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 |
#
|
9
|
23 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
# install objects in the proto area, since it would
|
|
27 |
# really like to install locally, but that doesn't scale.
|
|
28 |
#
|
9
|
29 |
#ident "@(#)install-sfw 1.2 10/02/19 SMI"
|
0
|
30 |
set -o errexit
|
|
31 |
|
|
32 |
VERS=2.4b2_to
|
|
33 |
TARFILE=fping-${VERS}
|
|
34 |
PKGVERS=${TARFILE}-${MACH}
|
|
35 |
PREFIX=${ROOT}/usr
|
|
36 |
BINDIR=${PREFIX}/bin
|
|
37 |
SHAREDIR=${PREFIX}/share
|
|
38 |
LIBDIR=${PREFIX}/lib
|
|
39 |
MAN1MDIR=${SHAREDIR}/man/man1m
|
|
40 |
|
|
41 |
source "${SRC}/tools/install.subr"
|
|
42 |
|
|
43 |
|
|
44 |
cd "${PKGVERS}"
|
|
45 |
|
|
46 |
_install E fping "${BINDIR}/fping" 555
|
|
47 |
|
|
48 |
cd ../
|
|
49 |
|
|
50 |
# The fping manpage is updated by Sun to include a comment, an
|
|
51 |
# ATTRIBUTES section with stability classification, and a NOTES
|
|
52 |
# section containing a pointer to the source package. We do this
|
|
53 |
# automatically at install time. If the package is revised, it is
|
|
54 |
# possible that additional changes may be required. This can be
|
|
55 |
# generally be done by updating the sunman-stability file.
|
|
56 |
|
|
57 |
MANSCRIPT=./sunman-stability
|
|
58 |
|
|
59 |
manpage=fping.1m
|
|
60 |
_install M "${PKGVERS}/${manpage}" "${MAN1MDIR}/${manpage}" 444
|
|
61 |
|
9
|
62 |
_install N "exec_attr" "${ROOT}/etc/security/exec_attr.d/fping" 444
|
|
63 |
|
0
|
64 |
exit 0
|