This file is indexed.

/usr/bin/dh_vagrant_plugin is in vagrant 2.0.2+dfsg-2ubuntu8.

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
#!/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=$(ruby -rvagrant/version -e 'puts Vagrant::VERSION')

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

exit
: << EOF
=head1 NAME

dh_vagrant_plugin - packaging helper for vagrant plugins

=head1 SYNOPSIS

B<gem2deb-test-runner> [I<PACKAGE-NAME>]

=head1 DESCRIPTION

B<dh_vagrant_plugin> installs the necessary metadata for vagrant to
recognize plugins installed by Debian packages. To use it, you need to
1) make sure the package Ruby code is installed as in any other Ruby
package, and 2) call B<dh_vagrant_plugin> at the install phase of your
package.

If I<PACKAGE-NAME> is omitted, it will be taken from the first line in
the output of B<dh_list_packages>(1).

A sample debian/rules that should just work is as follows:

  #!/usr/bin/make -f

  export DH_RUBY = --gem-install

  %:
  	dh $@ --buildsystem=ruby --with ruby

  override_dh_auto_install:
  	dh_auto_install
  	dh_vagrant_plugin

=head1 SEE ALSO

B<vagrant>(1), B<dh_list_packages>(1).
EOF