[DRE-commits] [chef] 06/07: debian/rules: also install files moved to lib-backcompat/ by upstream
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Jun 5 15:26:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository chef.
commit 2a5e57abd41fa943b6cfc9622ba8a6f1ebd517b5
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Jun 5 11:39:47 2016 -0300
debian/rules: also install files moved to lib-backcompat/ by upstream
---
debian/changelog | 1 +
debian/install-backcompat | 12 ++++++++++++
debian/rules | 2 ++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 59e8810..bf170be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ chef (12.10.24-1) UNRELEASED; urgency=medium
* Take over the ruby-chef-config binary package, since chef and chef-config
are release in lockstep and developed together in the same git repository
(but released separately to rubygems).
+ * debian/rules: also install files moved to lib-backcompat/ by upstream
-- Antonio Terceiro <terceiro at debian.org> Sun, 05 Jun 2016 10:49:39 -0300
diff --git a/debian/install-backcompat b/debian/install-backcompat
new file mode 100755
index 0000000..f92e305
--- /dev/null
+++ b/debian/install-backcompat
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+run() {
+ echo "$@"
+ "$@"
+}
+
+for f in $(find lib-backcompat/ -type f); do
+ run dh_install -p chef "$f" "$(dirname /usr/lib/ruby/vendor_ruby/${f##lib-backcompat})"
+done
diff --git a/debian/rules b/debian/rules
index e2c71a6..b4b1c23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,13 @@
#!/usr/bin/make -f
export GEM2DEB_TEST_RUNNER = --check-dependencies
+export DH_VERBOSE = 1
%:
dh $@ --buildsystem=ruby --with ruby
override_dh_auto_install:
+ ./debian/install-backcompat
dh_auto_install
dh_installinit --name chef-client -- defaults 99 02
cp -rf $(CURDIR)/debian/etc/chef/client.rb $(CURDIR)/debian/chef/usr/share/chef
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/chef.git
More information about the Pkg-ruby-extras-commits
mailing list