0
|
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 |
#
|
14
|
23 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
0
|
24 |
#
|
14
|
25 |
#ident "@(#)install-sfw 1.5 10/04/22 SMI"
|
0
|
26 |
|
1
|
27 |
# Memcached 1.4.1 is dependent on libevent
|
0
|
28 |
|
1
|
29 |
VER="memcached-1.4.1"
|
0
|
30 |
PREFIX="${ROOT}/usr"
|
|
31 |
LIBDIR="${PREFIX}/lib"
|
|
32 |
LIBDIR32="${PREFIX}/lib/${MACH32}"
|
|
33 |
SHAREDIR="${PREFIX}/share"
|
|
34 |
MAN1MDIR="${SHAREDIR}/man/man1m"
|
14
|
35 |
MANIFESTDIR="${ROOT}/lib/svc/manifest/application/database"
|
0
|
36 |
METHODDIR="${ROOT}/lib/svc/method"
|
|
37 |
MANSCRIPT="sunman-stability"
|
|
38 |
RIGHTSDIR=${ROOT}/etc/security
|
1
|
39 |
INCLUDEDIR="${PREFIX}/include"
|
0
|
40 |
|
|
41 |
. "${SRC}/tools/install.subr"
|
|
42 |
|
|
43 |
_install N Solaris/memcached.xml "${MANIFESTDIR}/memcached.xml" 444
|
|
44 |
_install N Solaris/memcached "${METHODDIR}/memcached" 555
|
|
45 |
_install M Solaris/memcached.1m "${MAN1MDIR}/memcached.1m" 444
|
|
46 |
|
9
|
47 |
_install N auth_attr ${RIGHTSDIR}/auth_attr.d/memcached 444
|
|
48 |
_install N prof_attr ${RIGHTSDIR}/prof_attr.d/memcached 444
|
|
49 |
|
0
|
50 |
# install the wrapper program using isaexec()
|
|
51 |
_install E memcached "${LIBDIR}/memcached" 555
|
|
52 |
|
|
53 |
cd ${VER}
|
|
54 |
|
|
55 |
_install E memcached "${LIBDIR32}/memcached" 555
|
1
|
56 |
_install N protocol_binary.h ${INCLUDEDIR}/memcached/protocol_binary.h 644
|
0
|
57 |
exit 0
|