git: ff4d0ccb61b8 - main - net/foreman-proxy: update 3.0.1 -> 3.1.2

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Sat, 23 Apr 2022 19:39:05 UTC
The branch main has been updated by nc:

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

commit ff4d0ccb61b80dd846ba697f6cd30ecbfc167c4e
Author:     Jason Unovitch <junovitch@FreeBSD.org>
AuthorDate: 2022-03-05 02:44:40 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-04-23 19:39:03 +0000

    net/foreman-proxy: update 3.0.1 -> 3.1.2
    
    Changes:        https://github.com/theforeman/smart-proxy/compare/3.0.1...3.1.2
    PR:             263431
---
 net/foreman-proxy/Makefile                           |  4 ++--
 net/foreman-proxy/distinfo                           |  6 +++---
 .../files/patch-lib_proxy_http__download.rb          | 20 ++++++++++----------
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/net/foreman-proxy/Makefile b/net/foreman-proxy/Makefile
index ae59b63a4742..0316527149ab 100644
--- a/net/foreman-proxy/Makefile
+++ b/net/foreman-proxy/Makefile
@@ -1,7 +1,7 @@
 # Created by: Martin Matuska <mm@FreeBSD.org>
 
 PORTNAME=	foreman-proxy
-PORTVERSION=	3.0.1
+PORTVERSION=	3.1.2
 CATEGORIES=	net
 MASTER_SITES=	https://downloads.theforeman.org/foreman-proxy/
 
@@ -20,7 +20,7 @@ RUN_DEPENDS=	rubygem-bundler_ext>=0.4:sysutils/rubygem-bundler_ext \
 		rubygem-rsec>=0.4.3:devel/rubygem-rsec \
 		rubygem-sd_notify>=0.1.1:devel/rubygem-sd_notify \
 		rubygem-sinatra>=2.0:www/rubygem-sinatra \
-		wget:ftp/wget
+		curl:ftp/curl
 
 USES=		shebangfix tar:bzip2
 
diff --git a/net/foreman-proxy/distinfo b/net/foreman-proxy/distinfo
index c5ddc1247fdb..ffa4444487b8 100644
--- a/net/foreman-proxy/distinfo
+++ b/net/foreman-proxy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643073442
-SHA256 (foreman-proxy-3.0.1.tar.bz2) = 9941ed09638d8e6baeef23f4ec99200a95743ea02bb639c8f5d715f3dfcc8d2d
-SIZE (foreman-proxy-3.0.1.tar.bz2) = 199109
+TIMESTAMP = 1646448265
+SHA256 (foreman-proxy-3.1.2.tar.bz2) = 14a21af2e735e266f5e22ec64e4597bf4821b53fb7a2393a5146587f1400a1eb
+SIZE (foreman-proxy-3.1.2.tar.bz2) = 199897
diff --git a/net/foreman-proxy/files/patch-lib_proxy_http__download.rb b/net/foreman-proxy/files/patch-lib_proxy_http__download.rb
index 4f2459957b86..030c87085c8e 100644
--- a/net/foreman-proxy/files/patch-lib_proxy_http__download.rb
+++ b/net/foreman-proxy/files/patch-lib_proxy_http__download.rb
@@ -1,11 +1,11 @@
---- lib/proxy/http_download.rb.orig     2021-10-26 14:48:17.000000000 +0200
-+++ lib/proxy/http_download.rb  2021-11-24 12:24:12.924526000 +0100
-@@ -9,7 +9,7 @@
+--- lib/proxy/http_download.rb.orig	2022-02-16 01:16:26 UTC
++++ lib/proxy/http_download.rb
+@@ -10,7 +10,7 @@ module Proxy
+       logger.warn('Deprecated: HttpDownload read_timeout is deprecated and will be removed in 4.0') if read_timeout
+       logger.warn('Deprecated: HttpDownload dns_timeout is deprecated and will be removed in 4.0') if dns_timeout
+       connect_timeout ||= DEFAULT_CONNECT_TIMEOUT
+-      args = [which('curl')]
++      args = ["%%LOCALBASE%%/bin/curl"]
  
-     def initialize(src, dst, read_timeout = nil, connect_timeout = nil, dns_timeout = nil, verify_server_cert = false)
-       @dst = dst
--      wget = which("wget")
-+      wget = "%%LOCALBASE%%/bin/wget"
-       read_timeout ||= DEFAULT_READ_TIMEOUT
-       dns_timeout ||= DEFAULT_CONNECT_TIMEOUT
-       connect_timeout ||= DEFAULT_DNS_TIMEOUT
+       # no cert verification if set
+       args << "--insecure" unless verify_server_cert