This file is indexed.

/usr/lib/surfraw/freebsd is in surfraw 2.2.9-1ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#!/bin/sh
# $Id$
# elvis: freebsd		-- Search FreeBSD related information (www.freebsd.org)
. surfraw || exit 1

w3_config_hook () {
defyn   SURFRAW_freebsd_mail           no
defyn   SURFRAW_freebsd_pr             no
defyn   SURFRAW_freebsd_cvs            no
defyn   SURFRAW_freebsd_mid            no
defyn   SURFRAW_freebsd_gg             no
defyn   SURFRAW_freebsd_ps             no
defyn   SURFRAW_freebsd_prs            no
defyn   SURFRAW_freebsd_elogs          no
defyn   SURFRAW_freebsd_portsearch     no
def     SURFRAW_freebsd_portsearchtype all
def     SURFRAW_freebsd_portsearchsec  all
}

w3_usage_hook () {
    cat <<EOF
Usage: $w3_argv0 [options] [search-string | PR-number]
Description:
  Surfraw search FreeBSD related information
Local options:
  -mail[=(yes|no)]              Search FreeBSD mailinglists
                                Default: $SURFRAW_freebsd_mail
                                Environment: SURFRAW_freebsd_mail
  -gg[=(yes|no)]                Search FreeBSD mailinglists at Google Groups
                                Default: $SURFRAW_freebsd_mail
                                Environment: SURFRAW_freebsd_mail
  -pr[=(yes|no)]                Query Problem Reports
                                Default: $SURFRAW_freebsd_pr
                                Environment: SURFRAW_freebsd_pr
  -cvs[=(yes|no)]               Query cvsweb
                                Default: $SURFRAW_freebsd_cvs
                                Environment: SURFRAW_freebsd_cvs
  -mid[=(yes|no)]               Query mailing lists by Message-ID
                                Default: $SURFRAW_freebsd_mid
                                Environment: SURFRAW_freebsd_mid
  -ps[=(yes|no)]                Teleport to the Port Survey Page
                                Default: $SURFRAW_freebsd_ps
                                Environment: SURFRAW_freebsd_ps
  -psearch[=TYPE]               Search of type TYPE in ports.
    all                |          All (default)
    name               |          Package Name
    text               |          Description
    pkgdescr           |          Long Description
    maintainer         |          Maintainer
    requires           |          Requires
                                Default: $SURFRAW_freebsd_portsearchtype
				Environment: SURFRAW_freebsd_portsearchtype
  -psection[=SEC]               Section of ports to search in.
    all, accessibility, afterstep, arabic,
    archivers, astro, audio, benchmarks, biology,
    cad, chinese, comms, converters, databases,
    deskutils, devel, dns, docs, editors, elisp,
    emulators, finance, french, ftp, games,
    geography, german, gnome, gnustep, graphics,
    hamradio, haskell, hebrew, hungarian, ipv6,
    irc, japanese, java, kde, kld, korean, lang,
    linux, lisp, mail, math, mbone, misc,
    multimedia, net, net-im, net-mgmt, net-p2p,
    news, palm, parallel, pear, perl5, plan9,
    polish, ports-mgmt, portuguese, print, python,
    ruby, rubygems, russian, scheme, science,
    security, shells, spanish, sysutils, tcl,
    textproc, tk, ukrainian, vietnamese,
    windowmaker, www, x11, x11-clocks,
    x11-drivers, x11-fm, x11-fonts, x11-servers,
    x11-themes, x11-toolkits, x11-wm, xfce, zope
                                Default: $SURFRAW_freebsd_portsearchsec
				Environment: SURFRAW_freebsd_portsearchsec
  -prs[=(yes|no)]               Teleport to the Problem Report Survey Page
                                Default: $SURFRAW_freebsd_prs
                                Environment: SURFRAW_freebsd_prs
  -elogs[=(yes|no)]             Teleport to the Build Error Logs Page
                                Default: $SURFRAW_freebsd_elogs
                                Environment: SURFRAW_freebsd_elogs
Examples:
  $w3_argv0                       Teleport to the FreeBSD website
  $w3_argv0 mycroft               Search FreeBSD website for odeur de mycroft
  $w3_argv0 -mail                 Teleport to the mail-index Query form
  $w3_argv0 -mail proff           Search mailing-list archives for odeur de proff
  $w3_argv0 -gg                   Teleport to FreeBSD mailinglists at Google
  $w3_argv0 -gg proff             Search Google archives for odeur de proff
  $w3_argv0 -pr                   Query Problem Report form
  $w3_argv0 -pr 666               Display PR 666
  $w3_argv0 -cvs                  Query cvsweb
  $w3_argv0 -cvs ports/           Display cvsweb tree for ports/
  $w3_argv0 -mid                  Query mailing lists by Message-ID
  $w3_argv0 -mid <x>              Display message with ID <x>
  $w3_argv0 -ps                   Teleport to the Port Survey page
  $w3_argv0 -prs                  Teleport to the Port Report Survey page
  $w3_argv0 -psearch surfraw      Search ports for surfraw
  $w3_argv0 -psearch=text perl    Search port descriptions for perl
EOF
    w3_global_usage
}

w3_parse_option_hook () {
    opt="$1"
    optarg="$2"
    case "$opt" in
	-mail)	setoptyn	SURFRAW_freebsd_mail		yes	;;
	-mail=*) setoptyn	SURFRAW_freebsd_mail		$optarg	;;
	-gg)	setoptyn	SURFRAW_freebsd_gg		yes	;;
	-gg=*)	setoptyn	SURFRAW_freebsd_gg		$optarg	;;
	-pr)	setoptyn	SURFRAW_freebsd_pr		yes	;;
	-pr=*)	setoptyn	SURFRAW_freebsd_pr		$optarg	;;
	-cvs)	setoptyn	SURFRAW_freebsd_cvs		yes	;;
	-cvs=*)	setoptyn	SURFRAW_freebsd_cvs		$optarg	;;
	-mid)	setoptyn	SURFRAW_freebsd_mid		yes	;;
	-mid=*)	setoptyn	SURFRAW_freebsd_mid		$optarg	;;
	-ps)	setoptyn	SURFRAW_freebsd_ps		yes	;;
	-prs)	setoptyn	SURFRAW_freebsd_prs		yes	;;
	-psea*=*) setoptyn      SURFRAW_freebsd_portsearch      yes;
	          setopt        SURFRAW_freebsd_portsearchtype  $optarg ;;
	-psea*)   setoptyn      SURFRAW_freebsd_portsearch      yes     ;;
	-psec*=*) setoptyn      SURFRAW_freebsd_portsearch      yes;
	          setopt        SURFRAW_freebsd_portsec         $optarg ;;
	-psec*)   setoptyn      SURFRAW_freebsd_portsearch      yes     ;;
	-elogs)	  setoptyn	SURFRAW_freebsd_elogs		yes	;;
	*) return 1 ;;
    esac
    return 0
}

w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
test -z "$w3_args" || escaped_args=`w3_url_of_arg $w3_args`

if ok SURFRAW_freebsd_portsearch; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://www.freebsd.org/cgi/ports.cgi"
    else
        w3_browse_url "http://www.freebsd.org/cgi/ports.cgi?query=${escaped_args}&stype=${SURFRAW_freebsd_portsearchtype}&sektion=${SURFRAW_freebsd_portsec}"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_pr; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://www.freebsd.org/cgi/query-pr-summary.cgi?query"
    else
        w3_browse_url "http://www.freebsd.org/cgi/query-pr.cgi?pr=${escaped_args}"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_mail; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://docs.freebsd.org/mail/"
    else
	w3_browse_url "http://www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&sort=score&index=recent&source=freebsd-questions"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_gg; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://groups.google.com/groups?hl=en&group=mailing.freebsd"
    else
	w3_browse_url "http://groups.google.com/groups?q=${escaped_args}&hl=en&meta=group%3Dmailing.freebsd.*"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_cvs; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://cvsweb.freebsd.org/"
    else
	w3_browse_url "http://cvsweb.freebsd.org/cgi/cvsweb.cgi?path=${escaped_args}"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_mid; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://www.freebsd.org/search/search-mid.html"
    else
	w3_browse_url "http://www.freebsd.org/cgi/mid.cgi?id=${escaped_args}&db=mid"
    fi
    exit $?
fi
if ok SURFRAW_freebsd_ps; then
   w3_browse_url "http://people.freebsd.org/~fenner/portsurvey/"
   exit $?
fi
if ok SURFRAW_freebsd_elogs; then
   w3_browse_url "http://people.freebsd.org/~fenner/errorlogs/"
   exit $?
fi
if ok SURFRAW_freebsd_prs; then
   w3_browse_url "http://people.freebsd.org/~fenner/ports-prs.html"
   exit $?
fi
if test -z "$escaped_args"; then
    w3_browse_url "http://www.freebsd.org/"
else
    w3_browse_url "http://www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&source=www"

fi
exit $?