[DRE-commits] [ruby-rotp] 01/01: Use quilt to remove privacy-breach content

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat Jun 20 05:35:11 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-rotp.

commit 6e518e3b8376db6223925f66457d420f874bfce1
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat Jun 20 11:05:44 2015 +0530

    Use quilt to remove privacy-breach content
---
 debian/patches/patch-out-privacy-breach | 29 +++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 debian/ruby-rotp.docs                   |  1 +
 debian/rules                            | 15 +++------------
 4 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/debian/patches/patch-out-privacy-breach b/debian/patches/patch-out-privacy-breach
new file mode 100644
index 0000000..feb5f4c
--- /dev/null
+++ b/debian/patches/patch-out-privacy-breach
@@ -0,0 +1,29 @@
+Description: Remove privacy breaching content
+ Gem uses build status, license info etc from travis in its README. Since it 
+ downloads content from remote site, it falls under privacy-breach filter of 
+ lintian. Removing those entries.
+Author: Balasankar C <balasankarc at autistici.org>
+Forwarded: not-needed
+Last-Update: 2015-06-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/README.md
++++ b/README.md
+@@ -1,8 +1,5 @@
+ # The Ruby One Time Password Library
+ 
+-[![Build Status](https://secure.travis-ci.org/mdp/rotp.png)](https://travis-ci.org/mdp/rotp)
+-[![Gem Version](https://badge.fury.io/rb/rotp.svg)](https://rubygems.org/gems/rotp)
+-[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/mdp/rotp/blob/master/LICENSE)
+ 
+ A ruby library for generating one time passwords (HOTP & TOTP) according to [RFC 4226](http://tools.ietf.org/html/rfc4226) and [RFC 6238](http://tools.ietf.org/html/rfc6238).
+ 
+@@ -79,7 +76,7 @@
+ 
+ Scan the following barcode with your phone, using Google Authenticator
+ 
+-![QR Code for OTP](http://chart.apis.google.com/chart?cht=qr&chs=250x250&chl=otpauth%3A%2F%2Ftotp%2Falice%40google.com%3Fsecret%3DJBSWY3DPEHPK3PXP)
++[Here](https://camo.githubusercontent.com/316209bea84250675edbaaedf4674aa94579a539/687474703a2f2f63686172742e617069732e676f6f676c652e636f6d2f63686172743f6368743d7172266368733d323530783235302663686c3d6f747061757468253341253246253246746f7470253246616c696365253430676f6f676c652e636f6d2533467365637265742533444a425357593344504548504b33505850)
+ 
+ Now run the following and compare the output
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b590189
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+patch-out-privacy-breach
diff --git a/debian/ruby-rotp.docs b/debian/ruby-rotp.docs
index b43bf86..d594352 100644
--- a/debian/ruby-rotp.docs
+++ b/debian/ruby-rotp.docs
@@ -1 +1,2 @@
 README.md
+debian/yardocs/*
diff --git a/debian/rules b/debian/rules
index ff2919f..05dc1d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,18 +11,9 @@ override_dh_installchangelogs:
 	dh_installchangelogs CHANGELOG.md
 override_dh_installdocs:
 	yardoc -o debian/yardocs
-	sed -i 's/<p><a href="https:\/\/travis-ci.org\/mdp\/rotp"><img src="https:\/\/secure.travis-ci.org\/mdp\/rotp.png" alt="Build Status"><\/a>//g' debian/yardocs/index.html
-	sed -i 's/<a href="https:\/\/rubygems.org\/gems\/rotp"><img src="https:\/\/badge.fury.io\/rb\/rotp.svg" alt="Gem Version"><\/a>//g' debian/yardocs/index.html
-	sed -i 's/<a href="https:\/\/github.com\/mdp\/rotp\/blob\/master\/LICENSE"><img src="https:\/\/img.shields.io\/badge\/license-MIT-blue.svg?style=flat" alt="License"><\/a><\/p>//g' debian/yardocs/index.html
-	sed -i 's/<p><img src="http.*chart.*"><\/p>/<a href="https:\/\/camo.githubusercontent.com\/316209bea84250675edbaaedf4674aa94579a539\/687474703a2f2f63686172742e617069732e676f6f676c652e636f6d2f63686172743f6368743d7172266368733d323530783235302663686c3d6f747061757468253341253246253246746f7470253246616c696365253430676f6f676c652e636f6d2533467365637265742533444a425357593344504548504b33505850">Here<\/a>/g' debian/yardocs/index.html
-	cp -r debian/yardocs/* debian/ruby-rotp/usr/share/doc/ruby-rotp
-	rm debian/ruby-rotp/usr/share/doc/ruby-rotp/file.README.html
+	rm debian/yardocs/file.README.html
 	dh_installdocs
 override_dh_clean:
-	if [ -e debian/yardocs ]; then \
-		rm -rf debian/yardocs; \
-	fi
-	if [ -e .yardoc ]; then \
-		rm -rf .yardoc;\
-	fi
+	rm -rf debian/yardocs;
+	rm -rf .yardoc;
 	dh_clean

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



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