aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorkeith <keith@FreeBSD.org>2000-11-07 12:57:52 +0800
committerkeith <keith@FreeBSD.org>2000-11-07 12:57:52 +0800
commitc229272fd0f524b28c89a91ea12fadbe460e3b08 (patch)
tree33323887655e78ce1608aaa0f75fd80555eac30d /chinese
parenta9ea7b2d2cf98b54638faaf639c84b73542d4b16 (diff)
downloadfreebsd-ports-graphics-c229272fd0f524b28c89a91ea12fadbe460e3b08.tar.gz
freebsd-ports-graphics-c229272fd0f524b28c89a91ea12fadbe460e3b08.tar.zst
freebsd-ports-graphics-c229272fd0f524b28c89a91ea12fadbe460e3b08.zip
Add templates of pkg-deinstall, pkg-install, pkg-message, and
the startup script, which I forgot in previous commit. :(
Diffstat (limited to 'chinese')
-rw-r--r--chinese/linux-netscape47-communicator/files/DEINSTALL.in22
-rw-r--r--chinese/linux-netscape47-communicator/files/INSTALL.in18
-rw-r--r--chinese/linux-netscape47-communicator/files/MESSAGE.in9
-rw-r--r--chinese/linux-netscape47-communicator/files/start.sh.in34
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 00000000000..c786667dc99
--- /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 00000000000..110be3e9056
--- /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 00000000000..96448e0864e
--- /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 00000000000..71b4870cd96
--- /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@ "$@"