Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 14:48:42 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r513952 - in head/security/protonvpn-cli: . files
Message-ID:  <201910071448.x97EmgwJ081732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Oct  7 14:48:42 2019
New Revision: 513952
URL: https://svnweb.freebsd.org/changeset/ports/513952

Log:
  security/protonvpn-cli: fixes issue with certs and issue with countries
  
  PR:		241103
  Submitted by:	Lorenzo Salvadore <phascolarctos@protonmail.ch> (maintainer)

Modified:
  head/security/protonvpn-cli/Makefile   (contents, props changed)
  head/security/protonvpn-cli/files/patch-protonvpn-cli.sh   (contents, props changed)

Modified: head/security/protonvpn-cli/Makefile
==============================================================================
--- head/security/protonvpn-cli/Makefile	Mon Oct  7 14:26:41 2019	(r513951)
+++ head/security/protonvpn-cli/Makefile	Mon Oct  7 14:48:42 2019	(r513952)
@@ -3,6 +3,7 @@
 PORTNAME=	protonvpn-cli
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.1.2
+PORTREVISION=	1
 CATEGORIES=	security net net-vpn
 
 MAINTAINER=	phascolarctos@protonmail.ch
@@ -16,7 +17,8 @@ LICENSE_DISTFILES_GPLv3=	${DISTFILES:M*scripts*}
 
 RUN_DEPENDS=	bash:shells/bash \
 		openvpn:security/openvpn \
-		wget:ftp/wget
+		wget:ftp/wget \
+		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 
 USES=		python
 
@@ -34,7 +36,7 @@ PLIST_FILES=	bin/protonvpn-cli \
 
 post-patch:
 	${REINPLACE_CMD} s,\$$python,${PYTHON_CMD},g ${WRKSRC}/protonvpn-cli.sh
-	${REINPLACE_CMD} s,wget,wget\ --no-check-certificate,g ${WRKSRC}/protonvpn-cli.sh
+	${REINPLACE_CMD} s,wget,wget\ --ca-certificate\ ${LOCALBASE}/share/certs/ca-root-nss.crt,g ${WRKSRC}/protonvpn-cli.sh
 	${REINPLACE_CMD} s,%%LOCALBASE%%,${LOCALBASE},g ${WRKSRC}/protonvpn-cli.sh
 
 do-install:

Modified: head/security/protonvpn-cli/files/patch-protonvpn-cli.sh
==============================================================================
--- head/security/protonvpn-cli/files/patch-protonvpn-cli.sh	Mon Oct  7 14:26:41 2019	(r513951)
+++ head/security/protonvpn-cli/files/patch-protonvpn-cli.sh	Mon Oct  7 14:48:42 2019	(r513952)
@@ -229,10 +229,10 @@
 +  then
 +    if [[ $1 -eq 1 ]]
 +    then
-+      country_id=6
++      country_id=9
 +    elif [[ $1 -eq 2 ]]
 +    then
-+      country_id=7
++      country_id=6
 +    fi
 +  fi
 +



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910071448.x97EmgwJ081732>