usr/src/pkgdefs/publish.ksh
author David Powell <David.Powell@sun.com>
Tue, 14 Apr 2009 17:43:25 -0700
changeset 281 80481fe28fe8
parent 255 af9a9c40d84f
child 284 255095584c55
permissions -rw-r--r--
8166 put sharemgr panel in a separate package

#!/usr/bin/ksh
#
# 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 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

PKG_REPO=$1
PKGDIR=$2
VERSION=$3
if [[ -z $VERSION ]]; then
	VERSION=`pkg list -Hv entire | sed 's/^.*@\(.*\):.*$/\1/'`
	if [[ $? != 0 ]]; then
		echo "Not running on an IPS-based system"
		exit
	fi
fi

cd $PKGDIR
export PKG_REPO

eval `pkgsend open pkg:/OSOLvpanels@$VERSION`
pkgsend add set name=classification value="Applications/Configuration and Preferences"
pkgsend add depend type=require fmri=pkg:/SUNWcacaort
pkgsend add depend type=require fmri=pkg:/SUNWcacaowsvr
pkgsend add depend type=require fmri=pkg:/SUNWgnome-base-libs-java
pkgsend add depend type=require fmri=pkg:/SUNWjdmk-base
pkgsend add depend type=require fmri=pkg:/SUNWjhrt
pkgsend import OSOLvpin
pkgsend close

eval `pkgsend open pkg:/OSOLvpanels-mysql@$VERSION`
pkgsend add set name=classification value="Applications/Configuration and Preferences"
pkgsend add depend type=require fmri=pkg:/OSOLvpanels@$VERSION
pkgsend add depend type=require fmri=pkg:/SUNWmysql5jdbc
pkgsend import OSOLvpin-mysql
pkgsend close

eval `pkgsend open pkg:/OSOLvpanels-sysid@$VERSION`
pkgsend add set name=classification value="Applications/Configuration and Preferences"
pkgsend add depend type=require fmri=pkg:/OSOLvpanels@$VERSION
pkgsend import OSOLvpin-sysid
pkgsend close

eval `pkgsend open pkg:/OSOLvpanels-apache@$VERSION`
pkgsend add set name=classification value="Applications/Configuration and Preferences"
pkgsend add depend type=require fmri=pkg:/OSOLvpanels@$VERSION
pkgsend add depend type=require fmri=pkg:/SUNWapch22
pkgsend add depend type=require fmri=pkg:/SUNWapch22m-php52
pkgsend import OSOLvpin-apache
pkgsend close

eval `pkgsend open pkg:/OSOLvpanels-sharemgr@$VERSION`
pkgsend add set name=classification value="Applications/Configuration and Preferences"
pkgsend add depend type=require fmri=pkg:/OSOLvpanels@$VERSION
pkgsend import OSOLvpin-sharemgr
pkgsend close