From owner-freebsd-ports Thu May 4 9:27:52 2000 Delivered-To: freebsd-ports@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id C95F537C11C; Thu, 4 May 2000 09:27:41 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id UAA07604; Thu, 4 May 2000 20:27:29 +0400 (MSD) Message-Id: <200005041627.UAA07604@aaz.links.ru> Subject: Re: Introducing a netscape wrapper In-Reply-To: <86bt2nv26q.wl@localhost.local.idaemons.org> from "Akinori -Aki- MUSHA" at "May 4, 0 04:55:25 am" To: knu@idaemons.org (Akinori -Aki- MUSHA) Date: Thu, 4 May 2000 20:27:29 +0400 (MSD) Cc: sada@FreeBSD.ORG, obrien@FreeBSD.ORG, tom@eborcom.com, girgen@partitur.se, cjh@kr.freebsd.org, freebsd-ports@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Akinori -Aki- MUSHA writes: > 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. 3 is the Bad Thing IMHO look at ports/www/netscape-remote > 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. As far as I remember (I do not use ports for netscape because I need 9 Netscapes in onre system) ${PREFIX}/bin/netscape is symlink only to shell script with name-version. -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message