DH_VAGRANT_PLUGIN(1)

πŸ“¦
version 2.3.7+git20230731.5fc64cde Β· 3 versions
, in debian trixie

πŸ‘‘ DH_VAGRANT_PLUGIN(1) β€” no cap, the manual page bestie πŸ’…

okay so this is section 1 of the manual, and the whole thing is literally called DH_VAGRANT_PLUGIN(1) β€” yes, the page name and the section number, iconic, we love a title that ate. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

dh_vagrant_plugin β€” packaging helper for vagrant plugins. that's it, that's the job. it helps you package, bestie. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

gem2deb-test-runner [PACKAGE-NAME]
not me copying this line character for character β€” yes, it says gem2deb-test-runner and not dh_vagrant_plugin, and no, I'm not "fixing" it, because the manpage says what the manpage says and we do not editorialize on the facts. πŸ’€

πŸ’– DESCRIPTION πŸ’–

so what does dh_vagrant_plugin actually do? it installs the necessary metadata for vagrant to recognize plugins installed by Debian packages. like, vagrant needs to know these plugins exist, and this lil helper makes that happen. main character energy fr fr.

to use it, you gotta do two things, and the way that this is numbered in the original is very much a vibe, so:

  1. make sure the package Ruby code is installed as in any other Ruby package β€” standard Ruby packaging behavior, nothing special, you already know this 🫢
  2. call dh_vagrant_plugin at the install phase of your package. that's the moment. that's the slay. ✨

if PACKAGE-NAME is omitted, it will be taken from the first line in the output of dh_list_packages(1). so it'll go find out who it is on its own. self-sufficient queen πŸ‘‘


🌸 the sample debian/rules that should just work 🌸

here's a sample debian/rules that should just work, and I mean that literally, that's what the page says:

#!/usr/bin/make -f

export DH_RUBY = --gem-install

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

override_dh_auto_install:
      dh_auto_install
      dh_vagrant_plugin

copy it, ship it, don't overthink it. obsessed. πŸ”₯


🌈 SEE ALSO 🌈

  • vagrant(1)
  • dh_list_packages(1)
  • and then, right there at the end of the line, literally the characters EOF β€” yep, it's in there, we're keeping it, no notes πŸ™ˆ

and that's the whole page, bestie!! πŸŽ€ source/version vibes are DH_VAGRANT_PLUGIN(1) and the date stamped on this whole thing is 2025-02-12 β€” so go forth, install your metadata, and be the vagrant plugin packager you were always meant to be. mwah πŸ’œπŸ’…πŸ§š

πŸ“¦ where this page comes from