mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
* 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>.
This commit is contained in:
parent
72dfdb4e43
commit
5e09432b45
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50088
@ -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/
|
||||
|
15
www/surfraw/files/patch-ab
Normal file
15
www/surfraw/files/patch-ab
Normal file
@ -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
|
13
www/surfraw/files/patch-elvi_netbsd
Normal file
13
www/surfraw/files/patch-elvi_netbsd
Normal file
@ -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 $?
|
Loading…
Reference in New Issue
Block a user