git: 4b3d37988d35 - main - net/rubygem-packetgen: Add rubygem-packetgen 3.2.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Apr 2023 17:33:28 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b3d37988d35f41063afc47b89c1170ceada9ace commit 4b3d37988d35f41063afc47b89c1170ceada9ace Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-04-05 17:07:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-04-05 17:29:41 +0000 net/rubygem-packetgen: Add rubygem-packetgen 3.2.2 PacketGen provides simple ways to generate, send and capture network packets. --- net/Makefile | 1 + net/rubygem-packetgen/Makefile | 23 +++++++++++++++++++++++ net/rubygem-packetgen/distinfo | 3 +++ net/rubygem-packetgen/files/patch-gemspec | 11 +++++++++++ net/rubygem-packetgen/pkg-descr | 1 + 5 files changed, 39 insertions(+) diff --git a/net/Makefile b/net/Makefile index d096ff4e170b..910fbdf44934 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1355,6 +1355,7 @@ SUBDIR += rubygem-orchestrator_client SUBDIR += rubygem-ovirt-engine-sdk SUBDIR += rubygem-packetfu + SUBDIR += rubygem-packetgen SUBDIR += rubygem-pcaprub SUBDIR += rubygem-private_address_check SUBDIR += rubygem-proxifier diff --git a/net/rubygem-packetgen/Makefile b/net/rubygem-packetgen/Makefile new file mode 100644 index 000000000000..8707af0d104d --- /dev/null +++ b/net/rubygem-packetgen/Makefile @@ -0,0 +1,23 @@ +PORTNAME= packetgen +PORTVERSION= 3.2.2 +CATEGORIES= net rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Network packet manipulation library +WWW= https://github.com/sdaubert/packetgen + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-interfacez>=1.0<2:net/rubygem-interfacez \ + rubygem-pcaprub>=0.12.0:net/rubygem-pcaprub \ + rubygem-rasn1>=0.8.0<1:security/rubygem-rasn1 + +USES= gem + +NO_ARCH= yes + +PLIST_FILES= bin/pgconsole + +.include <bsd.port.mk> diff --git a/net/rubygem-packetgen/distinfo b/net/rubygem-packetgen/distinfo new file mode 100644 index 000000000000..fd9aba326aa2 --- /dev/null +++ b/net/rubygem-packetgen/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1679498512 +SHA256 (rubygem/packetgen-3.2.2.gem) = 302b19b26ddf806956e4a3f0996140d4250f9f91f0526672553e3f591446e89f +SIZE (rubygem/packetgen-3.2.2.gem) = 109568 diff --git a/net/rubygem-packetgen/files/patch-gemspec b/net/rubygem-packetgen/files/patch-gemspec new file mode 100644 index 000000000000..88375b284bb4 --- /dev/null +++ b/net/rubygem-packetgen/files/patch-gemspec @@ -0,0 +1,11 @@ +--- packetgen.gemspec.orig 2023-03-23 11:32:52 UTC ++++ packetgen.gemspec +@@ -24,7 +24,7 @@ Gem::Specification.new do |s| + s.specification_version = 4 + + s.add_runtime_dependency(%q<interfacez>.freeze, ["~> 1.0"]) +- s.add_runtime_dependency(%q<pcaprub>.freeze, ["~> 0.12.0"]) ++ s.add_runtime_dependency(%q<pcaprub>.freeze, [">= 0.12.0"]) + s.add_runtime_dependency(%q<rasn1>.freeze, ["~> 0.8", ">= 0.8.0"]) + s.add_development_dependency(%q<rake>.freeze, ["~> 13.0"]) + s.add_development_dependency(%q<rspec>.freeze, ["~> 3.7"]) diff --git a/net/rubygem-packetgen/pkg-descr b/net/rubygem-packetgen/pkg-descr new file mode 100644 index 000000000000..a8f20810e841 --- /dev/null +++ b/net/rubygem-packetgen/pkg-descr @@ -0,0 +1 @@ +PacketGen provides simple ways to generate, send and capture network packets.