[DRE-commits] [SCM] ruby-mail.git branch, master, updated. upstream/2.4.1-15-gb63028a

Carl Worth cworth at debian.org
Fri Mar 2 23:46:34 UTC 2012


The following commit has been merged in the master branch:
commit b63028ae88ddb4d793f203ca075bda99f70c768b
Author: Carl Worth <cworth at debian.org>
Date:   Fri Mar 2 15:41:31 2012 -0800

    debian: Prevent installation of unwanted files.
    
    The original source has three files in lib/, (VERSION,
    tasks/treetop.rake, and tasks/corpus.rake), that we really don't want
    installed. These would be installed to /usr/lib/ruby/vendor_ruby and
    clutter things up there, (the package should only install the mail.rb
    file there and other files to the mail/ directory below).
    
    The simple fix is to just augment the 'rules' makefile to delete these
    files after installation.

diff --git a/debian/rules b/debian/rules
index a5e7dc8..9f93cfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,11 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+# After installing, delete a few files that we really don't want installed.
+override_dh_auto_install:
+	dh_auto_install
+	rm debian/ruby-mail/usr/lib/ruby/vendor_ruby/VERSION
+	rm debian/ruby-mail/usr/lib/ruby/vendor_ruby/tasks/treetop.rake
+	rm debian/ruby-mail/usr/lib/ruby/vendor_ruby/tasks/corpus.rake
+	rmdir debian/ruby-mail/usr/lib/ruby/vendor_ruby/tasks

-- 
ruby-mail.git



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