--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/lib/fontconfig/fc-cache.sh Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,96 @@
+#!/bin/ksh
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# ident "@(#)fc-cache.sh 1.1 08/02/24 SMI"
+#
+
+PATH=/usr/bin:/usr/sbin
+
+. /lib/svc/share/smf_include.sh
+
+USAGE="Usage: $0 <method>"
+
+if [ $# -ne 1 ] ; then
+ echo $USAGE
+ exit 2
+fi
+
+METHOD=$1
+
+case $METHOD in
+ start)
+ # Continue with rest of script
+ ;;
+ -*)
+ echo $USAGE
+ exit 2
+ ;;
+ *)
+ echo "Invalid method $METHOD"
+ exit 2
+ ;;
+esac
+
+getprop() {
+ PROPVAL=""
+ svcprop -q -p $1 application/font/fc-cache
+ if [ $? -eq 0 ] ; then
+ PROPVAL=$(svcprop -p $1 application/font/fc-cache)
+ if [ "$PROPVAL" == "\"\"" ] ; then
+ PROPVAL=""
+ fi
+ return
+ fi
+ return
+}
+
+ARGS=""
+POSTCMD=""
+RETVAL=$SMF_EXIT_OK
+
+getprop options/force_rebuild
+if [ "$PROPVAL" = "true" ] ; then
+ ARGS="$ARGS -f"
+ POSTCMD="svccfg -s application/font/fc-cache setprop options/force_rebuild=false"
+fi
+
+/usr/bin/fc-cache $ARGS
+if [ $? -ne 0 ] ; then
+ RETVAL=$SMF_EXIT_MON_DEGRADE
+fi
+
+if [ "$POSTCMD" != "" ] ; then
+ eval $POSTCMD
+fi
+
+exit $RETVAL
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWi1of/Makefile Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,43 @@
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+
+SOURCEDIR = ..
+TMPLFILES = postinstall postremove
+DATAFILES =
+
+.KEEP_STATE:
+
+all \
+install: $(TMPLFILES) $(DATAFILES)
+
+.SUFFIXES: .tmpl $(SUFFIXES)
+
+.tmpl: $(SOURCEDIR)/awk_procedure
+ -$(RM) $@
+ SOURCEDIR=${SOURCEDIR} nawk -f $(SOURCEDIR)/awk_procedure [email protected] >$@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWi1of/postinstall.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,39 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postinstall.tmpl 1.1 08/02/25 SMI
+#
+# SUNWi1of (ISO-8859-1 (Latin-1) Optional Fonts) postinstall script.
+
+include fc_rebuild
+
+exit 0
+
--- a/packages/SUNWi1of/postremove Wed Feb 27 19:49:07 2008 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-###########################################################################
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, and/or sell copies of the Software, and to permit persons
-# to whom the Software is furnished to do so, provided that the above
-# copyright notice(s) and this permission notice appear in all copies of
-# the Software and that both the above copyright notice(s) and this
-# permission notice appear in supporting documentation.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
-# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
-# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
-# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-# Except as contained in this notice, the name of a copyright holder
-# shall not be used in advertising or otherwise to promote the sale, use
-# or other dealings in this Software without prior written authorization
-# of the copyright holder.
-#
-###########################################################################
-#
-# @(#)postremove 1.7 07/11/05 SMI
-#
-# SUNWi1of (ISO-8859-1 (Latin-1) Optional Fonts) post install/remove script.
-#
-# Rebuilds the fonts.dir files if mkfontdir exists otherwise does nothing
-#
-
-FONTINSTDIR=$BASEDIR/openwin/lib/X11/fonts
-export FONTINSTDIR
-EXEC_BASE=/usr
-PKGCOND=/usr/bin/pkgcond
-DISKLESS_SRVC=`echo $BASEDIR | /usr/bin/grep export/Solaris_[1-9][0-9]/usr_${ARCH}.all`
-MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
-ENV_MKFONTDIR=$MKFONTDIR
-INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
-ENV_INSTALLALIAS=$INSTALLALIAS
-
-is_srngz=99
-is_ngz=99
-
-if [ -x $PKGCOND ]; then
- $PKGCOND is_sparse_root_nonglobal_zone
- is_srngz=$?
- $PKGCOND -v is_nonglobal_zone > /dev/null 2>&1
- is_ngz=$?
-fi
-
-if [ $is_ngz -eq 0 ]; then
- if [ "$DISKLESS_SRVC" ]; then
- EXEC_BASE=/usr
- else
- EXEC_BASE=$BASEDIR
- fi
- MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
- INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
- ENV_MKFONTDIR="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $MKFONTDIR"
- ENV_INSTALLALIAS="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $INSTALLALIAS"
-fi
-
-##
-## 'pkgcond' does not exist when you do live upgrade from S8/S9
-## so in that case, use 'touch' instead for the testing
-##
-test_writable() {
- if [ $is_srngz -ne 99 ]; then
- $PKGCOND is_path_writable $1 && return $?
- else
- /usr/bin/touch $1/.test.$$ > /dev/null 2>&1
- if [ $? != 0 ]; then
- return 1
- else
- rm -f $1/.test.$$ > /dev/null 2>&1
- return 0
- fi
- fi
-}
-
-if [ -x $EXEC_BASE/openwin/bin/mkfontdir ]; then
- for dir in TTbitmaps TrueType Type1/sun
- do
- if [ -d $FONTINSTDIR/$dir ]; then
- (
- cd $FONTINSTDIR/$dir
- if test_writable $FONTINSTDIR/$dir; then
- $ENV_MKFONTDIR . || exit 2
- $ENV_INSTALLALIAS fonts.alias.req .
- # Bug 4198211: chgrp to bin to match pkg database
- chgrp bin fonts.dir
- fi
- )
- fi
- done
-fi
-
-
-exit 0
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWi1of/postremove.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,43 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postremove.tmpl 1.8 08/02/26 SMI
+#
+# SUNWi1of (ISO-8859-1 (Latin-1) Optional Fonts) postremove script.
+
+include fc_rebuild
+
+include mkfontdir
+
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/TTbitmaps
+
+exit 0
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwcft/Makefile Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,43 @@
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+
+SOURCEDIR = ..
+TMPLFILES = postinstall postremove
+DATAFILES =
+
+.KEEP_STATE:
+
+all \
+install: $(TMPLFILES) $(DATAFILES)
+
+.SUFFIXES: .tmpl $(SUFFIXES)
+
+.tmpl: $(SOURCEDIR)/awk_procedure
+ -$(RM) $@
+ SOURCEDIR=${SOURCEDIR} nawk -f $(SOURCEDIR)/awk_procedure [email protected] >$@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwcft/postinstall.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,39 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postinstall.tmpl 1.1 08/02/25 SMI
+#
+# SUNWxwcft (X Window System common (not required) fonts) postinstall script.
+
+include fc_rebuild
+
+exit 0
+
--- a/packages/SUNWxwcft/postremove Wed Feb 27 19:49:07 2008 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-###########################################################################
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, and/or sell copies of the Software, and to permit persons
-# to whom the Software is furnished to do so, provided that the above
-# copyright notice(s) and this permission notice appear in all copies of
-# the Software and that both the above copyright notice(s) and this
-# permission notice appear in supporting documentation.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
-# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
-# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
-# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-# Except as contained in this notice, the name of a copyright holder
-# shall not be used in advertising or otherwise to promote the sale, use
-# or other dealings in this Software without prior written authorization
-# of the copyright holder.
-#
-###########################################################################
-#
-# "@(#)postremove 1.4 08/02/99 19:17:27 Sun Microsystems"
-# SUNWxwoft (ISO-8859-1 (Latin-1) Optional Fonts) post install/remove script.
-#
-# Rebuilds the fonts.dir files if mkfontdir exists otherwise does nothing
-#
-
-FONTINSTDIR=$BASEDIR/openwin/lib/X11/fonts
-export FONTINSTDIR
-EXEC_BASE=/usr
-PKGCOND=/usr/bin/pkgcond
-MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
-ENV_MKFONTDIR=$MKFONTDIR
-INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
-ENV_INSTALLALIAS=$INSTALLALIAS
-DISKLESS_SRVC=`echo $BASEDIR | /usr/bin/grep export/Solaris_[1-9][0-9]/usr_${ARCH}.all`
-is_srngz=99
-is_ngz=99
-
-if [ -x $PKGCOND ]; then
- $PKGCOND is_sparse_root_nonglobal_zone
- is_srngz=$?
- $PKGCOND -v is_nonglobal_zone > /dev/null 2>&1
- is_ngz=$?
-fi
-
-if [ $is_ngz -eq 0 ]; then
- if [ "$DISKLESS_SRVC" ]; then
- EXEC_BASE=/usr
- else
- EXEC_BASE=$BASEDIR
- fi
- MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
- INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
- ENV_MKFONTDIR="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $MKFONTDIR"
- ENV_INSTALLALIAS="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $INSTALLALIAS"
-fi
-
-##
-## 'pkgcond' does not exist when you do live upgrade from S8/S9
-## so in that case, use 'touch' instead for the testing
-##
-test_writable() {
- if [ $is_srngz -ne 99 ]; then
- $PKGCOND is_path_writable $1 && return $?
- else
- /usr/bin/touch $1/.test.$$ > /dev/null 2>&1
- if [ $? != 0 ]; then
- return 1
- else
- rm -f $1/.test.$$ > /dev/null 2>&1
- return 0
- fi
- fi
-}
-
-if [ -x $EXEC_BASE/openwin/bin/mkfontdir ]; then
- for dir in 75dpi F3 F3bitmaps Type1 misc
- do
- if [ -d $FONTINSTDIR/$dir ]; then
- (
- cd $FONTINSTDIR/$dir
- if test_writable $FONTINSTDIR/$dir; then
- $ENV_MKFONTDIR . || exit 2
- $ENV_INSTALLALIAS fonts.alias.req .
- # Bug 4198211: chgrp to bin to match pkg database
- chgrp bin fonts.dir
- fi
- )
- fi
- done
-fi
-
-
-exit 0
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwcft/postremove.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,48 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postremove.tmpl 35.8 08/02/26 SMI
+#
+# SUNWxwcft (X Window System common (not required) fonts) postremove script.
+
+include fc_rebuild
+
+include mkfontdir
+
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/75dpi
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/Type1
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/misc
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/F3bitmaps
+update_fontdir_and_alias $BASEDIR/X11/lib/X11/fonts/Type1
+
+exit 0
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwfnt/Makefile Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,43 @@
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+
+SOURCEDIR = ..
+TMPLFILES = postinstall postremove
+DATAFILES =
+
+.KEEP_STATE:
+
+all \
+install: $(TMPLFILES) $(DATAFILES)
+
+.SUFFIXES: .tmpl $(SUFFIXES)
+
+.tmpl: $(SOURCEDIR)/awk_procedure
+ -$(RM) $@
+ SOURCEDIR=${SOURCEDIR} nawk -f $(SOURCEDIR)/awk_procedure [email protected] >$@
--- a/packages/SUNWxwfnt/postinstall Wed Feb 27 19:49:07 2008 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-###########################################################################
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, and/or sell copies of the Software, and to permit persons
-# to whom the Software is furnished to do so, provided that the above
-# copyright notice(s) and this permission notice appear in all copies of
-# the Software and that both the above copyright notice(s) and this
-# permission notice appear in supporting documentation.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
-# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
-# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
-# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-# Except as contained in this notice, the name of a copyright holder
-# shall not be used in advertising or otherwise to promote the sale, use
-# or other dealings in this Software without prior written authorization
-# of the copyright holder.
-#
-###########################################################################
-#
-# SUNWxwfnt (X Window System platform required fonts) postinstall script.
-#
-# /usr/openwin/bin/installalias and mkfontdir was previously packaged
-# in SUNWxwfnt. Now it is moved to SUNWxwfsw and we need to preserve it
-# due to zones upgrade from S10.
-# Therefore, removef(1M) is used to remove the packaging database entry
-# although the files itself are preserved.
-#
-FILELIST="\
-/usr/openwin/server/lib/libtypesclr.so.0 \
-/usr/openwin/server/lib/libtypesclr.so \
-/usr/openwin/server/lib/libfont.so.1 \
-/usr/openwin/server/lib/libfont.so \
-/usr/openwin/server/lib \
-/usr/openwin/server \
-/usr/openwin/lib/installalias \
-/usr/openwin/bin/mkfontdir \
-/usr/openwin/bin \
-"
-for i in $FILELIST ; do
-/usr/sbin/removef SUNWxwfnt $i >/dev/null 2>&1
-done
-/usr/sbin/removef -f SUNWxwfnt >/dev/null 2>&1
-
-
-exit 0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwfnt/postinstall.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,58 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# SUNWxwfnt (X Window System platform required fonts) postinstall script.
+#
+# /usr/openwin/bin/installalias and mkfontdir was previously packaged
+# in SUNWxwfnt. Now it is moved to SUNWxwfsw and we need to preserve it
+# due to zones upgrade from S10.
+# Therefore, removef(1M) is used to remove the packaging database entry
+# although the files itself are preserved.
+#
+FILELIST="\
+/usr/openwin/server/lib/libtypesclr.so.0 \
+/usr/openwin/server/lib/libtypesclr.so \
+/usr/openwin/server/lib/libfont.so.1 \
+/usr/openwin/server/lib/libfont.so \
+/usr/openwin/server/lib \
+/usr/openwin/server \
+/usr/openwin/lib/installalias \
+/usr/openwin/bin/mkfontdir \
+/usr/openwin/bin \
+"
+for i in $FILELIST ; do
+/usr/sbin/removef SUNWxwfnt $i >/dev/null 2>&1
+done
+/usr/sbin/removef -f SUNWxwfnt >/dev/null 2>&1
+
+include fc_rebuild
+
+exit 0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwfnt/postremove.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,51 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postremove.tmpl 1.1 08/02/25 SMI
+#
+# SUNWxwfnt (X Window System platform required fonts) postremove script.
+
+include fc_rebuild
+
+include mkfontdir
+
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/75dpi
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/100dpi
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/pcf
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/Speedo
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/misc
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/F3bitmaps
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/Type1/outline
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/Type1/sun
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/TrueType
+
+exit 0
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwoft/Makefile Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,43 @@
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+
+SOURCEDIR = ..
+TMPLFILES = postinstall postremove
+DATAFILES =
+
+.KEEP_STATE:
+
+all \
+install: $(TMPLFILES) $(DATAFILES)
+
+.SUFFIXES: .tmpl $(SUFFIXES)
+
+.tmpl: $(SOURCEDIR)/awk_procedure
+ -$(RM) $@
+ SOURCEDIR=${SOURCEDIR} nawk -f $(SOURCEDIR)/awk_procedure [email protected] >$@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwoft/postinstall.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,39 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postinstall.tmpl 1.1 08/02/27 SMI
+#
+# SUNWxwoft (X Window System optional fonts) postinstall script.
+
+include fc_rebuild
+
+exit 0
+
--- a/packages/SUNWxwoft/postremove Wed Feb 27 19:49:07 2008 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-###########################################################################
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, and/or sell copies of the Software, and to permit persons
-# to whom the Software is furnished to do so, provided that the above
-# copyright notice(s) and this permission notice appear in all copies of
-# the Software and that both the above copyright notice(s) and this
-# permission notice appear in supporting documentation.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
-# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
-# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
-# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-# Except as contained in this notice, the name of a copyright holder
-# shall not be used in advertising or otherwise to promote the sale, use
-# or other dealings in this Software without prior written authorization
-# of the copyright holder.
-#
-###########################################################################
-#
-# "@(#)postremove 35.7 07/11/05 Sun Microsystems"
-#
-# SUNWxwoft (ISO-8859-1 (Latin-1) Optional Fonts) post install/remove script.
-#
-# Rebuilds the fonts.dir files if mkfontdir exists otherwise does nothing
-#
-
-FONTINSTDIR=$BASEDIR/openwin/lib/X11/fonts
-export FONTINSTDIR
-EXEC_BASE=/usr
-PKGCOND=/usr/bin/pkgcond
-MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
-ENV_MKFONTDIR=$MKFONTDIR
-INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
-ENV_INSTALLALIAS=$INSTALLALIAS
-DISKLESS_SRVC=`echo $BASEDIR | /usr/bin/grep export/Solaris_[1-9][0-9]/usr_${ARCH}.all`
-
-is_srngz=99
-is_ngz=99
-
-if [ -x $PKGCOND ]; then
- $PKGCOND is_sparse_root_nonglobal_zone
- is_srngz=$?
- $PKGCOND -v is_nonglobal_zone > /dev/null 2>&1
- is_ngz=$?
-fi
-
-if [ $is_ngz -eq 0 ]; then
- if [ "$DISKLESS_SRVC" ]; then
- EXEC_BASE=/usr
- else
- EXEC_BASE=$BASEDIR
- fi
- MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
- INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
- ENV_MKFONTDIR="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $MKFONTDIR"
- ENV_INSTALLALIAS="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $INSTALLALIAS"
-fi
-
-##
-## 'pkgcond' does not exist when you do live upgrade from S8/S9
-## so in that case, use 'touch' instead for the testing
-##
-test_writable() {
- if [ $is_srngz -ne 99 ]; then
- $PKGCOND is_path_writable $1 && return $?
- else
- /usr/bin/touch $1/.test.$$ > /dev/null 2>&1
- if [ $? != 0 ]; then
- return 1
- else
- rm -f $1/.test.$$ > /dev/null 2>&1
- return 0
- fi
- fi
-}
-
-if [ -x $EXEC_BASE/openwin/bin/mkfontdir ]; then
- for dir in 100dpi 75dpi F3 Speedo Type3
- do
- if [ -d $FONTINSTDIR/$dir ]; then
- (
- cd $FONTINSTDIR/$dir
- if test_writable $FONTINSTDIR/$dir; then
- $ENV_MKFONTDIR . || exit 2
- $ENV_INSTALLALIAS fonts.alias.req .
- # Bug 4198211: chgrp to bin to match pkg database
- chgrp bin fonts.dir
- fi
- )
- fi
- done
-fi
-
-
-exit 0
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/SUNWxwoft/postremove.tmpl Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,46 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# @(#)postremove.tmpl 35.8 08/02/26 SMI
+#
+# SUNWxwoft (X Window System optional fonts) postremove script.
+
+include fc_rebuild
+
+include mkfontdir
+
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/75dpi
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/100dpi
+update_fontdir_and_alias $BASEDIR/openwin/lib/X11/fonts/Speedo
+
+exit 0
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/common_files/proc.fc_rebuild Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# ident "@(#)proc.fc_rebuild 1.2 08/02/26 SMI"
+#
+
+# Force fontconfig cache rebuild on next boot
+cat >> $BASEDIR/../var/svc/profile/upgrade <<\_EOF
+ /usr/sbin/svccfg -s application/font/fc-cache setprop options/force_rebuild=true
+_EOF
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/common_files/proc.mkfontdir Wed Feb 27 19:55:52 2008 -0800
@@ -0,0 +1,104 @@
+###########################################################################
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+#
+###########################################################################
+#
+# "@(#)proc.mkfontdir 1.1 08/02/25 Sun Microsystems"
+#
+# Rebuilds the fonts.dir files if mkfontdir exists otherwise does nothing
+#
+
+EXEC_BASE=/usr
+PKGCOND=/usr/bin/pkgcond
+MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
+ENV_MKFONTDIR=$MKFONTDIR
+INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
+ENV_INSTALLALIAS=$INSTALLALIAS
+DISKLESS_SRVC=`echo $BASEDIR | /usr/bin/grep export/Solaris_[1-9][0-9]/usr_${ARCH}.all`
+
+is_srngz=99
+is_ngz=99
+
+if [ -x $PKGCOND ]; then
+ $PKGCOND is_sparse_root_nonglobal_zone
+ is_srngz=$?
+ $PKGCOND -v is_nonglobal_zone > /dev/null 2>&1
+ is_ngz=$?
+fi
+
+if [ $is_ngz -eq 0 ]; then
+ if [ "$DISKLESS_SRVC" ]; then
+ EXEC_BASE=/usr
+ else
+ EXEC_BASE=$BASEDIR
+ fi
+ MKFONTDIR=$EXEC_BASE/openwin/bin/mkfontdir
+ INSTALLALIAS=$EXEC_BASE/openwin/lib/installalias
+ ENV_MKFONTDIR="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $MKFONTDIR"
+ ENV_INSTALLALIAS="env LD_LIBRARY_PATH=$BASEDIR/openwin/server/lib:$BASEDIR/openwin/lib $INSTALLALIAS"
+fi
+
+##
+## 'pkgcond' does not exist when you do live upgrade from S8/S9
+## so in that case, use 'touch' instead for the testing
+##
+test_writable() {
+ if [ $is_srngz -ne 99 ]; then
+ $PKGCOND is_path_writable $1 && return $?
+ else
+ /usr/bin/touch $1/.test.$$ > /dev/null 2>&1
+ if [ $? != 0 ]; then
+ return 1
+ else
+ rm -f $1/.test.$$ > /dev/null 2>&1
+ return 0
+ fi
+ fi
+}
+
+##
+## Updates font.dir and fonts.alias files to match those present in
+## the directory now
+##
+update_fontdir_and_alias() {
+ if [ -x $EXEC_BASE/openwin/bin/mkfontdir ]; then
+ if [ -d $1 ]; then
+ (
+ cd $1
+ if test_writable $1; then
+ $ENV_MKFONTDIR . || exit 2
+ $ENV_INSTALLALIAS fonts.alias.req .
+ # Bug 4198211: chgrp to bin to match pkg database
+ chgrp bin fonts.dir
+ fi
+ )
+ fi
+ fi
+}
+