summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-08-15 07:45:26 +0200
committerHans de Graaff <graaff@gentoo.org>2023-08-15 07:45:44 +0200
commit9002a095deebd8901b22835e38a37a075a1a4e65 (patch)
treeba7de5e6a8e3b88d913c1075a822212771142341 /dev-ruby/network_interface
parentdev-ruby/flexmock: add 2.3.8 (diff)
downloadgentoo-9002a095deebd8901b22835e38a37a075a1a4e65.tar.gz
gentoo-9002a095deebd8901b22835e38a37a075a1a4e65.tar.bz2
gentoo-9002a095deebd8901b22835e38a37a075a1a4e65.zip
dev-ruby/network_interface: add 0.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/network_interface')
-rw-r--r--dev-ruby/network_interface/Manifest1
-rw-r--r--dev-ruby/network_interface/network_interface-0.0.3.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/network_interface/Manifest b/dev-ruby/network_interface/Manifest
index 821ffa0b5e11..9f12dee6f7c0 100644
--- a/dev-ruby/network_interface/Manifest
+++ b/dev-ruby/network_interface/Manifest
@@ -1 +1,2 @@
DIST network_interface-0.0.2.gem 16896 BLAKE2B a0e7898aa5989ea38c8a9214f3aaf5f9d0dbdf39e86f7e9a4d62ec6c94f29f9612a08c1465513b62351a4c62ed776e427800eabe562062ce7c9b4b75ec757a3b SHA512 8850325e7e0c5ab51b060270220099c2c00cf7031083a511ae9f8dd6d1b9219b37169fa7620e9648eb071784a840e14ce965f8d1cf5d475ff82691bfba25a202
+DIST network_interface-0.0.3.tar.gz 13584 BLAKE2B 61cd72974e9ec1b72adb9c6a7f77e43ff3a025e4bfddb70b1e899ee34ca0fe42a56f81095ee0cff66e2da1712af7854ee811d26d7af316cb6c5fb905b3a8ad4b SHA512 9a2c9ae4a49666f27a1afdd188bd3be614f5aba7ec548f6b081627a9aaff5b5cdb2d7f5b98e8687eb78ea05ee3e90cf8f942403256076d80710945b5f2a429c2
diff --git a/dev-ruby/network_interface/network_interface-0.0.3.ebuild b/dev-ruby/network_interface/network_interface-0.0.3.ebuild
new file mode 100644
index 000000000000..97db0fdc051c
--- /dev/null
+++ b/dev-ruby/network_interface/network_interface-0.0.3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_GEMSPEC="network_interface.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTENSIONS=(ext/network_interface_ext/extconf.rb)
+
+inherit ruby-fakegem
+
+DESCRIPTION="network_interface layer from metasploit pcaprub"
+HOMEPAGE="https://github.com/rapid7/network_interface"
+SRC_URI="https://github.com/rapid7/network_interface/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+# Tests are brittle as they cannot deal with all network interface configurations.
+RESTRICT="test"
+
+all_ruby_prepare() {
+ sed -i -e 's:/sbin/ifconfig:/bin/ifconfig:' spec/spec_helper.rb || die
+
+ sed --i -e 's/__dir__/"."/' -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}