[DRE-commits] [vagrant-lxc] 09/17: Install in a new layout

Antonio Terceiro terceiro at moszumanska.debian.org
Thu May 28 10:46:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository vagrant-lxc.

commit 74a55a816fd786d5a1247aed30091b448fcbb1a6
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Wed May 27 09:07:31 2015 -0300

    Install in a new layout
---
 debian/control              |  2 +-
 debian/rules                | 12 +++++++++++-
 debian/vagrant-lxc.examples |  1 -
 debian/vagrant-lxc.json.in  |  9 +++++++++
 4 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 1acd4af..43feb50 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Antonio Terceiro <terceiro at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), ruby
+Build-Depends: debhelper (>= 7.0.50~), ruby, vagrant
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/vagrant-lxc.git
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/vagrant-lxc.git
diff --git a/debian/rules b/debian/rules
index 053aa2c..c4ca493 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,28 @@
 #!/usr/bin/make -f
 
+export HOME=/invalid
+
 %:
 	dh $@
 
 version = $(shell dpkg-parsechangelog -SVersion | cut -d - -f 1)
 
+ruby_version = $(shell ruby -e 'puts RUBY_VERSION')
+vagrant_version = $(shell cat /usr/share/vagrant/version.txt)
+
 gem = vagrant-lxc-$(version).gem
 gemspec = debian/$(gem)spec
 plugindir = debian/vagrant-lxc/usr/share/vagrant-plugins
+plugingemdir = $(plugindir)/gems
+pluginjsondir = $(plugindir)/plugins.d
 
 override_dh_auto_install:
 	gem build $(gemspec)
-	gem install -i $(plugindir) $(gem)
+	gem install --no-rdoc --no-ri -i $(plugingemdir) $(gem)
 	$(RM) $(plugindir)/cache/*
+	mkdir -p $(pluginjsondir)
+	sed -e 's/@@RUBY_VERSION@@/$(ruby_version)/g; s/@@VAGRANT_VERSION@@/$(vagrant_version)/g' \
+		debian/vagrant-lxc.json.in > $(pluginjsondir)/vagrant-lxc.json
 	dh_auto_install
 
 override_dh_auto_clean:
diff --git a/debian/vagrant-lxc.examples b/debian/vagrant-lxc.examples
deleted file mode 100644
index c955c11..0000000
--- a/debian/vagrant-lxc.examples
+++ /dev/null
@@ -1 +0,0 @@
-boxes/
diff --git a/debian/vagrant-lxc.json.in b/debian/vagrant-lxc.json.in
new file mode 100644
index 0000000..348da12
--- /dev/null
+++ b/debian/vagrant-lxc.json.in
@@ -0,0 +1,9 @@
+{
+  "vagrant-lxc": {
+    "ruby_version":"@@RUBY_VERSION@@",
+    "vagrant_version":"@@VAGRANT_VERSION@@",
+    "gem_version":"",
+    "require":"",
+    "sources":[]
+  }
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-lxc.git



More information about the Pkg-ruby-extras-commits mailing list