usr/src/pkgdefs/publish.ksh
author Truong Nguyen <Truong.Q.Nguyen@Sun.COM>
Mon, 27 Jul 2009 16:19:29 -0700
changeset 333 315651ff58c5
parent 322 838d56f9f958
child 364 3d0218296414
permissions -rw-r--r--
10317 Firewall panel rewhacked

#!/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

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

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

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