From a74fca12a5f9c15bc00e60e74ef5fbfdb2c21336 Mon Sep 17 00:00:00 2001 From: mb158278 Date: Mon, 19 Dec 2005 15:58:44 -0800 Subject: 6364450 Fix packaging issue in SUNWdcs --HG-- rename : usr/src/pkgdefs/SUNWdcsu/postinstall => usr/src/pkgdefs/SUNWdcsr/postinstall --- usr/src/pkgdefs/SUNWdcsr/postinstall | 47 ++++++++++++++++++++++++++++++++++ usr/src/pkgdefs/SUNWdcsr/prototype_com | 7 ++++- usr/src/pkgdefs/SUNWdcsu/postinstall | 47 ---------------------------------- usr/src/pkgdefs/SUNWdcsu/prototype_com | 5 ---- 4 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 usr/src/pkgdefs/SUNWdcsr/postinstall delete mode 100644 usr/src/pkgdefs/SUNWdcsu/postinstall (limited to 'usr/src') diff --git a/usr/src/pkgdefs/SUNWdcsr/postinstall b/usr/src/pkgdefs/SUNWdcsr/postinstall new file mode 100644 index 0000000000..3125338031 --- /dev/null +++ b/usr/src/pkgdefs/SUNWdcsr/postinstall @@ -0,0 +1,47 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (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 +# +# ident "%Z%%M% %I% %E% SMI" + +if [ "$UPDATE" = yes ]; then + cat >> ${PKG_INSTALL_ROOT:-/}/var/svc/profile/upgrade <<-EOF + # We are deleting and reimporting dcs's manifest, because we + # need to change the restarter. + dcsfmri="svc:/platform/sun4u/dcs:default" + dcsmani="/var/svc/manifest/platform/sun4u/dcs.xml" + restarter=\`svcprop -c -p general/restarter \$dcsfmri 2>&1\` + case \$restarter in + *network/inetd:default) + en=\`svcprop -c -p general/enabled \$dcsfmri\` + svccfg delete -f \$dcsfmri + svccfg import \$dcsmani + if [ \$en = "true" ]; then + svcadm enable \$dcsfmri + fi + ;; + esac +EOF +fi + +exit 0 diff --git a/usr/src/pkgdefs/SUNWdcsr/prototype_com b/usr/src/pkgdefs/SUNWdcsr/prototype_com index 30109e542c..b64acea39e 100644 --- a/usr/src/pkgdefs/SUNWdcsr/prototype_com +++ b/usr/src/pkgdefs/SUNWdcsr/prototype_com @@ -22,7 +22,7 @@ # #ident "%Z%%M% %I% %E% SMI" # -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This required package information file contains a list of package contents. @@ -41,6 +41,7 @@ i copyright i depend i i.manifest i r.manifest +i postinstall # # source locations relative to the prototype file # @@ -52,3 +53,7 @@ d none var/svc/manifest 0755 root sys d none var/svc/manifest/platform 0755 root sys d none var/svc/manifest/platform/sun4u 0755 root sys f manifest var/svc/manifest/platform/sun4u/dcs.xml 0444 root sys +d none lib 755 root bin +d none lib/svc 0755 root bin +d none lib/svc/method 0755 root bin +f none lib/svc/method/svc-dcs 0555 root bin diff --git a/usr/src/pkgdefs/SUNWdcsu/postinstall b/usr/src/pkgdefs/SUNWdcsu/postinstall deleted file mode 100644 index 3125338031..0000000000 --- a/usr/src/pkgdefs/SUNWdcsu/postinstall +++ /dev/null @@ -1,47 +0,0 @@ -# -# Copyright 2005 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (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 -# -# ident "%Z%%M% %I% %E% SMI" - -if [ "$UPDATE" = yes ]; then - cat >> ${PKG_INSTALL_ROOT:-/}/var/svc/profile/upgrade <<-EOF - # We are deleting and reimporting dcs's manifest, because we - # need to change the restarter. - dcsfmri="svc:/platform/sun4u/dcs:default" - dcsmani="/var/svc/manifest/platform/sun4u/dcs.xml" - restarter=\`svcprop -c -p general/restarter \$dcsfmri 2>&1\` - case \$restarter in - *network/inetd:default) - en=\`svcprop -c -p general/enabled \$dcsfmri\` - svccfg delete -f \$dcsfmri - svccfg import \$dcsmani - if [ \$en = "true" ]; then - svcadm enable \$dcsfmri - fi - ;; - esac -EOF -fi - -exit 0 diff --git a/usr/src/pkgdefs/SUNWdcsu/prototype_com b/usr/src/pkgdefs/SUNWdcsu/prototype_com index ea45fa7487..f4964a066d 100644 --- a/usr/src/pkgdefs/SUNWdcsu/prototype_com +++ b/usr/src/pkgdefs/SUNWdcsu/prototype_com @@ -39,16 +39,11 @@ i pkginfo i copyright i depend -i postinstall # # source locations relative to the prototype file # # SUNWdcsu # -d none lib 755 root bin -d none lib/svc 0755 root bin -d none lib/svc/method 0755 root bin -f none lib/svc/method/svc-dcs 0555 root bin d none usr 755 root sys d none usr/lib 755 root bin f none usr/lib/dcs 755 root bin -- cgit v1.2.3