mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Add templates of pkg-deinstall, pkg-install, pkg-message, and
the startup script, which I forgot in previous commit. :(
This commit is contained in:
parent
3aed108da2
commit
711176c5f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34869
22
chinese/linux-netscape47-communicator/files/DEINSTALL.in
Normal file
22
chinese/linux-netscape47-communicator/files/DEINSTALL.in
Normal file
@ -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
|
||||
|
18
chinese/linux-netscape47-communicator/files/INSTALL.in
Normal file
18
chinese/linux-netscape47-communicator/files/INSTALL.in
Normal file
@ -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
|
||||
|
9
chinese/linux-netscape47-communicator/files/MESSAGE.in
Normal file
9
chinese/linux-netscape47-communicator/files/MESSAGE.in
Normal file
@ -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.
|
||||
--------------------------------------------------------------------
|
34
chinese/linux-netscape47-communicator/files/start.sh.in
Normal file
34
chinese/linux-netscape47-communicator/files/start.sh.in
Normal file
@ -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@ "$@"
|
Loading…
Reference in New Issue
Block a user