pkgsrc/www/mozilla/INSTALL
ghen f8ecb0d972 The newer Mozilla packages (Firefix 1.5, Thunderbird 1.5, Sunbird 0.3a1,
Seamonkey 1.0) don't have regchrome anymore, but Mozilla 1.7.x still does.
Patch the INSTALL script (used by all those) to run regchrome only if it's
installed.

Ok with wiz.
2006-02-07 16:21:30 +00:00

19 lines
545 B
Text

# $NetBSD: INSTALL,v 1.2 2006/02/07 16:21:30 ghen Exp $
MOZILLA="@MOZILLA@"
MOZILLA_BIN="@MOZILLA_BIN@"
MOZILLA_FIVE_HOME="${PKG_PREFIX}/lib/${MOZILLA}"
export MOZILLA_FIVE_HOME
case ${STAGE} in
POST-INSTALL)
${MKDIR} -p "./tmpdir-${PKGNAME}"
LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}" HOME="./tmpdir-${PKGNAME}" \
${MOZILLA_FIVE_HOME}/regxpcom
if [ -x ${MOZILLA_FIVE_HOME}/regchrome ]; then
LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}" HOME="./tmpdir-${PKGNAME}" \
${MOZILLA_FIVE_HOME}/regchrome
fi
${RM} -fr "./tmpdir-${PKGNAME}"
;;
esac