This file is indexed.

/usr/bin/dh_vagrant_plugin is in vagrant 1.8.1+dfsg-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
#!/bin/sh

set -e

if [ $# -gt 1 ]; then
  echo "usage: dh_vagrant_plugin [PACKAGENAME]"
  echo
  echo "If ommitted, PACKAGENAME will be taken from first line of output from"
  echo "dh_listpackages"
  echo
  exit 1
fi

if ! [ -f debian/changelog -a -f debian/control ]; then
  echo "E: must be run from inside a Debian source package"
  exit 1
fi

plugin_package_name="$1"
if [ -z "$plugin_package_name" ]; then
  plugin_package_name=$(dh_listpackages | head -n 1)
fi

plugins_d=debian/${plugin_package_name}/usr/share/vagrant-plugins/plugins.d
plugin_json=$plugins_d/${plugin_package_name}.json

mkdir -pv ${plugins_d}

ruby_version=$(ruby -e 'puts RUBY_VERSION')
vagrant_version=$(cat /usr/share/vagrant/version.txt)

cat >> $plugin_json <<EOF
{
  "${plugin_package_name}": {
    "ruby_version":"$(ruby -e 'puts RUBY_VERSION')",
    "vagrant_version":"$(cat /usr/share/vagrant/version.txt)",
    "gem_version":"",
    "require":"",
    "sources":[]
  }
}
EOF
echo "created $plugin_json"