diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..69e8d34 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vagrant-hostmanager (1.8.8-1) unstable; urgency=medium + + * Initial release (Closes: #898996) + + -- Kienan Stewart Thu, 17 May 2018 22:07:59 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..945e852 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: vagrant-hostmanager +Section: ruby +Priority: optional +Maintainer: Kienan Stewart +Build-Depends: debhelper (>= 10), + gem2deb, + rake, + vagrant +Standards-Version: 4.1.4 +Homepage: https://github.com/devopsgroup-io/vagrant-hostmanager +Vcs-Git: https://salsa.debian.org/kienan-guest/vagrant-hostmanager.git +Vcs-Browser: https://salsa.debian.org/kienan-guest/vagrant-hostmanager +XS-Ruby-Versions: all + +Package: vagrant-hostmanager +Architecture: all +XB-Ruby-Versions: ${ruby:Versions} +Depends: ruby | ruby-interpreter, + ${shlibs:Depends}, + ${misc:Depends} +Description: Vagrant plugin for managing /etc/hosts on guests and host + vagrant-hostmanager is a Vagrant plugin that manages the hosts file on guest machines (and optionally the host). Its goal is to enable resolution of multi-machine environments deployed with a cloud provider where IP addresses are not known in advance. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ecb01fc --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: vagrant-hostmanager +Source: https://github.com/devopsgroup-io/vagrant-hostmanager + +Files: * +Copyright: 2013 Shawn Dahlen , + 2015-2018 Seth Reeser , + 2013-2018 vagrant-hostmanager contributors +License: MPL-2.0 + +Files: debian/* +Copyright: 2018 Kienan Stewart +License: MPL-2.0 +Comment: the Debian packaging is licensed under the same terms as the original package. + +Files: debian/tests/smoke-test +Copyright: 2016, Hans-Christoph Steiner +License: MIT + +License: MPL-2.0 + Placeholder + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..dc18b8f --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +prinstine-tar = False +sign-tags = False diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..ed5da2e --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +locales usr/share/vagrant-plugins/vagrant-hostmanager/ diff --git a/debian/patches/01_use_different_locale_directory b/debian/patches/01_use_different_locale_directory new file mode 100644 index 0000000..0b8d0ce --- /dev/null +++ b/debian/patches/01_use_different_locale_directory @@ -0,0 +1,14 @@ +Description: Use different locales directory + Locale files are installed into /usr/share/vagrant-plugins instead of + being located relative to the source root. +--- vagrant-hostmanager-1.8.8.orig/lib/vagrant-hostmanager.rb ++++ vagrant-hostmanager-1.8.8/lib/vagrant-hostmanager.rb +@@ -8,7 +8,7 @@ module VagrantPlugins + @source_root ||= Pathname.new(File.expand_path('../../', __FILE__)) + end + +- I18n.load_path << File.expand_path('locales/en.yml', source_root) ++ I18n.load_path << File.expand_path("/usr/share/vagrant-plugins/vagrant-hostmanager/locales/en.yml", __FILE__) + I18n.reload! + end + end diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..14c0bb3 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01_use_different_locale_directory diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..26a24f7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/default.mk + +export GEM2DEB_TEST_RUNNER = --check-dependencies + +%: + dh $@ --buildsystem=ruby --with ruby + +override_dh_auto_install: + dh_auto_install + dh_vagrant_plugin + +newtarball = new$(DEB_VERSION_UPSTREAM).tar.gz +get-orig-source: + wget --continue -O $(newtarball) \ + https://github.com/devopsgroup-io/vagrant-hostmanager/releases/v$(DEB_VERSION_UPSTREAM).tar.gz + mk-origtargz --rename $(newtarball) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..484dfc8 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: smoke-test +Depends: vagrant, @ diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test new file mode 100755 index 0000000..7982132 --- /dev/null +++ b/debian/tests/smoke-test @@ -0,0 +1,9 @@ +#!/bin/sh + +exec 2>&1 + +set -e + +vagrant plugin list | grep vagrant-hostmanager + +vagrant global-status diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..1efd11b --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://gemwatch.debian.net/vagrant-hostmanager .*/vagrant-hostmanager-(.*).tar.gz