summaryrefslogtreecommitdiffstats
path: root/www/surfraw
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2001-11-15 23:06:04 +0000
committernaddy <naddy@FreeBSD.org>2001-11-15 23:06:04 +0000
commitc49e6ad894a82f9d38f683bfe0cf391e6a15eea5 (patch)
tree239a298458fb4ecb070c28479ca5b89bc7f875d1 /www/surfraw
parent2cffd20880f3e4ea9493ad43d28a6d2f0d533809 (diff)
downloadFreeBSD-ports-c49e6ad894a82f9d38f683bfe0cf391e6a15eea5.zip
FreeBSD-ports-c49e6ad894a82f9d38f683bfe0cf391e6a15eea5.tar.gz
* 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>.
Diffstat (limited to 'www/surfraw')
-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 2a01a14..fe6c68a 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 0000000..b49e595
--- /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 0000000..88f5ab4
--- /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 $?
OpenPOWER on IntegriCloud