svn commit: r513952 - in head/security/protonvpn-cli: . files
Steve Wills
swills at FreeBSD.org
Mon Oct 7 14:48:43 UTC 2019
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 at 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 at 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
+
More information about the svn-ports-head
mailing list