diff options
-rw-r--r-- | usr/src/cmd/svr4pkg/pkgscripts/Makefile | 1 | ||||
-rw-r--r-- | usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh | 46 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com | 10 |
3 files changed, 57 insertions, 0 deletions
diff --git a/usr/src/cmd/svr4pkg/pkgscripts/Makefile b/usr/src/cmd/svr4pkg/pkgscripts/Makefile index fb758a4e88..7853128eee 100644 --- a/usr/src/cmd/svr4pkg/pkgscripts/Makefile +++ b/usr/src/cmd/svr4pkg/pkgscripts/Makefile @@ -32,6 +32,7 @@ SRCS= $(OBJS:.o=.c) CLASS_ACTION_SCRIPTS = i.awk \ i.build \ i.CompCpio \ + i.preserve \ i.sed \ r.awk \ r.build \ diff --git a/usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh b/usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh new file mode 100644 index 0000000000..cfa29f9187 --- /dev/null +++ b/usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh @@ -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 diff --git a/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com b/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com index 9c382712c7..a82c481939 100644 --- a/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com +++ b/usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com @@ -48,6 +48,10 @@ f none usr/bin/pkgparam 555 root sys 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/pkginstall 555 root sys 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 |