debian/0000755000000000000000000000000012224476314007173 5ustar debian/gbp.conf0000644000000000000000000000003612224476314010611 0ustar [DEFAULT] pristine-tar = True debian/rules0000755000000000000000000000007512224476314010255 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby debian/control0000644000000000000000000000200212224476314010570 0ustar Source: ruby-packetfu Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Jérémy Bobbio Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-pcaprub, ruby-rspec (>= 2.6.2), rake Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-packetfu.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-packetfu.git;a=summary Homepage: https://github.com/todb/packetfu XS-Ruby-Versions: ruby1.9.1 Package: ruby-packetfu Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-pcaprub, ruby-rspec (>= 2.6.2) Description: PacketFu is a mid-level packet manipulation library for Ruby PacketFu is a library for reading and writing packets to an interface or to a libpcap-formatted file. This library can read, parse, and write network packets with the level of ease and fun expected from Ruby. debian/compat0000644000000000000000000000000212224476314010371 0ustar 7 debian/ruby-packetfu.examples0000644000000000000000000000001312224476314013506 0ustar examples/* debian/copyright0000644000000000000000000000347212224476314011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: packetfu Source: https://github.com/todb/packetfu Files: * Copyright: 2008-2012, Tod Beardsley License: BSD-3-clause Files: debian/* Copyright: 2013 Jérémy Bobbio License: BSD-3-clause Comment: the Debian packaging is licensed under the same terms as the original package. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Tod Beardsley nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY TOD BEARDSLEY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOD BEARDSLEY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/changelog0000644000000000000000000000060112224476314011042 0ustar ruby-packetfu (1.1.8-2) unstable; urgency=low * Only provide ruby1.9.1 compatibility until issues with ruby2.0 are sorted out. (Closes: #725556) -- Jérémy Bobbio Mon, 07 Oct 2013 11:20:01 +0200 ruby-packetfu (1.1.8-1) unstable; urgency=low * Initial release. (Closes: #719297) -- Jérémy Bobbio Sat, 24 Aug 2013 19:25:47 +0200 debian/source/0000755000000000000000000000000012224476314010473 5ustar debian/source/format0000644000000000000000000000001412224476314011701 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014512224476314010224 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/packetfu .*/packetfu-(.*).tar.gz debian/ruby-tests.rb0000644000000000000000000000012412224476314011636 0ustar require 'rake' app = Rake.application app.init app.load_rakefile app['spec'].invoke debian/patches/0000755000000000000000000000000012224476314010622 5ustar debian/patches/series0000644000000000000000000000016612224476314012042 0ustar 0001-Update-peek-format-spec-to-use-new-RSpec-matcher-syn.patch 0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch debian/patches/0001-Update-peek-format-spec-to-use-new-RSpec-matcher-syn.patch0000644000000000000000000000136612224476314024054 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= Date: Sat, 24 Aug 2013 19:20:50 +0200 Subject: Update peek format spec to use new RSpec matcher syntax --- spec/packet_subclasses_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/packet_subclasses_spec.rb b/spec/packet_subclasses_spec.rb index 66d60c5..e19028c 100644 --- a/spec/packet_subclasses_spec.rb +++ b/spec/packet_subclasses_spec.rb @@ -6,7 +6,7 @@ PacketFu.packet_classes.each do |pclass| it "will display sensible peek information" do p = pclass.new p.respond_to?(:peek).should be_true - p.peek.size.should be_<=(80), p.peek.inspect + p.peek.size.should be <= 80, p.peek.inspect p.peek.should match(/^[A-Z0-9?]../) end end debian/patches/0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch0000644000000000000000000000076612224476314022027 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= Date: Sat, 24 Aug 2013 19:23:30 +0200 Subject: Do not require rubygems, even with Ruby 1.8 --- lib/packetfu.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/packetfu.rb b/lib/packetfu.rb index ef65445..46fc7f9 100644 --- a/lib/packetfu.rb +++ b/lib/packetfu.rb @@ -8,7 +8,6 @@ $: << cwd require File.join(cwd,"packetfu","structfu") require "ipaddr" -require 'rubygems' if RUBY_VERSION =~ /^1\.[0-8]/ module PacketFu