git: 6a4499516682 - main - security/metasploit: Fix crash at start

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Fri, 03 May 2024 15:31:36 UTC
The branch main has been updated by salvadore:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6a4499516682ad70be53b7ed6d37c5502caa4f87

commit 6a4499516682ad70be53b7ed6d37c5502caa4f87
Author:     Tanawts <tanawts@gmail.com>
AuthorDate: 2024-05-03 15:24:58 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-05-03 15:31:33 +0000

    security/metasploit: Fix crash at start
    
    Fix crash at start due to issues with dependencies:
    
    Could not find compatible versions
    
    Because every version of sinatra depends on rack >= 3.0.0, < 4
      and every version of thin depends on rack >= 1, < 3,
      every version of sinatra is incompatible with thin >= 0.
    And because every version of metasploit-framework depends on thin >= 0,
      every version of sinatra is incompatible with metasploit-framework >= 0.
    So, because every version of metasploit-framework depends on sinatra >= 0
      and Gemfile depends on metasploit-framework >= 0,
      version solving has failed.
    
    PR:             278534
    Reported by:    d0wq92 <dimoj30024@picdv.com>
---
 security/metasploit/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/security/metasploit/Makefile b/security/metasploit/Makefile
index fc5c61e4aaaa..e9d16fc77fce 100644
--- a/security/metasploit/Makefile
+++ b/security/metasploit/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	metasploit
 DISTVERSION=	6.3.50
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	security
 
 MAINTAINER=	tanawts@gmail.com
@@ -47,6 +47,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
 		rubygem-metasploit-payloads>=2.0.161:security/rubygem-metasploit-payloads \
 		rubygem-metasploit_data_models>=0:security/rubygem-metasploit_data_models \
 		rubygem-metasploit_payloads-mettle>=1.0.26:security/rubygem-metasploit_payloads-mettle \
+		rubygem-mini_portile2>=2.8.2:devel/rubygem-mini_portile2 \
 		rubygem-mqtt>=0:net/rubygem-mqtt \
 		rubygem-msgpack>=0:devel/rubygem-msgpack \
 		rubygem-nessus_rest>=0:security/rubygem-nessus_rest \
@@ -93,7 +94,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
 		rubygem-ruby_smb>=0:net/rubygem-ruby_smb \
 		rubygem-rubyntlm>=0:net/rubygem-rubyntlm \
 		rubygem-rubyzip>=0:archivers/rubygem-rubyzip \
-		rubygem-sinatra>=0:www/rubygem-sinatra \
+		rubygem-sinatra2>=0:www/rubygem-sinatra2 \
 		rubygem-sqlite3>=0:databases/rubygem-sqlite3 \
 		rubygem-sshkey>=0:security/rubygem-sshkey \
 		rubygem-swagger-blocks>=0:devel/rubygem-swagger-blocks \