[DRE-commits] [SCM] rails-2.3.git branch, debian-sid, updated. 0288d3496b551d2b35d0233f10713cb4d65bf2d6

Ondřej Surý ondrej at sury.org
Fri Jun 10 14:27:38 UTC 2011


The following commit has been merged in the debian-sid branch:
commit ceebff25ab3a0b68cce8ec9b97337b01695a6945
Author: Ondřej Surý <ondrej at sury.org>
Date:   Tue Jun 7 14:21:47 2011 +0200

    Install rails binaries to /usr/lib/rails/bin and make rails binaries executable

diff --git a/debian/ruby-rails-2.3.dirs b/debian/ruby-rails-2.3.dirs
new file mode 100644
index 0000000..d94a2a2
--- /dev/null
+++ b/debian/ruby-rails-2.3.dirs
@@ -0,0 +1 @@
+/usr/lib/rails/bin
diff --git a/debian/ruby-rails-2.3.install b/debian/ruby-rails-2.3.install
new file mode 100644
index 0000000..a7e935e
--- /dev/null
+++ b/debian/ruby-rails-2.3.install
@@ -0,0 +1 @@
+debian/ruby-rails-2.3/usr/bin/* /usr/lib/rails/bin/
diff --git a/debian/rules b/debian/rules
index af4206f..681c064 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,3 +21,10 @@ override_dh_testdir: debian/control
 
 debian/control: debian/control.in
 	sed -e "s/@RAILS_VERSION@/$(RAILS_VERSION)/" >$@ <$<
+
+override_dh_install:
+	# Move /usr/bin/* to /usr/lib/rails/bin/
+	dh_install -O--buildsystem=ruby
+	rm -rf $(CURDIR)/debian/ruby-rails-2.3/usr/bin
+	# Make rails binaries executable
+	find $(CURDIR)/debian/ruby-rails-2.3/usr/lib/rails/bin/ -type f -exec chmod 755 {} \;

-- 
rails-2.3.git



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