summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-05-08 23:07:13 -0400
committerZero_Chaos <zerochaos@gentoo.org>2017-05-08 23:09:02 -0400
commit1822dce39606ed44001ca06e41ef4b1048df1ff5 (patch)
treed9651b027c8dfe99162ef92b28785d896a7ce76c /dev-ruby/packetfu
parentnet-analyzer/metasploit: (diff)
downloadgentoo-1822dce39606ed44001ca06e41ef4b1048df1ff5.tar.gz
gentoo-1822dce39606ed44001ca06e41ef4b1048df1ff5.tar.bz2
gentoo-1822dce39606ed44001ca06e41ef4b1048df1ff5.zip
dev-ruby/packetfu: bumpity bump bump
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/packetfu')
-rw-r--r--dev-ruby/packetfu/Manifest1
-rw-r--r--dev-ruby/packetfu/packetfu-1.1.11-r1.ebuild4
-rw-r--r--dev-ruby/packetfu/packetfu-1.1.13.ebuild54
3 files changed, 57 insertions, 2 deletions
diff --git a/dev-ruby/packetfu/Manifest b/dev-ruby/packetfu/Manifest
index 81963028f9ea..67628f27d75a 100644
--- a/dev-ruby/packetfu/Manifest
+++ b/dev-ruby/packetfu/Manifest
@@ -1 +1,2 @@
DIST packetfu-1.1.11.gem 751104 SHA256 6ae9398fa707446e856c37f1160f3323695cd8b245732b78f281d9db8d2e2816 SHA512 c4e2a86ab331f87989e675777a7c47570afee1426007ac91387d5bd4594206c0ae9c0e180dd0f890558d46ff54d0298e89ef57bb4b433c1fea5644315d7b61b6 WHIRLPOOL 679f615c3a02597d9615bca96aab76b0aad24f9ca01cf57155bb554e2a6d23a513ba999bbf4d0ca1e556b530d7a83543ab9e25fdd4a34e1cefdc690617463054
+DIST packetfu-1.1.13.gem 769024 SHA256 94a247b056617d6b6db8b682b21e8ad5193d745e8506a335149de0ee78c2f79a SHA512 c3ee67bfd597dcd197f213361ab94c614136304d8746de45b99322c1b6878eaef7c4a2ebc19be658d891df3e7d261476def27ae14990157dc6cb466815bd6f15 WHIRLPOOL d36cc51511b0a826de8e38b57ade9745aac477ce03cddbcb68121cb0134142985f8d209295c36ec6c8f487b442da2ba84a1025c5c3a90a12f3b1aeca81bab027
diff --git a/dev-ruby/packetfu/packetfu-1.1.11-r1.ebuild b/dev-ruby/packetfu/packetfu-1.1.11-r1.ebuild
index 67be91f0f5c1..64405f485a37 100644
--- a/dev-ruby/packetfu/packetfu-1.1.11-r1.ebuild
+++ b/dev-ruby/packetfu/packetfu-1.1.11-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-USE_RUBY="ruby20 ruby21 ruby22"
+USE_RUBY="ruby21 ruby22"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
diff --git a/dev-ruby/packetfu/packetfu-1.1.13.ebuild b/dev-ruby/packetfu/packetfu-1.1.13.ebuild
new file mode 100644
index 000000000000..70a9aa5ec68b
--- /dev/null
+++ b/dev-ruby/packetfu/packetfu-1.1.13.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRAINSTALL="examples"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="A mid-level packet manipulation library"
+HOMEPAGE="https://rubygems.org/gems/packetfu"
+
+LICENSE="BSD"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm ~x86"
+
+ruby_add_rdepend "
+ dev-ruby/network_interface:0
+ dev-ruby/pcaprub:0.12
+"
+
+ruby_add_bdepend "test? ( >=dev-ruby/rspec-its-1.2.0:1 )
+ dev-ruby/bundler"
+DEPEND="${DEPEND} !dev-ruby/packetfu:0"
+
+all_ruby_prepare() {
+ [ -f Gemfile.lock ] && rm Gemfile.lock
+ #For now, we don't support development or testing at all
+ #if ! use development; then
+ sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
+ sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die
+ sed -i -e "/spec.add_development_dependency/d" "${PN}".gemspec || die
+ #fi
+ #if ! use test; then
+ sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
+ #fi
+ #if ! use test && ! use development; then
+ sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die
+ #fi
+ sed -i -e '/[Cc]overalls/d' spec/spec_helper.rb || die
+}
+
+each_ruby_prepare() {
+ if [ -f Gemfile ]
+ then
+ BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
+ BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
+ fi
+}