Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 May 2000 04:55:25 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        sada@FreeBSD.org, obrien@FreeBSD.org, tom@eborcom.com, girgen@partitur.se, cjh@kr.freebsd.org
Cc:        freebsd-ports@FreeBSD.org
Subject:   Introducing a netscape wrapper
Message-ID:  <86bt2nv26q.wl@localhost.local.idaemons.org>

next in thread | raw e-mail | index | archive | help
Hi, netscape ports' maintainers.

I had ported a netscape wrapper from RedHat Linux and been pondering
how to introduce it with minimum changes over a bunch of netscape
ports, then I came up with an idea.  We could do it by the following
steps.

1)  Make all netscape ports install ${PREFIX}/bin/netscape.run instead
    of ${PREFIX}/bin/netscape.

2)  Import a new port called www/netscape-wrapper that installs
    ${PREFIX}/bin/netscape that invokes ${PREFIX}/bin/netscape.run on
    demand.

    What the wrapper exactly does would be described as this: First,
    the wrapper checks whether the lock file (~/.netscape/lock)
    exists, and when it actually does, it searches for the currently
    running netscape process and asks that to open a new window to
    show a page with the supplied URL.  When no instance is running,
    it runs a new netscape with the URL.  The wrapper is also capable
    of killing a stale lock file and/or zombie instances.

    Thus applications could show HTML help windows, web sites and
    any resources they want just by executing "netscape foo.bar",
    without the Netscape-has-detected-a-lock-file-blah-blah-blah
    warnings.

    Plus, some neat shortcuts to such as opening a Messenger window
    are supported.  Look into the port for further details.

3)  Make all netscape ports depend on www/netscape-wrapper.


The patch that does 1) and 3) is attached at the bottom of this mail,
and the concrete work of 2) is available on the site below:

    http://people.freebsd.org/~knu/ports/www/netscape-wrapper/
    http://people.freebsd.org/~knu/ports/www/netscape-wrapper.tar.gz


I'd note I didn't touch the www/netscape4-communicator.us port because
it installs ${PREFIX}/bin/netscape.us, not ${PREFIX}/bin/netscape.


Please consider this suggestion and feed any comments back to me.

Thank you.

-- 
                           /
                          /__  __       
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  @ idaemons.org / FreeBSD.org

"We're only at home when we're on the run, on the wing, on the fly"

Index: japanese/netscape4-communicator/Makefile
===================================================================
RCS file: /home/ncvs/ports/japanese/netscape4-communicator/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- japanese/netscape4-communicator/Makefile	2000/04/11 14:15:36	1.29
+++ japanese/netscape4-communicator/Makefile	2000/05/03 17:40:21
@@ -78,7 +78,7 @@
 	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/${NETHELP}.nif \
 		${EXTRACT_AFTER_ARGS} -C ${NDIR}/${LANG}
 	${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
-	${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape
+	${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape.run
 	${MKDIR} ${MANDIR}/man1
 	${INSTALL_MAN} ${MASTERDIR}/files/${MAN1} ${MANDIR}/man1
 
Index: japanese/netscape4-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/japanese/netscape4-communicator/pkg/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- japanese/netscape4-communicator/pkg/PLIST	2000/03/26 19:59:39	1.6
+++ japanese/netscape4-communicator/pkg/PLIST	2000/05/03 17:23:44
@@ -1,5 +1,5 @@
 bin/ja-%%BROWSER%%-%%VER%%
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 %%NSUBDIR%%/netscape.cfg
 %%NSUBDIR%%/%%LANG%%/Netscape
 %%NSUBDIR%%/%%LANG%%/about
Index: japanese/netscape47-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/japanese/netscape47-communicator/pkg/PLIST,v
retrieving revision 1.7
diff -u -r1.7 PLIST
--- japanese/netscape47-communicator/pkg/PLIST	2000/03/26 19:59:47	1.7
+++ japanese/netscape47-communicator/pkg/PLIST	2000/05/03 17:26:07
@@ -1,5 +1,5 @@
 bin/ja-%%BROWSER%%-47
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 @exec mkdir -p %D/%%NSUBDIR%%/locale
 @exec ln -sf /usr/share/locale/en_US.ISO_8859-1 %D/%%NSUBDIR%%/locale/%%LANG%%
 @unexec rm -f %D/%%NSUBDIR%%/locale/%%LANG%%
Index: korean/netscape4-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/korean/netscape4-communicator/pkg/PLIST,v
retrieving revision 1.5
diff -u -r1.5 PLIST
--- korean/netscape4-communicator/pkg/PLIST	1999/08/24 23:04:02	1.5
+++ korean/netscape4-communicator/pkg/PLIST	2000/05/03 17:39:23
@@ -1,5 +1,5 @@
 bin/ko-communicator-4
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 %%NSUBDIR%%/netscape.cfg
 %%NSUBDIR%%/%%LANG%%/Netscape
 %%NSUBDIR%%/%%LANG%%/about
Index: korean/netscape4-navigator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/korean/netscape4-navigator/pkg/PLIST,v
retrieving revision 1.5
diff -u -r1.5 PLIST
--- korean/netscape4-navigator/pkg/PLIST	1999/08/24 23:04:04	1.5
+++ korean/netscape4-navigator/pkg/PLIST	2000/05/03 17:38:54
@@ -1,5 +1,5 @@
 bin/ko-navigator-4
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 %%NSUBDIR%%/netscape.cfg
 %%NSUBDIR%%/%%LANG%%/Netscape
 %%NSUBDIR%%/%%LANG%%/about
Index: korean/netscape47-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/korean/netscape47-communicator/pkg/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- korean/netscape47-communicator/pkg/PLIST	2000/02/08 16:22:13	1.6
+++ korean/netscape47-communicator/pkg/PLIST	2000/05/03 17:38:16
@@ -1,5 +1,5 @@
 bin/ko-communicator-47
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 %%NSUBDIR%%/netscape.cfg
 %%NSUBDIR%%/%%LANG%%/Netscape
 %%NSUBDIR%%/%%LANG%%/LICENSE.ko
Index: korean/netscape47-navigator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/korean/netscape47-navigator/pkg/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- korean/netscape47-navigator/pkg/PLIST	2000/02/08 16:22:15	1.6
+++ korean/netscape47-navigator/pkg/PLIST	2000/05/03 17:38:38
@@ -1,5 +1,5 @@
 bin/ko-navigator-47
-@exec ln -sf %f %B/netscape
+@exec ln -sf %f %B/netscape.run
 %%NSUBDIR%%/netscape.cfg
 %%NSUBDIR%%/%%LANG%%/Netscape
 %%NSUBDIR%%/%%LANG%%/LICENSE.ko
Index: www/linux-netscape4/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/linux-netscape4/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- www/linux-netscape4/Makefile	2000/04/10 00:05:43	1.13
+++ www/linux-netscape4/Makefile	2000/05/03 17:27:43
@@ -16,7 +16,8 @@
 
 MAINTAINER=	tom@eborcom.com
 
-RUN_DEPENDS=	/compat/linux/lib/ld.so:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS=	/compat/linux/lib/ld.so:${PORTSDIR}/emulators/linux_base \
+		netscape:${PORTSDIR}/www/netscape-wrapper
 
 ONLY_FOR_ARCHS=	i386
 
@@ -30,7 +31,7 @@
 	cd ${WRKSRC} && yes "" | \
 	    LC_TIME=C MOZILLA_HOME="${NDIR}" ./ns-install
 	${MV} -f ${NDIR}/netscape ${NDIR}/netscape.bin
-	${INSTALL_SCRIPT} ${WRKSRC}/netscape ${BINDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/netscape ${BINDIR}/netscape.run
 	if [ ! -f ${NDIR}/mailcap ] ; then \
 	    ${INSTALL_DATA} ${FILESDIR}/mailcap ${NDIR}; \
 	fi
Index: www/linux-netscape4/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/linux-netscape4/pkg/PLIST,v
retrieving revision 1.5
diff -u -r1.5 PLIST
--- www/linux-netscape4/pkg/PLIST	1999/02/22 04:31:44	1.5
+++ www/linux-netscape4/pkg/PLIST	2000/05/03 17:26:56
@@ -1,4 +1,4 @@
-bin/netscape
+bin/netscape.run
 lib/netscape/LICENSE
 lib/netscape/Netscape.ad
 lib/netscape/README
Index: www/linux-netscape47-communicator/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/linux-netscape47-communicator/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- www/linux-netscape47-communicator/Makefile	2000/04/10 00:05:44	1.21
+++ www/linux-netscape47-communicator/Makefile	2000/05/03 17:28:14
@@ -15,7 +15,8 @@
 
 MAINTAINER=	girgen@partitur.se
 
-RUN_DEPENDS=	/compat/linux/lib/ld.so:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS=	/compat/linux/lib/ld.so:${PORTSDIR}/emulators/linux_base \
+		netscape:${PORTSDIR}/www/netscape-wrapper
 
 ONLY_FOR_ARCHS=	i386
 
Index: www/linux-netscape47-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/linux-netscape47-communicator/pkg/PLIST,v
retrieving revision 1.9
diff -u -r1.9 PLIST
--- www/linux-netscape47-communicator/pkg/PLIST	2000/03/04 23:58:12	1.9
+++ www/linux-netscape47-communicator/pkg/PLIST	2000/05/03 17:28:01
@@ -1,7 +1,7 @@
 bin/%%BROWSER%%-%%BROWSER_VER%%
 @exec ln -sf %f %B/%%BROWSER%%-4
-@exec ln -sf %%BROWSER%%-4 %B/netscape
-@unexec rm -f %B/netscape
+@exec ln -sf %%BROWSER%%-4 %B/netscape.run
+@unexec rm -f %B/netscape.run
 @unexec rm -f %B/%%BROWSER%%-4
 %%NSUBDIR%%/java/classes/ifc11.jar
 %%NSUBDIR%%/java/classes/iiop10.jar
Index: www/netscape4-communicator/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/netscape4-communicator/Makefile,v
retrieving revision 1.65
diff -u -r1.65 Makefile
--- www/netscape4-communicator/Makefile	2000/04/17 00:18:50	1.65
+++ www/netscape4-communicator/Makefile	2000/05/03 17:43:14
@@ -13,6 +13,8 @@
 
 MAINTAINER?=	sada@FreeBSD.org
 
+RUN_DEPENDS+=	netscape:${PORTSDIR}/www/netscape-wrapper
+
 Y2K=		http://home.netscape.com/products/year2000/faq/client.html
 
 .if !defined(INFILE_HEAD)
@@ -95,7 +97,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/netscape \
 		${BINDIR}/${BROWSER_ARC}-${BROWSER_VER}
 	${LN} -sf ${BROWSER_ARC}-${BROWSER_VER} ${BINDIR}/${BROWSER_ARC}-4
-	${LN} -sf ${BROWSER_ARC}-4 ${BINDIR}/netscape
+	${LN} -sf ${BROWSER_ARC}-4 ${BINDIR}/netscape.run
 	if [ ! -f ${NDIR}/mailcap ] ; then \
 		${INSTALL_DATA} ${MAILCAP} ${NDIR}; \
 	fi
Index: www/netscape4-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/netscape4-communicator/pkg/PLIST,v
retrieving revision 1.19
diff -u -r1.19 PLIST
--- www/netscape4-communicator/pkg/PLIST	1999/10/10 20:24:10	1.19
+++ www/netscape4-communicator/pkg/PLIST	2000/05/03 17:29:17
@@ -1,7 +1,7 @@
 bin/communicator-%%BROWSER_VER%%
 @exec ln -sf %f %B/communicator-4
-@exec ln -sf communicator-4 %B/netscape
-@unexec rm -f %B/netscape
+@exec ln -sf communicator-4 %B/netscape.run
+@unexec rm -f %B/netscape.run
 @unexec rm -f %B/communicator-4
 %%NSUBDIR%%/README
 %%NSUBDIR%%/LICENSE
Index: www/netscape47-communicator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/netscape47-communicator/pkg/PLIST,v
retrieving revision 1.25
diff -u -r1.25 PLIST
--- www/netscape47-communicator/pkg/PLIST	2000/02/28 03:57:25	1.25
+++ www/netscape47-communicator/pkg/PLIST	2000/05/03 17:44:39
@@ -1,7 +1,7 @@
 bin/%%BROWSER%%-%%BROWSER_VER%%
 @exec ln -sf %f %B/%%BROWSER%%-4
-@exec ln -sf %%BROWSER%%-4 %B/netscape
-@unexec rm -f %B/netscape
+@exec ln -sf %%BROWSER%%-4 %B/netscape.run
+@unexec rm -f %B/netscape.run
 @unexec rm -f %B/%%BROWSER%%-4
 %%NSUBDIR%%/LICENSE
 %%NSUBDIR%%/Netscape.ad
Index: www/netscape47-communicator.us/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/netscape47-communicator.us/pkg/PLIST,v
retrieving revision 1.8
diff -u -r1.8 PLIST
--- www/netscape47-communicator.us/pkg/PLIST	2000/02/27 13:52:05	1.8
+++ www/netscape47-communicator.us/pkg/PLIST	2000/05/03 17:44:47
@@ -1,7 +1,7 @@
 bin/%%BROWSER%%-%%BROWSER_VER%%
 @exec ln -sf %f %B/%%BROWSER%%-4
-@exec ln -sf %%BROWSER%%-4 %B/netscape
-@unexec rm -f %B/netscape
+@exec ln -sf %%BROWSER%%-4 %B/netscape.run
+@unexec rm -f %B/netscape.run
 @unexec rm -f %B/%%BROWSER%%-4
 %%NSUBDIR%%/LICENSE
 %%NSUBDIR%%/Netscape.ad
Index: www/netscape47-navigator/pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/www/netscape47-navigator/pkg/PLIST,v
retrieving revision 1.27
diff -u -r1.27 PLIST
--- www/netscape47-navigator/pkg/PLIST	2000/02/28 08:34:14	1.27
+++ www/netscape47-navigator/pkg/PLIST	2000/05/03 17:45:43
@@ -1,7 +1,7 @@
 bin/navigator-%%BROWSER_VER%%
 @exec ln -sf %f %B/navigator-4
-@exec ln -sf navigator-4 %B/netscape
-@unexec rm -f %B/netscape
+@exec ln -sf navigator-4 %B/netscape.run
+@unexec rm -f %B/netscape.run
 @unexec rm -f %B/navigator-4
 %%NSUBDIR%%/LICENSE
 %%NSUBDIR%%/Netscape.ad


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bt2nv26q.wl>