View | Details | Raw Unified | Return to bug 241103
Collapse All | Expand All

(-)Makefile (-2 / +4 lines)
Lines 3-8 Link Here
3
PORTNAME=	protonvpn-cli
3
PORTNAME=	protonvpn-cli
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	1.1.2
5
DISTVERSION=	1.1.2
6
PORTREVISION=	1
6
CATEGORIES=	security net net-vpn
7
CATEGORIES=	security net net-vpn
7
8
8
MAINTAINER=	phascolarctos@protonmail.ch
9
MAINTAINER=	phascolarctos@protonmail.ch
Lines 16-22 Link Here
16
17
17
RUN_DEPENDS=	bash:shells/bash \
18
RUN_DEPENDS=	bash:shells/bash \
18
		openvpn:security/openvpn \
19
		openvpn:security/openvpn \
19
		wget:ftp/wget
20
		wget:ftp/wget \
21
		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
20
22
21
USES=		python
23
USES=		python
22
24
Lines 34-40 Link Here
34
36
35
post-patch:
37
post-patch:
36
	${REINPLACE_CMD} s,\$$python,${PYTHON_CMD},g ${WRKSRC}/protonvpn-cli.sh
38
	${REINPLACE_CMD} s,\$$python,${PYTHON_CMD},g ${WRKSRC}/protonvpn-cli.sh
37
	${REINPLACE_CMD} s,wget,wget\ --no-check-certificate,g ${WRKSRC}/protonvpn-cli.sh
39
	${REINPLACE_CMD} s,wget,wget\ --ca-certificate\ ${LOCALBASE}/share/certs/ca-root-nss.crt,g ${WRKSRC}/protonvpn-cli.sh
38
	${REINPLACE_CMD} s,%%LOCALBASE%%,${LOCALBASE},g ${WRKSRC}/protonvpn-cli.sh
40
	${REINPLACE_CMD} s,%%LOCALBASE%%,${LOCALBASE},g ${WRKSRC}/protonvpn-cli.sh
39
41
40
do-install:
42
do-install:
(-)files/patch-protonvpn-cli.sh (-2 / +2 lines)
Lines 229-238 Link Here
229
+  then
229
+  then
230
+    if [[ $1 -eq 1 ]]
230
+    if [[ $1 -eq 1 ]]
231
+    then
231
+    then
232
+      country_id=6
232
+      country_id=9
233
+    elif [[ $1 -eq 2 ]]
233
+    elif [[ $1 -eq 2 ]]
234
+    then
234
+    then
235
+      country_id=7
235
+      country_id=6
236
+    fi
236
+    fi
237
+  fi
237
+  fi
238
+
238
+

Return to bug 241103