summaryrefslogtreecommitdiff
path: root/www/ns-remote
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2000-01-12 15:03:41 +0000
committerabs <abs@pkgsrc.org>2000-01-12 15:03:41 +0000
commit2efba59bdb1d145e6002ed4249ace3adca6320c1 (patch)
tree2eace72d033a05e69df5029c99514c8922c69a1a /www/ns-remote
parent82f2f8a9899335f1c0ebba568ee2bef4c15cdcd5 (diff)
downloadpkgsrc-2efba59bdb1d145e6002ed4249ace3adca6320c1.tar.gz
ns-remote 1.1 - remote-control Netscape Navigator and Communicator
Diffstat (limited to 'www/ns-remote')
-rw-r--r--www/ns-remote/Makefile27
-rw-r--r--www/ns-remote/files/Makefile15
-rw-r--r--www/ns-remote/files/md54
-rwxr-xr-xwww/ns-remote/files/ns-open29
-rw-r--r--www/ns-remote/files/patch-sum3
-rw-r--r--www/ns-remote/patches/patch-aa57
-rw-r--r--www/ns-remote/pkg/COMMENT1
-rw-r--r--www/ns-remote/pkg/DESCR3
-rw-r--r--www/ns-remote/pkg/PLIST2
9 files changed, 141 insertions, 0 deletions
diff --git a/www/ns-remote/Makefile b/www/ns-remote/Makefile
new file mode 100644
index 00000000000..55bd8ced910
--- /dev/null
+++ b/www/ns-remote/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/01/12 15:03:41 abs Exp $
+
+DISTNAME= ns-remote
+PKGNAME= ns-remote-1.1
+CATEGORIES= www
+MASTER_SITES= http://home.netscape.com/newsref/std/
+DISTFILES= remote.c vroot.h
+
+MAINTAINER= norm@mono.org
+HOMEPAGE= http://home.netscape.com/newsref/std/x-remote.html
+
+# fill in when done...
+# DEPENDS+= ../communicator
+DIST_SUBDIR= netscape
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+.for distfile in ${DISTFILES}
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${distfile} ${WRKSRC}
+.endfor
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ns-remote ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${FILESDIR}/ns-open ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ns-remote/files/Makefile b/www/ns-remote/files/Makefile
new file mode 100644
index 00000000000..cd2d05e6340
--- /dev/null
+++ b/www/ns-remote/files/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/01/12 15:03:42 abs Exp $
+#
+# Very simple Makefile used to compile Netscape's ns-remote program
+#
+
+PROG = ns-remote
+X11BASE?= /usr/X11R6
+
+all: ${PROG}
+
+${PROG}: remote.c
+ ${CC} ${CFLAGS} -o ${PROG} remote.c -DSTANDALONE -I${X11BASE}/include -L${X11BASE}/lib -lXmu -lX11
+
+clean:
+ rm ${PROG}
diff --git a/www/ns-remote/files/md5 b/www/ns-remote/files/md5
new file mode 100644
index 00000000000..2d1d0c16c68
--- /dev/null
+++ b/www/ns-remote/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2000/01/12 15:03:42 abs Exp $
+
+MD5 (netscape/remote.c) = 1dfd396d83169cd1f286675698899feb
+MD5 (netscape/vroot.h) = cc8e398b414b212c684d774ab87fdf2a
diff --git a/www/ns-remote/files/ns-open b/www/ns-remote/files/ns-open
new file mode 100755
index 00000000000..ce0490e240c
--- /dev/null
+++ b/www/ns-remote/files/ns-open
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $NetBSD: ns-open,v 1.1.1.1 2000/01/12 15:03:42 abs Exp $
+#
+# Simple script to open a URL in Netscape, starting a new process if necessary
+# If a netscape process is not running will run 'netscape'.
+# If you want this to use a different binary (such as navigator), set
+# the environment variable 'NS_OPEN_MOZILLA'.
+
+if [ -z "$NS_OPEN_MOZILLA" ]; then
+ NS_OPEN_MOZILLA=netscape
+fi
+
+if [ -z "$1" ]
+then
+ ns-remote -noraise -remote openBrowser
+else
+ # encode any ',' to avoid problems with the openURL(x,y) command
+ URL=`echo $1 | sed 's/,/%2c/g'`
+ ns-remote -noraise -remote openURL\(${URL}\,new-window\)
+fi
+
+if [ $? -ne 0 ]
+then
+ echo "Starting new Netscape process..."
+ $NS_OPEN_MOZILLA $1 &
+fi
+
+exit 0
diff --git a/www/ns-remote/files/patch-sum b/www/ns-remote/files/patch-sum
new file mode 100644
index 00000000000..38c274ae404
--- /dev/null
+++ b/www/ns-remote/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/01/12 15:03:42 abs Exp $
+
+MD5 (patch-aa) = 8988d2de6a5546c1e312c0ce997bbb79
diff --git a/www/ns-remote/patches/patch-aa b/www/ns-remote/patches/patch-aa
new file mode 100644
index 00000000000..244ab752ac9
--- /dev/null
+++ b/www/ns-remote/patches/patch-aa
@@ -0,0 +1,57 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/01/12 15:03:43 abs Exp $
+
+--- remote.c.orig Mon Jan 10 20:59:24 2000
++++ remote.c Mon Jan 10 21:41:58 2000
+@@ -118,8 +118,12 @@
+ &version);
+ if (! version)
+ continue;
++#ifdef STANDALONE /* Pick most recent version */
++ if (! tenative_version || strcmp((char *) version, tenative_version) > 0 )
++#else
+ if (strcmp ((char *) version, expected_mozilla_version) &&
+ !tenative)
++#endif
+ {
+ tenative = w;
+ tenative_version = version;
+@@ -135,22 +139,26 @@
+
+ if (result && tenative)
+ {
++#ifndef STANDALONE
+ fprintf (stderr,
+ "%s: warning: both version %s (0x%x) and version\n"
+ "\t%s (0x%x) are running. Using version %s.\n",
+ progname, tenative_version, (unsigned int) tenative,
+ expected_mozilla_version, (unsigned int) result,
+ expected_mozilla_version);
++#endif
+ XFree (tenative_version);
+ return result;
+ }
+ else if (tenative)
+ {
++#ifndef STANDALONE
+ fprintf (stderr,
+ "%s: warning: expected version %s but found version\n"
+ "\t%s (0x%x) instead.\n",
+ progname, expected_mozilla_version,
+ tenative_version, (unsigned int) tenative);
++#endif
+ XFree (tenative_version);
+ return tenative;
+ }
+@@ -675,6 +683,12 @@
+ exit (-1);
+ }
+ }
++ }
++ if (! remote_commands)
++ {
++ fprintf (stderr, "%s: No valid commands given\n", progname);
++ usage ();
++ exit (-1);
+ }
+
+ dpy = XOpenDisplay (dpy_string);
diff --git a/www/ns-remote/pkg/COMMENT b/www/ns-remote/pkg/COMMENT
new file mode 100644
index 00000000000..503047d0d22
--- /dev/null
+++ b/www/ns-remote/pkg/COMMENT
@@ -0,0 +1 @@
+remote-control Netscape Navigator and Communicator
diff --git a/www/ns-remote/pkg/DESCR b/www/ns-remote/pkg/DESCR
new file mode 100644
index 00000000000..f90e19352b3
--- /dev/null
+++ b/www/ns-remote/pkg/DESCR
@@ -0,0 +1,3 @@
+Netscape Navigator and Communicator can be remote controlled.
+However, launching the 16Mb binary just to say 'open a new window'
+is a little excessive. This does it much quicker.
diff --git a/www/ns-remote/pkg/PLIST b/www/ns-remote/pkg/PLIST
new file mode 100644
index 00000000000..44d4fda9c15
--- /dev/null
+++ b/www/ns-remote/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/ns-open
+bin/ns-remote