summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjlam <jlam>1999-09-04 16:37:53 +0000
committerjlam <jlam>1999-09-04 16:37:53 +0000
commit7c8da2adfe5b9b8d58a369c4c456c02805ffcb02 (patch)
tree48d324536f25350ee84ac773a8983c6a07d727ae /www
parent80b5a870e8d06d5dc6fa3f26b7c598da63e7f5b5 (diff)
downloadpkgsrc-7c8da2adfe5b9b8d58a369c4c456c02805ffcb02.tar.gz
Share plugins directory with www/navigator.
Diffstat (limited to 'www')
-rw-r--r--www/communicator/Makefile30
-rw-r--r--www/communicator/files/communicator.sh11
-rw-r--r--www/communicator/pkg/PLIST.post4
3 files changed, 26 insertions, 19 deletions
diff --git a/www/communicator/Makefile b/www/communicator/Makefile
index a98eb5ca737..3851ea34761 100644
--- a/www/communicator/Makefile
+++ b/www/communicator/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 1999/08/19 15:49:03 agc Exp $
+# $NetBSD: Makefile,v 1.21 1999/09/04 16:37:53 jlam Exp $
#
# Every effort has been made to keep the communicator and navigator
# Makefiles as similar as possible.
@@ -56,30 +56,35 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/${BINNAME}-v${NS_VERS_SHORT}.${WRKNAME}
MOZILLA_HOME= ${PREFIX}/lib/netscape/${PKGNAME}
-PLIST_SRC= ${WRKDIR}/.PLIST_SRC
-NS_PLIST_SED= "s,\$${NS_VERS},${NS_VERS},g"
+NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
.include "../../mk/bsd.prefs.mk"
+PLIST_SRC= ${PKGDIR}/PLIST.pre \
+ ${PKGDIR}/PLIST.${LOWER_OPSYS}-${MACHINE_ARCH} \
+ ${PKGDIR}/PLIST.post
+PLIST_SUBST+= NS_VERS=${NS_VERS}
+
.if (${NS_ENCRYPTION} == "us")
MASTER_SITES=
RESTRICTED= "128-bit key strong encryption; export-controlled"
MIRROR_DISTFILE= no
ONLY_FOR_PLATFORM= *-*-alpha *-*-i386
+DOWNLOAD= http://www.netscape.com/download/
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
- ${ECHO_MSG}; \
+ ${ECHO_MSG} "==============================================================="; \
${ECHO_MSG} " The 128-bit key strong encryption version of"; \
- ${ECHO_MSG} " Netscape for this platform must be fetched"; \
- ${ECHO_MSG} " into ${DISTDIR} from"; \
- ${ECHO_MSG} " http://www.netscape.com/download/"; \
- ${ECHO_MSG}; \
+ ${ECHO_MSG} " Netscape for this platform must be fetched"; \
+ ${ECHO_MSG} " into \"${DISTDIR}\" from the following URL:"; \
+ ${ECHO_MSG} " ${DOWNLOAD}"; \
+ ${ECHO_MSG} "==============================================================="; \
+ ${FALSE}; \
fi
.endif
do-install:
- ${SED} -e ${NS_PLIST_SED} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
${MKDIR} ${MOZILLA_HOME}/java/classes
${INSTALL_SCRIPT} ${WRKSRC}/vreg ${MOZILLA_HOME}
.for file in ifc11.jar iiop10.jar jae40.jar java40.jar jio40.jar jsd10.jar \
@@ -91,6 +96,7 @@ do-install:
cd ${MOZILLA_HOME} ; ${GTAR} xpzf ${WRKSRC}/spellchk-v${NS_VERS_SHORT}.nif
${SED} -e 's#@@MOZILLA_HOME@@#${MOZILLA_HOME}#g' \
+ -e 's#@@NS_PLUGINS_DIR@@#${NS_PLUGINS_DIR}#g' \
<${FILESDIR}/${BINNAME}.sh >${WRKDIR}/${BINNAME}.sh
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${PKGNAME}
${RM} -f ${PREFIX}/bin/${BINNAME}
@@ -108,13 +114,9 @@ do-install:
${MV} ${MOZILLA_HOME}/netscape ${MOZILLA_HOME}/netscape_nis
${MV} ${MOZILLA_HOME}/netscape_dns ${MOZILLA_HOME}/netscape
.endif
-
- ${SED} -e ${NS_PLIST_SED} \
- ${PKGDIR}/PLIST.${LOWER_OPSYS}-${MACHINE_ARCH} >>${PLIST_SRC}
+ ${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
${CHOWN} -R 0:0 ${MOZILLA_HOME}
${CHMOD} -R go-w ${MOZILLA_HOME}
- ${SED} -e ${NS_PLIST_SED} ${PKGDIR}/PLIST.post >>${PLIST_SRC}
-
.include "../../mk/bsd.pkg.mk"
diff --git a/www/communicator/files/communicator.sh b/www/communicator/files/communicator.sh
index ad439ac7c46..4b6f6080fef 100644
--- a/www/communicator/files/communicator.sh
+++ b/www/communicator/files/communicator.sh
@@ -1,8 +1,11 @@
#!/bin/sh
#
-# $NetBSD: communicator.sh,v 1.2 1999/06/18 23:14:17 abs Exp $
+# $NetBSD: communicator.sh,v 1.3 1999/09/04 16:37:53 jlam Exp $
#
MOZILLA_HOME=@@MOZILLA_HOME@@ ; export MOZILLA_HOME
-XNLSPATH=$MOZILLA_HOME/nls ; export XNLSPATH
-XKEYSYMDB=$MOZILLA_HOME/XKeysymDB ; export XKEYSYMDB
-exec $MOZILLA_HOME/netscape "$@"
+NS_PLUGINS_DIR=@@NS_PLUGINS_DIR@@; export NS_PLUGINS_DIR
+XNLSPATH=${MOZILLA_HOME}/nls ; export XNLSPATH
+XKEYSYMDB=${MOZILLA_HOME}/XKeysymDB ; export XKEYSYMDB
+NPX_PLUGIN_PATH=${NS_PLUGINS_DIR}:${MOZILLA_HOME}/plugins:${HOME}/.netscape/plugins ; export NPX_PLUGIN_PATH
+
+exec ${MOZILLA_HOME}/netscape "$@"
diff --git a/www/communicator/pkg/PLIST.post b/www/communicator/pkg/PLIST.post
index 9fb499868bd..7577ee6484c 100644
--- a/www/communicator/pkg/PLIST.post
+++ b/www/communicator/pkg/PLIST.post
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.post,v 1.5 1999/06/14 21:40:25 cgd Exp $
+@comment $NetBSD: PLIST.post,v 1.6 1999/09/04 16:37:54 jlam Exp $
@dirrm lib/netscape/communicator-${NS_VERS}/spell
@dirrm lib/netscape/communicator-${NS_VERS}/plugins
@dirrm lib/netscape/communicator-${NS_VERS}/nethelp/netscape/trouble
@@ -18,4 +18,6 @@
@dirrm lib/netscape/communicator-${NS_VERS}/java/classes
@dirrm lib/netscape/communicator-${NS_VERS}/java
@dirrm lib/netscape/communicator-${NS_VERS}
+@exec mkdir -p %D/lib/netscape/plugins
+@unexec rmdir %D/lib/netscape/plugins 2>/dev/null || true
@unexec rmdir %D/lib/netscape 2>/dev/null || true