[DRE-commits] [ruby-network-interface] 01/01: initial commit

Philippe Thierry pthierry-guest at moszumanska.debian.org
Wed Jun 21 13:47:15 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-network-interface.

commit 7aedeb9ecba6daebdb58be584b79ebfb259df5d2
Author: Philippe Thierry <philippe.thierry at thalesgroup.com>
Date:   Wed Jun 21 15:16:57 2017 +0200

    initial commit
---
 debian/changelog                   |  6 +++
 debian/compat                      |  1 +
 debian/control                     | 29 ++++++++++++
 debian/copyright                   | 32 +++++++++++++
 debian/patches/series              |  1 +
 debian/patches/spelling.patch      | 96 ++++++++++++++++++++++++++++++++++++++
 debian/ruby-network-interface.docs |  1 +
 debian/ruby-tests.rake             |  5 ++
 debian/rules                       |  6 +++
 debian/source/format               |  1 +
 debian/watch                       |  4 ++
 11 files changed, 182 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f3314dc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ruby-network-interface (0.0.1-1) unstable; urgency=medium
+
+  * Initial release (Closes: #865440).
+    based on the Kali package from Sophie Brun
+
+ -- Philippe Thierry <phil at reseau-libre.net>  Wed, 21 Jun 2017 15:02:30 +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..e020d81
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: ruby-network-interface
+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),
+  gem2deb,
+  rake,
+  ruby-rspec,
+  net-tools,
+Standards-Version: 3.9.8
+Homepage: https://github.com/rapid7/network_interface
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-network-interface.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-network-interface.git
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-network-interface
+Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
+Depends:
+  ruby | ruby-interpreter,
+  ${misc:Depends},
+  ${shlibs:Depends}
+Description: Cross platform gem to help get network interface information
+ This package contains a gem originally added to the Metasploit Pcaprub gem.
+ It's been spun out into its own gem for anyone who might want to
+ programmatically get information on their network interfaces.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..614d2b1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: network_interface
+Source: https://github.com/rapid7/network_interface
+
+Files: *
+Copyright: 2007, 2008 Alastair Houghton
+           2012, Rapid7, Inc.
+License: MIT
+
+Files: debian/*
+Copyright: 2016 Sophie Brun <sophie at freexian.com>
+License: MIT
+
+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/series b/debian/patches/series
new file mode 100644
index 0000000..5299247
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+spelling.patch
diff --git a/debian/patches/spelling.patch b/debian/patches/spelling.patch
new file mode 100644
index 0000000..c51f12b
--- /dev/null
+++ b/debian/patches/spelling.patch
@@ -0,0 +1,96 @@
+Description: Spelling update
+ Spelling update after spellintian pass.
+Author: Philippe Thierry
+Last-Update: 2017-06-21
+--- a/ext/network_interface_ext/netifaces.c
++++ b/ext/network_interface_ext/netifaces.c
+@@ -245,7 +245,7 @@
+ 
+       if (!pAdapterInfo)
+       {
+-        rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++        rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+         return Qnil;
+     }
+     }
+@@ -347,7 +347,7 @@
+ #elif HAVE_GETIFADDRS
+   if (getifaddrs (&addrs) < 0)
+   {
+-    rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++    rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+     }
+ 
+     for (addr = addrs; addr; addr = addr->ifa_next)
+@@ -401,7 +401,7 @@
+ 
+   if (sock < 0)
+   {
+-        rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++        rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+     return Qnil;
+   }
+ 
+@@ -566,7 +566,7 @@
+ 
+       if (!pAdapterInfo)
+       {
+-        rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++        rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+       }
+       }
+     } while (dwRet == ERROR_BUFFER_OVERFLOW);
+@@ -577,7 +577,7 @@
+     if (pAdapterInfo)
+       free (pAdapterInfo);
+ 
+-      rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++      rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+       return Qnil;
+   }
+   if (dwRet == ERROR_NO_DATA)
+@@ -606,7 +606,7 @@
+ #elif HAVE_GETIFADDRS
+   if (getifaddrs (&addrs) < 0)
+   {
+-    rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++    rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+   }
+ 
+   for (addr = addrs; addr; addr = addr->ifa_next)
+@@ -628,7 +628,7 @@
+   fd = socket (AF_INET, SOCK_DGRAM, 0);
+   len = -1;
+   if (fd < 0) {
+-    rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++    rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+     return Qnil;
+   }
+ 
+@@ -673,7 +673,7 @@
+ #endif
+     free (ifc.CNAME(ifc_req));
+     close (fd);
+-    rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++    rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+     return Qnil;
+   }
+ 
+@@ -724,7 +724,7 @@
+ 
+       if (!pAdapterInfo)
+       {
+-        rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++        rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+       }
+       }
+     } while (dwRet == ERROR_BUFFER_OVERFLOW);
+@@ -735,7 +735,7 @@
+     if (pAdapterInfo)
+       free (pAdapterInfo);
+ 
+-      rb_raise(rb_eRuntimeError, "Unknow error at OS level");
++      rb_raise(rb_eRuntimeError, "Unknown error at OS level");
+       return Qnil;
+   }
+   if (dwRet == ERROR_NO_DATA)
diff --git a/debian/ruby-network-interface.docs b/debian/ruby-network-interface.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-network-interface.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..6c7a4e6
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/spectask'
+
+Gem2Deb::Rake::RSpecTask.new do |spec|
+    spec.pattern = './spec/**/*_spec.rb'
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3454d59
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+%:
+	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..6e46ea2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/$1\.tar\.gz/ \
+  https://github.com/rapid7/network_interface/tags .*/v?(\d\S*)\.tar\.gz

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



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