diff options
author | Jing-Tang Keith Jang <keith@FreeBSD.org> | 2000-11-07 04:57:52 +0000 |
---|---|---|
committer | Jing-Tang Keith Jang <keith@FreeBSD.org> | 2000-11-07 04:57:52 +0000 |
commit | 711176c5f713a3d626b24582fec6f573a2f9a0e8 (patch) | |
tree | 8c6c67a32b9d47107dc301d0797985110600b733 | |
parent | 1. USE_LIBTOOL instead of GNU_CONFIGURE (diff) |
Add templates of pkg-deinstall, pkg-install, pkg-message, and
the startup script, which I forgot in previous commit. :(
Notes
Notes:
svn path=/head/; revision=34869
4 files changed, 83 insertions, 0 deletions
diff --git a/chinese/linux-netscape47-communicator/files/DEINSTALL.in b/chinese/linux-netscape47-communicator/files/DEINSTALL.in new file mode 100644 index 000000000000..c786667dc999 --- /dev/null +++ b/chinese/linux-netscape47-communicator/files/DEINSTALL.in @@ -0,0 +1,22 @@ +#!/bin/sh +CLASSDIR=@NDIR@/java/classes +XLOCALEDIR=@X11BASE@/lib/X11/locale/zh_TW.Big5 + +if [ "$2" = "DEINSTALL" ]; then + exit 0; +fi + +# +# Restore font.properties.zh_GB2312, font.properties.zh_TW_Big5 +# and XLC_LOCALE. +# +if [ -f ${CLASSDIR}/font.properties.zh_GB2312.orig ]; then + mv -f ${CLASSDIR}/font.properties.zh_GB2312.orig ${CLASSDIR}/font.properties.zh_GB2312 +fi +if [ -f ${CLASSDIR}/font.properties.zh_TW_Big5.orig ]; then + mv -f ${CLASSDIR}/font.properties.zh_TW_Big5.orig ${CLASSDIR}/font.properties.zh_TW_Big5 +fi +if [ -f ${XLOCALEDIR}/XLC_LOCALE.orig ]; then + mv -f ${XLOCALEDIR}/XLC_LOCALE.orig ${XLOCALEDIR}/XLC_LOCALE +fi + diff --git a/chinese/linux-netscape47-communicator/files/INSTALL.in b/chinese/linux-netscape47-communicator/files/INSTALL.in new file mode 100644 index 000000000000..110be3e90566 --- /dev/null +++ b/chinese/linux-netscape47-communicator/files/INSTALL.in @@ -0,0 +1,18 @@ +#!/bin/sh +CLASSDIR=@NDIR@/java/classes +XLOCALEDIR=@X11BASE@/lib/X11/locale/zh_TW.Big5 + +if [ "$2" = "POST-INSTALL" ]; then + exit 0; +fi + +if [ "$2" = "PRE-INSTALL" ]; then +# +# Backup font.properties.zh_GB2312, font.properties.zh_TW_Big5, +# and XLC_LOCALE. +# + cp -f ${CLASSDIR}/font.properties.zh_GB2312 ${CLASSDIR}/font.properties.zh_GB2312.orig + cp -f ${CLASSDIR}/font.properties.zh_TW_Big5 ${CLASSDIR}/font.properties.zh_TW_Big5.orig + cp -f ${XLOCALEDIR}/XLC_LOCALE ${XLOCALEDIR}/XLC_LOCALE.orig +fi + diff --git a/chinese/linux-netscape47-communicator/files/MESSAGE.in b/chinese/linux-netscape47-communicator/files/MESSAGE.in new file mode 100644 index 000000000000..96448e0864e7 --- /dev/null +++ b/chinese/linux-netscape47-communicator/files/MESSAGE.in @@ -0,0 +1,9 @@ +-------------------------------------------------------------------- +Check the following files if you want to modify some X resources to +suit your personal settings, like a wheel mouse or XIM input styles: +@NDIR@/@LOCALE@/Netscape.WheelMouse +@NDIR@/@LOCALE@/Netscape + +If your want to modify and redistriute this program, see +@NDIR@/@LOCALE@/BDP_LICENSE. +-------------------------------------------------------------------- diff --git a/chinese/linux-netscape47-communicator/files/start.sh.in b/chinese/linux-netscape47-communicator/files/start.sh.in new file mode 100644 index 000000000000..71b4870cd965 --- /dev/null +++ b/chinese/linux-netscape47-communicator/files/start.sh.in @@ -0,0 +1,34 @@ +#!/bin/sh +if [ ! -d $HOME/.netscape ]; then + mkdir -m 700 $HOME/.netscape + cp @RDIR@/@LOCALE@/preferences.js $HOME/.netscape + chmod 644 $HOME/.netscape/preferences.js +fi +export LANG=@LOCALE@ +export LC_ALL=${LANG} +export LC_CTYPE=${LANG} +export MOZILLA_HOME=@NDIR@ +export CLASSPATH=.:${MOZILLA_HOME} +export NS_NETHELP_PATH=${MOZILLA_HOME}/${LANG} +export XKEYSYMDB=@X11BASE@/lib/X11/XKeysymDB +export XAPPLRESDIR=@RDIR@ +export XCMSDB=/dev/null +ulimit -c 0 + +ACRO_HOME=@PREFIX@/Acrobat4 +if [ -d $ACRO_HOME ]; then + export PATH=${PATH}:${ACRO_HOME}/bin + ACRO_PLUGIN_PATH=:${ACRO_HOME}/Browsers/intellinux +fi +if [ -z $NPX_PLUGIN_PATH ]; then + export NPX_PLUGIN_PATH=${MOZILLA_HOME}/plugins:${HOME}/.netscape/plugins${ACRO_PLUGIN_PATH} +else + export NPX_PLUGIN_PATH=${NPX_PLUGIN_PATH}${ACRO_PLUGIN_PATH} +fi +if [ -x /compat/linux/usr/X11R6/lib/libXm-ns.so.1.0.2 ]; then + MOZILLA_BIN=${MOZILLA_HOME}/netscape-dynMotif +else + MOZILLA_BIN=${MOZILLA_HOME}/@BROWSER_BIN@ +fi + +exec ${MOZILLA_HOME}/@BROWSER_BIN@ "$@" |