summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2001-11-15 23:06:04 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2001-11-15 23:06:04 +0000
commit5e09432b45f5eb07f66eb1f60d026a11a62b4a90 (patch)
tree5848c7496ba9c9273a603dcb696c6a36cba35a8a /www
parentUpdate to 2.4.1. (diff)
* Add workaround for parser bug in FreeBSD's /bin/sh prior to 4.4.
* NetBSD changed their search engine; fix submitted by Jason Harris <jharris@widomaker.com>.
Notes
Notes: svn path=/head/; revision=50088
Diffstat (limited to 'www')
-rw-r--r--www/surfraw/Makefile1
-rw-r--r--www/surfraw/files/patch-ab15
-rw-r--r--www/surfraw/files/patch-elvi_netbsd13
3 files changed, 29 insertions, 0 deletions
diff --git a/www/surfraw/Makefile b/www/surfraw/Makefile
index 2a01a140ae19..fe6c68a085fb 100644
--- a/www/surfraw/Makefile
+++ b/www/surfraw/Makefile
@@ -6,6 +6,7 @@
PORTNAME= surfraw
PORTVERSION= 1.0.5
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/ \
ftp://ftp.funet.fi/pub/NetBSD/misc/proff/
diff --git a/www/surfraw/files/patch-ab b/www/surfraw/files/patch-ab
new file mode 100644
index 000000000000..b49e59518441
--- /dev/null
+++ b/www/surfraw/files/patch-ab
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- surfraw.in.orig Thu Nov 8 16:01:43 2001
++++ surfraw.in Thu Nov 8 16:02:46 2001
+@@ -266,7 +266,8 @@
+ }
+
+ w3_browse_url () {
+- if ok SURFRAW_new_screen && ! test -z "$STY" && ! ok SURFRAW_graphical; then
++ # work around /bin/sh parser bug in FreeBSD prior to 4.4
++ if ok SURFRAW_new_screen && { ! test -z "$STY"; } && { ! ok SURFRAW_graphical; }; then
+ screen=yes
+ else
+ screen=no
diff --git a/www/surfraw/files/patch-elvi_netbsd b/www/surfraw/files/patch-elvi_netbsd
new file mode 100644
index 000000000000..88f5ab4d2a0e
--- /dev/null
+++ b/www/surfraw/files/patch-elvi_netbsd
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- elvi/netbsd.orig Thu Nov 8 15:36:12 2001
++++ elvi/netbsd Thu Nov 8 15:37:01 2001
+@@ -68,6 +68,6 @@
+ if test -z "$escaped_args"; then
+ w3_browse_url "http://www.netbsd.org/"
+ else
+- w3_browse_url "http://www.netbsd.org/cgi-bin/htsearch?method=and&format=builtin-long&sort=score&config=htdig&words=${escaped_args}"
++ w3_browse_url "http://www.google.com/custom?q=${escaped_args}&cof=LW%3A247%3BL%3Ahttp%3A%2F%2Fwww.netbsd.org%2Fimages%2FNetBSD-smaller.jpg%3BLH%3A241%3BAH%3Acenter%3BAWFID%3A4f6b0499f0f58d2c%3B&domains=netbsd.org&sitesearch=netbsd.org"
+ fi
+ exit $?