[DRE-commits] [ruby-rubydns] 01/01: Initial Debian commit

Philippe Thierry pthierry-guest at moszumanska.debian.org
Wed Jun 21 20:32:59 UTC 2017


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

pthierry-guest pushed a commit to branch master
in repository ruby-rubydns.

commit f61ccb1186bb83ad7caa7ba352715704edafad65
Author: Philippe Thierry <phil at reseau-libre.net>
Date:   Wed Jun 21 21:38:54 2017 +0200

    Initial Debian commit
---
 debian/changelog                                   |  6 +++
 debian/compat                                      |  1 +
 debian/control                                     | 39 ++++++++++++++++++
 debian/copyright                                   | 33 +++++++++++++++
 .../patches/debian_patches_drop-git-ls-files.patch | 18 +++++++++
 debian/patches/debian_patches_fix-test.patch       | 36 +++++++++++++++++
 debian/patches/series                              |  2 +
 debian/ruby-rubydns.docs                           |  1 +
 debian/ruby-rubydns.examples                       |  1 +
 debian/ruby-rubydns.manpages                       |  1 +
 debian/ruby-tests.rake                             |  7 ++++
 debian/rubydns-check.1.md                          | 47 ++++++++++++++++++++++
 debian/rules                                       |  9 +++++
 debian/source/format                               |  1 +
 debian/watch                                       |  2 +
 15 files changed, 204 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f93b0fe
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ruby-rubydns (1.0.3-1) unstable; urgency=medium
+
+  * Initial release (Closes: #865479).
+    based on the Kali package from Sophie Brun
+
+ -- Philippe Thierry <phil at reseau-libre.net>  Wed, 21 Jun 2017 21:23:17 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..73e7b63
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: ruby-rubydns
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Philippe Thierry <phil at reseau-libre.net>
+Build-Depends:
+ debhelper (>= 10),
+ go-md2man,
+ gem2deb,
+ rake,
+ ruby-rspec,
+ ruby-celluloid,
+ ruby-celluloid-io,
+ ruby-timers,
+# ruby-process-daemon,
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-rubydns.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-rubydns.git
+Homepage: http://www.codeotaku.com/projects/rubydns
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-rubydns
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ ruby | ruby-interpreter,
+ ruby-celluloid,
+ ruby-celluloid-io,
+ ruby-timers,
+Description: Easy to use DNS server and resolver for Ruby
+ RubyDNS is a high-performance DNS server which can be easily integrated into
+ other projects or used as a stand-alone daemon. By default it uses
+ rule-based pattern matching. Results can be hard-coded, computed, fetched from
+ a remote DNS server or fetched from a local cache, depending on requirements.
+ .
+ In addition, RubyDNS includes a high-performance asynchronous DNS resolver
+ built on top of Celluloid. This module can be used by itself in client
+ applications without using the full RubyDNS server stack.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..39b5ec4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rubydns
+Source: https://github.com/ioquatix/rubydns/
+
+Files: *
+Copyright: 2009, 2012, 2014 by Samuel G. D. Williams
+License: MIT
+
+Files: debian/*
+Copyright: 2015 Sophie Brun <sophie at freexian.com>
+           2017 Philippe Thierry <phil at reseau-libre.net>
+License: MIT
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
diff --git a/debian/patches/debian_patches_drop-git-ls-files.patch b/debian/patches/debian_patches_drop-git-ls-files.patch
new file mode 100644
index 0000000..d7d54ac
--- /dev/null
+++ b/debian/patches/debian_patches_drop-git-ls-files.patch
@@ -0,0 +1,18 @@
+Description: Drop git ls-files in .gemspec
+ Replace the git ls-files with Dir.glob as build is not in git directory
+Author: Sophie Brun <sophie at freexian.com>
+Origin: vendor
+Last-Update: 2015-06-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/rubydns.gemspec
++++ b/rubydns.gemspec
+@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
+ 	spec.homepage      = "http://www.codeotaku.com/projects/rubydns"
+ 	spec.license       = "MIT"
+ 
+-	spec.files         = `git ls-files`.split($/)
++	spec.files         = Dir.glob('**/*')
+ 	spec.executables   = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ 	spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
+ 	spec.require_paths = ["lib"]
diff --git a/debian/patches/debian_patches_fix-test.patch b/debian/patches/debian_patches_fix-test.patch
new file mode 100644
index 0000000..4cac5bd
--- /dev/null
+++ b/debian/patches/debian_patches_fix-test.patch
@@ -0,0 +1,36 @@
+Description: Drop a failing test
+ The test fails with "crashed actors" failure.
+Author: Sophie Brun <sophie at freexian.com>
+Last-Update: 2016-04-15
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/rubydns/ipv6_spec.rb
++++ b/spec/rubydns/ipv6_spec.rb
+@@ -26,27 +26,6 @@ require 'rubydns/system'
+ module RubyDNS::IPv6Spec
+ 	IN = Resolv::DNS::Resource::IN
+ 	
+-	describe RubyDNS::TCPSocketHandler do
+-		before(:all) do
+-			Celluloid.shutdown
+-			Celluloid.boot
+-		end
+-	
+-		it "should create server with existing TCP socket" do
+-			@server = RubyDNS::run_server(:listen => [[:tcp, '::', 2002]], asynchronous: true) do
+-				resolver = RubyDNS::Resolver.new([[:udp, "8.8.8.8", 53], [:tcp, "8.8.8.8", 53]])
+-				
+-				match(/.*\.com/, IN::A) do |transaction|
+-					transaction.passthrough!(resolver)
+-				end
+-			end
+-			
+-			resolver = RubyDNS::Resolver.new([[:tcp, '::1', 2002]])
+-			response = resolver.query('google.com')
+-			expect(response.class).to be == RubyDNS::Message
+-		end
+-	end
+-	
+ 	describe RubyDNS::UDPSocketHandler do
+ 		before(:all) do
+ 			Celluloid.shutdown
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ad74aba
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+debian_patches_drop-git-ls-files.patch
+debian_patches_fix-test.patch
diff --git a/debian/ruby-rubydns.docs b/debian/ruby-rubydns.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-rubydns.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-rubydns.examples b/debian/ruby-rubydns.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/ruby-rubydns.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/ruby-rubydns.manpages b/debian/ruby-rubydns.manpages
new file mode 100644
index 0000000..d11d27f
--- /dev/null
+++ b/debian/ruby-rubydns.manpages
@@ -0,0 +1 @@
+debian/rubydns-check.1
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..99987ae
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+  spec.pattern = './spec/*_spec.rb'
+end
+
+task :default => :spec
diff --git a/debian/rubydns-check.1.md b/debian/rubydns-check.1.md
new file mode 100644
index 0000000..c2c7ac7
--- /dev/null
+++ b/debian/rubydns-check.1.md
@@ -0,0 +1,47 @@
+% RUBYDNS-CHECK(1) Rubydns-check Man Page
+% Philippe Thierry
+% June 2017
+# NAME
+
+rubydns-check - test and check DNS servers.
+
+# SYNOPSIS
+**rubydns-check [options]**
+
+
+# DESCRIPTION
+
+**rubydns-check** is designed to test and check DNS servers.
+
+# OPTIONS:
+
+**-s, --server ns.my.domain.**
+The DNS server to query.
+
+**-d, --domain my.domain.**
+The DNS zone to transfer/test.
+
+**-f, --fetch output.yml**
+Pull down a list of hosts. Filters TXT  and HINFO records. DNS transfers must be enabled.
+
+**-c, --check input.yml**
+Check that the DNS server returns results as specified by the file.
+
+**-q, --query input.yml**
+Query the remote DNS server with all hostnames in the given file, and checks the IP addresses are consistent.
+
+**-p, --ping input.yml**
+Ping all hosts to check if they are available or not.
+
+**-r, --reverse input.yml**
+Check that all address records have appropriate reverse entries.
+
+**--copy**
+Display copyright information
+
+**-h, --help**
+Show this help message.
+
+
+# HISTORY
+June 2017, Man page originally compiled by Philippe Thierry (phil at reseau-libre dot com)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..350f9ab
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+
+override_dh_auto_build:
+	dh_auto_build -O--buildsystem=ruby
+	go-md2man -in debian/rubydns-check.1.md -out debian/rubydns-check.1
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f4c7dce
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rubydns .*/rubydns-(.*).tar.gz

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



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