summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.4.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/network_interface/Manifest b/dev-ruby/network_interface/Manifest
index 9f12dee6f7c0..61c848fe6c93 100644
--- a/dev-ruby/network_interface/Manifest
+++ b/dev-ruby/network_interface/Manifest
@@ -1,2 +1,3 @@
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
+DIST network_interface-0.0.4.tar.gz 14231 BLAKE2B 140db70e0ed3091b0b76af046a46827d7cf660dd0823157d5c4e67be8e7d158a532392c499a4734b5f412b7ae58aca422428712e5cd5dc966429c7fc75108843 SHA512 68e19a657d95a49cd771447687d74991d7e1e58191c94c69ab594d11ee2491c89b8ddad7c2708021eedd093ec6a5bdd2434a5ecb9d695663d11aa5b9971c9584
diff --git a/dev-ruby/network_interface/network_interface-0.0.4.ebuild b/dev-ruby/network_interface/network_interface-0.0.4.ebuild
new file mode 100644
index 000000000000..fb8a583fcb9b
--- /dev/null
+++ b/dev-ruby/network_interface/network_interface-0.0.4.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="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
+}