1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Make the Mozilla startup scripts a little smarter. Instead of launching a

new Mozilla instance each time, check to see if one already exists, and if
so, spawn a new browser tab in the current window.

PR:	45610
Submitted by:	Nick Jennings
This commit is contained in:
Joe Marcus Clarke 2002-11-24 00:24:04 +00:00
parent bb05f6c924
commit 4fb1724794
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70922
14 changed files with 114 additions and 34 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 0
CATEGORIES= www

View File

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 0
CATEGORIES= www

View File

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 1
PORTREVISION?= 2
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@ -174,7 +174,7 @@ post-patch:
${WRKSRC}/config/autoconf.mk.in
post-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" -e "s;%%MOZILLA%%;${MOZILLA};g" \
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \
${FILESDIR}/mozilla.sh >${WRKSRC}/${MOZILLA}
(cd ${WRKSRC}/dist/bin; \
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \

View File

@ -1,6 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
cd @PREFIX@/lib/%%MOZILLA%%
exec ./mozilla "$@"
MOZILLA_DIR="%%PREFIX%%/lib/%%MOZILLA%%"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0
# no existing process
exec ./$MOZILLA_EXEC "$@"

View File

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 0
CATEGORIES= www

View File

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 0
CATEGORIES= www

View File

@ -7,7 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.0.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
http://people.FreeBSD.org/~marcus/:local
@ -114,7 +114,7 @@ post-patch:
${WRKSRC}/build/unix/run-mozilla.sh
post-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" \
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
${FILESDIR}/mozilla.sh >${WRKSRC}/mozilla-vendor
(cd ${WRKSRC}/dist/bin; \
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \

View File

@ -1,6 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
cd @PREFIX@/lib/mozilla-vendor
exec ./mozilla "$@"
MOZILLA_DIR="%%PREFIX%%/lib/mozilla-vendor"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0
# no existing process
exec ./$MOZILLA_EXEC "$@"

View File

@ -7,7 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.1
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@ -113,7 +113,7 @@ post-patch:
${WRKSRC}/build/unix/run-mozilla.sh
post-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" \
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
${FILESDIR}/mozilla.sh >${WRKSRC}/mozilla
(cd ${WRKSRC}/dist/bin; \
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \

View File

@ -1,6 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
cd @PREFIX@/lib/mozilla
exec ./mozilla "$@"
MOZILLA_DIR="%%PREFIX%%/lib/mozilla"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0
# no existing process
exec ./$MOZILLA_EXEC "$@"

View File

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 1
PORTREVISION?= 2
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@ -174,7 +174,7 @@ post-patch:
${WRKSRC}/config/autoconf.mk.in
post-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" -e "s;%%MOZILLA%%;${MOZILLA};g" \
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \
${FILESDIR}/mozilla.sh >${WRKSRC}/${MOZILLA}
(cd ${WRKSRC}/dist/bin; \
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \

View File

@ -1,6 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
cd @PREFIX@/lib/%%MOZILLA%%
exec ./mozilla "$@"
MOZILLA_DIR="%%PREFIX%%/lib/%%MOZILLA%%"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0
# no existing process
exec ./$MOZILLA_EXEC "$@"

View File

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 1
PORTREVISION?= 2
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@ -174,7 +174,7 @@ post-patch:
${WRKSRC}/config/autoconf.mk.in
post-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" -e "s;%%MOZILLA%%;${MOZILLA};g" \
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \
${FILESDIR}/mozilla.sh >${WRKSRC}/${MOZILLA}
(cd ${WRKSRC}/dist/bin; \
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \

View File

@ -1,6 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
cd @PREFIX@/lib/%%MOZILLA%%
exec ./mozilla "$@"
MOZILLA_DIR="%%PREFIX%%/lib/%%MOZILLA%%"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0
# no existing process
exec ./$MOZILLA_EXEC "$@"