This file is indexed.

/usr/lib/surfraw/openbsd is in surfraw 2.2.9-1.

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
#!/bin/sh
# $Id$
# elvis: openbsd		-- Search OpenBSD related information (www.openbsd.org)
. surfraw || exit 1

w3_config_hook () {
defyn   SURFRAW_openbsd_mail            no
defyn   SURFRAW_openbsd_pr              no
defyn   SURFRAW_openbsd_ports           no
defyn   SURFRAW_openbsd_mail_misc	no
defyn   SURFRAW_openbsd_mail_tech	no
}

w3_usage_hook () {
    cat <<EOF
Usage: $w3_argv0 [options] [search-string | PR-number]
Description:
  Surfraw search OpenBSD related information
Local options:
  -mail[=(yes|no)]              Search OpenBSD mailinglists
                                Default: $SURFRAW_openbsd_mail
                                Environment: SURFRAW_openbsd_mail
  -ps[=(yes|no)]                Search ports.
                                Default: $SURFRAW_openbsd_ports
                                Environment: SURFRAW_openbsd_ports
  -misc[=(yes|no)]		Search misc mailing list.
				Default: $SURFRAW_openbsd_mail_misc
  -tech[=(yes|no)]		Search tech mailing list.
				Default: $SURFRAW_openbsd_mail_tech
Examples:
  $w3_argv0                     Teleport to the OpenBSD website
  $w3_argv0 mycroft             Search OpenBSD 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 -ps surfraw         Search ports for surfraw
  $w3_argv0 -misc supermicro    Search misc mailing list for supermico
  $w3_argv0 -tech SMP           Search tech mailing list for SMP
EOF
    w3_custom_search_usage
    w3_global_usage
}

w3_parse_option_hook () {
    opt="$1"
    optarg="$2"
    case "$opt" in
	-mail)		setoptyn	SURFRAW_openbsd_mail		yes	;;
	-mail=*) 	setoptyn	SURFRAW_openbsd_mail		$optarg	;;
	-ps)		setoptyn	SURFRAW_openbsd_ports		yes	;;
	-ps=*)		setoptyn	SURFRAW_openbsd_ports		$optarg	;;
	-misc)		setoptyn	SURFRAW_openbsd_mail_misc	yes	;;
	-misc=*)	setoptyn	SURFRAW_openbsd_mail_misc 	$optarg	;;
	-tech)		setoptyn	SURFRAW_openbsd_mail_tech 	yes	;;
	-tech=*)	setoptyn	SURFRAW_openbsd_mail_tech 	$optarg	;;
	*) 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_openbsd_ports; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://openports.se/"
    else
        w3_browse_url "http://openports.se/search.php?so=${escaped_args}"
    fi
    exit $?
fi
if ok SURFRAW_openbsd_mail; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://www.openbsd.org/mail.html"
    else
        w3_browse_url "http://search.gmane.org/?query=${escaped_args}&sort=relevance&DEFAULTOP=and&group=gmane.os.openbsd.*"
    fi
    exit $?
fi
if ok SURFRAW_openbsd_mail_misc; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://marc.info/?l=openbsd-misc&r=1&w=2"
    else
	w3_browse_url "http://marc.info/?l=openbsd-misc&w=2&r=1&s=${escaped_args}&q=b"
    fi
    exit $?
fi
if ok SURFRAW_openbsd_mail_tech; then
    if test -z "$escaped_args"; then
        w3_browse_url "http://marc.info/?l=openbsd-tech&r=1&w=2"
    else
	w3_browse_url "http://marc.info/?l=openbsd-tech&w=2&r=1&s=${escaped_args}&q=b"
    fi
    exit $?
fi
if test -z "$escaped_args"; then
    w3_browse_url "http://www.openbsd.org/"
else
    w3_custom_search -s=openbsd.org "$w3_shquoted_args"
fi
exit $?