changeset 10593:f28e850593b5

6873067 i.preserve and i.CONFIG.prsv need to be moved to ON
author Moriah Waterland <Moriah.Waterland@Sun.COM>
date Mon, 21 Sep 2009 11:25:30 -0600
parents 62ea4b0f9248
children 986cb68d2347
files usr/src/cmd/svr4pkg/pkgscripts/Makefile usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com
diffstat 3 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/svr4pkg/pkgscripts/Makefile	Mon Sep 21 12:56:39 2009 -0400
+++ b/usr/src/cmd/svr4pkg/pkgscripts/Makefile	Mon Sep 21 11:25:30 2009 -0600
@@ -32,6 +32,7 @@
 CLASS_ACTION_SCRIPTS =  i.awk		\
 			i.build		\
 			i.CompCpio	\
+			i.preserve	\
 			i.sed		\
 			r.awk		\
 			r.build		\
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh	Mon Sep 21 11:25:30 2009 -0600
@@ -0,0 +1,46 @@
+#!/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 1998 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+ 
+error=no
+echo "## checking common configuration files"
+while read src dest
+do
+      [ "$src" = /dev/null ] && continue
+
+      if [ -f "$dest" ]
+      then
+              echo $dest preserved
+      else
+              echo $dest
+              cp $src $dest || error=yes
+      fi
+ 
+done
+[ "$error" = yes ] &&
+        exit 2
+exit 0
--- a/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com	Mon Sep 21 12:56:39 2009 -0400
+++ b/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com	Mon Sep 21 11:25:30 2009 -0600
@@ -48,6 +48,10 @@
 f none usr/bin/pkgproto 555 root bin
 f none usr/bin/pkgtrans 555 root bin
 f none usr/bin/pkgadm 555 root bin
+
+#
+# Libraries
+#
 d none usr/lib 755 root bin
 f none usr/lib/libpkg.so.1 755 root bin
 s none usr/lib/libpkg.so=./libpkg.so.1
@@ -59,11 +63,17 @@
 f none usr/sadm/install/bin/pkgname 555 root sys
 f none usr/sadm/install/bin/pkgremove 555 root sys
 f none usr/sadm/install/bin/pkgserv 555 root sys
+
+#
+# Class action scripts
+#
 d none usr/sadm/install/scripts 755 root bin
 f none usr/sadm/install/scripts/cmdexec 555 root sys
 f none usr/sadm/install/scripts/i.CompCpio 555 root sys
 f none usr/sadm/install/scripts/i.awk 555 root sys
 f none usr/sadm/install/scripts/i.build 555 root sys
+f none usr/sadm/install/scripts/i.preserve 555 root sys
+l none usr/sadm/install/scripts/i.CONFIG.prsv=./i.preserve
 f none usr/sadm/install/scripts/i.sed 555 root sys
 f none usr/sadm/install/scripts/r.awk 555 root sys
 f none usr/sadm/install/scripts/r.build 555 root sys