This file is indexed.

/usr/lib/surfraw/debcontents 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
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
#!/bin/sh
# $Id$
# elvis: debcontents	-- Search contents of debian/ubuntu packages (packages.debian.org/packages.ubuntu.com)
. surfraw || exit 1

w3_config_hook () {
def   SURFRAW_debcontents_arch    i386
def   SURFRAW_debcontents_distro  stable
def   SURFRAW_debcontents_search  "files"
defyn SURFRAW_debcontents_ubuntu  no
defyn SURFRAW_debcontents_archive no
}

w3_usage_hook () {
    cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
  Search contents of debian/ubuntu packages (packages.debian.org/packages.ubuntu.com)
Local options:
  -a                            Search archived debian releases
  -u                            Search ubuntu packages instead of debian
  -search=                      Type of search
      files              |      Packages that contain files named like this
      path               |      Paths ending with the keyword
      word               |      Packages that contain files or directories
                                whose names contain the keyword
                                Default: $SURFRAW_debcontents_search
                                Environment: SURFRAW_debcontents_search
  -arch=                        Specialized search on architecture
      i386               |      Intel x86        (all)
      powerpc            |      PowerPC          (all)
      amd64              |      AMD64            (all)
      m68k               |      Motorola 680x0   (debian, archive.debian)
      alpha              |      Alpha            (debian, archive.debian)
      sparc              |      SPARC            (debian, archive.debian)
      arm                |      ARM              (debian, archive.debian)
      hppa               |      HP PA/RISC       (debian, archive.debian)
      ia64               |      Intel IA-64      (debian, archive.debian)
      mips               |      MIPS             (debian, archive.debian)
      mipsel             |      MIPS (DEC)       (debian, archive.debian)
      s390               |      IBM S/390        (debian, archive.debian)
      hurd-i386          |      Hurd (i386)      (debian)
      kfreebsd-amd64     |      kFreeBSD (amd64) (debian)
      kfreebsd-i386             kFreeBSD (i386)  (debian)
                                Default: $SURFRAW_debcontents_arch
                                Environment: SURFRAW_debcontents_arch
  -distro=                      Specific distribution
     Debian:
       stable            |      Stable
       testing           |      Testing
       unstable          |      Unstable
       oldstable         |      Old Stable
     Archived Debian (-a):
      bo                 |      1.3.1
      hamm               |      2.0
      slink              |      2.1
      potato             |      2.2
      woody              |      3.0
      sarge              |      3.1
      etch               |      4.0
     Ubuntu (-u):
       dapper            |      Dapper
       dapper-updates    |      Dapper Updates
       dapper-backports  |      Dapper Backports
       hardy             |      Hardy
       hardy-updates     |      Hardy Updates
       hardy-backports   |      Hardy Backports
       intrepid          |      Intrepid
       intrepid-updates  |      Intrepid Updates
       intrepid-backports|      Intrepid Backports
       jaunty            |      Jaunty
       jaunty-updates    |      Jaunty Updates
       jaunty-backports  |      Jaunty Backports
       karmic            |      Karmic
       karmic-updates    |      Karmic Updates
       karmic-backports  |      Karmic Backports
       lucid             |      Lucid
       lucid-updates     |      Lucid Updates
       lucid-backports   |      Lucid Backports
       maverick          |      Maverick
       maverick-updates  |      Maverick Updates
       maverick-backports|      Maverick Backports
       natty             |      Natty
       natty-updates     |      Natty Updates
       natty-backports   |      Natty Backports
                                Default: $SURFRAW_debcontents_distro
                                Environment: SURFRAW_debcontents_distro
EOF
    w3_global_usage
}

w3_parse_option_hook () {
    opt="$1"
    optarg="$2"
    case "$opt" in
	-arch=*)    setopt   SURFRAW_debcontents_arch 	 $optarg	;;
	-distro=*)  setopt   SURFRAW_debcontents_distro  $optarg	;;
	-search=*)  setopt   SURFRAW_debcontents_search  $optarg	;;
	-u*)        setoptyn SURFRAW_debcontents_ubuntu  yes    	;;
	-a*)        setoptyn SURFRAW_debcontents_archive yes    	;;
	-ca*) 	    setoptyn SURFRAW_debcontents_usecase yes    	;;
	*) return 1 ;;
    esac
    return 0
}

w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments

if   ifyes SURFRAW_debcontents_ubuntu
then
	searchpage="http://packages.ubuntu.com/#search_contents"
	searchurl="http://packages.ubuntu.com/search"
elif ifyes SURFRAW_debcontents_archive
then
	searchpage="http://archive.debian.net/#search_contents"
	searchurl="http://archive.debian.net/search"
else
	searchpage="http://packages.debian.org/#search_contents"
	searchurl="http://packages.debian.org/search"
fi
if test -z "$w3_args"; then
    w3_browse_url "$searchpage"
else
    escaped_args=`w3_url_of_arg $w3_args`

    if ifyes SURFRAW_debcontents_ubuntu
    then
	if [ "$SURFRAW_debcontents_distro" = "stable" ]
	then
		SURFRAW_debcontents_distro=raring
	fi
    fi
    url="$searchurl?keywords=${escaped_args}&searchon=contents"

    url="$url&arch=${SURFRAW_debcontents_arch}"
    url="$url&suite=${SURFRAW_debcontents_distro}"

    case "$SURFRAW_debcontents_search" in
	p*)      if ifyes SURFRAW_debcontents_ubuntu ||
	            ifyes SURFRAW_debcontents_archive
                 then
                    searchmode=""
		 else
		    searchmode=path
                 fi;;
	f*)      searchmode=exactfilename  ;;
	w*)      searchmode=filename       ;;
	*)       err "Unknown search type" ;;
    esac

    url="${url}&mode=${searchmode}"
    w3_browse_url "$url"
fi