usr/src/lib/memcached/install-sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Sat, 22 Jan 2011 12:27:08 -0800
changeset 64 707ce1130311
parent 14 ebdd963f7d5e
permissions -rw-r--r--
Import sfw build 158 Bugs Fixed ---------- 6955181 memcached denial-of-service 7007860 SFW still contains multiple references to /var/svc/manifest files that got moved to /lib 7009105 OPENSSL_VERSION_NUMBER changed format breaking ON build 7009580 preparations for upgrading to a new compiler 7009623 gld fails to execute 7010920 CUPS ships /var/run in error 7011373 time to update default package copyright again

#!/bin/sh
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
#
#ident	"@(#)install-sfw	1.6	11/01/03 SMI"

# Memcached 1.4.5 is dependent on libevent

VER="memcached-1.4.5"
PREFIX="${ROOT}/usr"
LIBDIR="${PREFIX}/lib"
LIBDIR32="${PREFIX}/lib/${MACH32}"
SHAREDIR="${PREFIX}/share"
MAN1MDIR="${SHAREDIR}/man/man1m"
MANIFESTDIR="${ROOT}/lib/svc/manifest/application/database"
METHODDIR="${ROOT}/lib/svc/method"
MANSCRIPT="sunman-stability"
RIGHTSDIR=${ROOT}/etc/security
INCLUDEDIR="${PREFIX}/include"

. "${SRC}/tools/install.subr"

_install N Solaris/memcached.xml "${MANIFESTDIR}/memcached.xml" 444
_install N Solaris/memcached "${METHODDIR}/memcached" 555
_install M Solaris/memcached.1m "${MAN1MDIR}/memcached.1m" 444

_install N auth_attr ${RIGHTSDIR}/auth_attr.d/memcached 444
_install N prof_attr ${RIGHTSDIR}/prof_attr.d/memcached 444

# install the wrapper program using isaexec()
_install E memcached "${LIBDIR}/memcached" 555

cd ${VER}

_install E memcached "${LIBDIR32}/memcached" 555
_install N protocol_binary.h ${INCLUDEDIR}/memcached/protocol_binary.h 644
exit 0