From ac6dc5569bf8c6efbbde15306ac632a0bfc406da Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 6 May 2008 09:33:16 +0000 Subject: INTEGRATION: CWS native147 (1.6.90); FILE REMOVED 2008/04/23 21:08:52 obr 1.6.90.2: removed CDE integration as CDE in Solaris has been EOLed 2008/04/23 20:26:47 obr 1.6.90.1: #i88334#,#i61569#,#i62176# removed /etc indirection and package database check for office install location --- sysui/desktop/solaris/postinstall | 65 --------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 sysui/desktop/solaris/postinstall (limited to 'sysui/desktop/solaris') diff --git a/sysui/desktop/solaris/postinstall b/sysui/desktop/solaris/postinstall deleted file mode 100644 index a8aa9c11796d..000000000000 --- a/sysui/desktop/solaris/postinstall +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -DTAPPDIR=usr/dt/appconfig/types -ICONVDIR=usr/lib/iconv - -# Return the charset name for the specified locale -getcharset () -{ - # query codeset for locale and remove the ISO prefix - codeset=`LC_CTYPE=$1 locale -c code_set_name 2>/dev/null | sed -e 's/ISO8859/8859/'` - - if [ -f ${BASEDIR}/${ICONVDIR}/UTF-8%${codeset}.so ] - then - echo $codeset - fi -} - -# Create non UTF-8 entries for CDE on the fly by iterating of real existing -# directories and converting from UTF-8 into the appropriate codeset. -for i in `cd ${BASEDIR}/${DTAPPDIR}; find * -type d ! -name "*.UTF-8" ! -name "C"` -do - locale=`echo $i | sed -e 's/\..*//g' -e 's/ja$/ja_JP/' -e 's/en.*/C/g` - if [ "${locale}" != "C" ] - then - locale="${locale}.UTF-8" - fi - - # Check for existing source file. - if [ -f "${BASEDIR}/${DTAPPDIR}/${locale}/%PREFIX.fp" ] - then - charset=`getcharset $i` - if [ "$charset" != "" ] - then - echo "${CLIENT_BASEDIR}/${DTAPPDIR}/$i d 0755 root bin" - LC_CTYPE=$i cat ${BASEDIR}/${DTAPPDIR}/${locale}/%PREFIX.fp | iconv -f UTF-8 -t $charset > ${BASEDIR}/${DTAPPDIR}/$i/%PREFIX.fp \ - && echo "${CLIENT_BASEDIR}/${DTAPPDIR}/$i/%PREFIX.fp" - LC_CTYPE=$i cat ${BASEDIR}/${DTAPPDIR}/${locale}/%PREFIX.dt | iconv -f UTF-8 -t $charset > ${BASEDIR}/${DTAPPDIR}/$i/%PREFIX.dt \ - && echo "${CLIENT_BASEDIR}/${DTAPPDIR}/$i/%PREFIX.dt" - fi - fi -done | installf ${PKGINST} - || exit 2 - -# Add the symlink to software installation database -installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} ${PKGINST} ${CLIENT_BASEDIR}/etc/%PREFIX=..${OFFICE_PATH} s - -# Patch the launch script to run gnome-set-default-application on first office launch for GNOME < 2.6 -if [ "$LEGACY_GNOME" = "true" ] -then - cat >> /usr/bin/%PREFIX.tmp$$ << EOF -#!/bin/sh -USERDIR=\`sed -n -e 's/UserInstallation=//p' /etc/%PREFIX/program/bootstraprc | sed -e "s|.SYSUSERCONFIG|\$HOME|"\` -# Run gnome-set-default-application on first office launch -if [ ! -d \$USERDIR ] -then - /etc/%PREFIX/program/gnome-set-default-application '%PREFIX' 'application/vnd.oasis.opendocument' 'application/vnd.sun.xml' 'application/vnd.stardivision' -fi -EOF - sed -n -e '2,$ p' ${CLIENT_BASEDIR}/usr/bin/%PREFIX >> ${CLIENT_BASEDIR}/usr/bin/%PREFIX.tmp$$ - mv -f ${CLIENT_BASEDIR}/usr/bin/%PREFIX.tmp$$ ${CLIENT_BASEDIR}/usr/bin/%PREFIX - chmod 0755 ${CLIENT_BASEDIR}/usr/bin/%PREFIX - installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} ${PKGINST} ${CLIENT_BASEDIR}/usr/bin/%PREFIX f -fi - -installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} -f ${PKGINST} - -- cgit v1.2.3