Skip to content

Commit

Permalink
6873067 i.preserve and i.CONFIG.prsv need to be moved to ON
Browse files Browse the repository at this point in the history
  • Loading branch information
Moriah Waterland authored and Moriah Waterland committed Sep 21, 2009
1 parent 6be82da commit 53520bf
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr/src/cmd/svr4pkg/pkgscripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
46 changes: 46 additions & 0 deletions usr/src/cmd/svr4pkg/pkgscripts/i.preserve.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions usr/src/pkgdefs/SUNWpkgcmdsu/prototype_com
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 53520bf

Please sign in to comment.