From: b-l-a-i-n-e <b-l-a-i-n-e@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New Package: ivpn-3.4.5
Date: Thu, 09 Dec 2021 07:00:03 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34435@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
There is a new pull request by b-l-a-i-n-e against master on the void-packages repository
https://github.com/b-l-a-i-n-e/void-packages ivpn
https://github.com/void-linux/void-packages/pull/34435
New Package: ivpn-3.4.5
#### Testing the changes
- I tested the changes in this PR: YES
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): YES
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
Based off of aur
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ivpn
A patch file from https://github.com/void-linux/void-packages/pull/34435.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ivpn-34435.patch --]
[-- Type: text/x-diff, Size: 3528 bytes --]
From cff7cf55c0e25957d449f8b7dd97846817837930 Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Wed, 8 Dec 2021 21:43:37 -0800
Subject: [PATCH] New Package: ivpn-3.4.5
---
srcpkgs/ivpn/INSTALL.msg | 3 ++
srcpkgs/ivpn/files/ivpn-service/run | 3 ++
srcpkgs/ivpn/template | 65 +++++++++++++++++++++++++++++
3 files changed, 71 insertions(+)
create mode 100644 srcpkgs/ivpn/INSTALL.msg
create mode 100644 srcpkgs/ivpn/files/ivpn-service/run
create mode 100644 srcpkgs/ivpn/template
diff --git a/srcpkgs/ivpn/INSTALL.msg b/srcpkgs/ivpn/INSTALL.msg
new file mode 100644
index 000000000000..b472111c53ec
--- /dev/null
+++ b/srcpkgs/ivpn/INSTALL.msg
@@ -0,0 +1,3 @@
+Start ivpn-service:
+
+ $ sudo ln -s /etc/sv/ivpn-service /var/service/
diff --git a/srcpkgs/ivpn/files/ivpn-service/run b/srcpkgs/ivpn/files/ivpn-service/run
new file mode 100644
index 000000000000..82ec06923576
--- /dev/null
+++ b/srcpkgs/ivpn/files/ivpn-service/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec ivpn-service $OPTS
diff --git a/srcpkgs/ivpn/template b/srcpkgs/ivpn/template
new file mode 100644
index 000000000000..f6a1c9ee3787
--- /dev/null
+++ b/srcpkgs/ivpn/template
@@ -0,0 +1,65 @@
+# Template file for 'ivpn'
+pkgname=ivpn
+version=3.4.5
+revision=1
+_ivpndir="desktop-app-${version}"
+archs="x86_64"
+create_wrksrc=yes
+hostmakedepends="curl w3m libcurl git go wireless_tools-devel"
+depends="openvpn wireless_tools glibc lsof"
+short_desc="IVPN Command Line Interface"
+maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
+license="custom:Proprietary"
+homepage="https://www.ivpn.net"
+distfiles="https://github.com/ivpn/desktop-app/archive/v${version}.tar.gz"
+checksum=e6837cb653dc9089afa50281bc11df5da99da0b6edd597220f50646db0c8cccd
+_license_checksum=92fd1c283e604a160a9dd3ef3d030fae302bc49c6f8c62c27e3dff358ecb2d9d
+repository=nonfree
+restricted=yes
+ostrip=yes
+nopie=yes
+
+post_extract() {
+ curl -L https://raw.githubusercontent.com/ivpn/ivpn.net/main/src/content/pages/terms-of-service.md > EULA
+ filesum="$(xbps-digest EULA)"
+ if [ "$filesum" != "$_license_checksum" ]; then
+ msg_error "SHA256 mismatch for EULA:\n$filesum\n"
+ fi
+}
+
+do_build() {
+ (cd "${_ivpndir}/daemon" && \
+ ./References/Linux/scripts/build-all.sh -v "${pkgver}" -c "${pkgver}_stamped")
+
+ (cd "${_ivpndir}/cli" && \
+ ./References/Linux/compile-cli.sh -v "${pkgver}" -c "${pkgver}_stamped")
+}
+
+do_install() {
+ local daemonlinuxdir="${_ivpndir}/daemon/References/Linux"
+ local clilinuxdir="${_ivpndir}/cli/References/Linux"
+
+ vmkdir usr/bin
+ vinstall "${daemonlinuxdir}/scripts/_out_bin/ivpn-service" 755 usr/bin
+ vinstall "${clilinuxdir}/_out_bin/ivpn" 755 usr/bin
+
+ vmkdir opt/ivpn
+ vmkdir opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/client.down" 700 opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/client.up" 700 opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/firewall.sh" 700 opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/servers.json" 600 opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/ca.crt" 400 opt/ivpn/etc
+ vinstall "${daemonlinuxdir}/etc/ta.key" 400 opt/ivpn/etc
+
+ vmkdir opt/ivpn/wireguard-tools
+ vinstall "${daemonlinuxdir}/_deps/wireguard-tools_inst/wg-quick" 755 opt/ivpn/wireguard-tools
+ vinstall "${daemonlinuxdir}/_deps/wireguard-tools_inst/wg" 755 opt/ivpn/wireguard-tools
+
+ vmkdir opt/ivpn/obfsproxy
+ vinstall "${daemonlinuxdir}/_deps/obfs4proxy_inst/obfs4proxy" 755 opt/ivpn/obfsproxy
+
+ vsv ivpn-service
+
+ vlicense EULA
+}
next reply other threads:[~2021-12-09 6:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 6:00 b-l-a-i-n-e [this message]
2021-12-12 17:53 ` [PR REVIEW] " NeelChotai
2021-12-12 17:58 ` NeelChotai
2021-12-13 3:44 ` b-l-a-i-n-e
2021-12-13 3:55 ` b-l-a-i-n-e
2021-12-13 4:07 ` [PR PATCH] [Updated] " b-l-a-i-n-e
2021-12-13 4:08 ` b-l-a-i-n-e
2021-12-14 2:50 ` NeelChotai
2021-12-14 2:50 ` NeelChotai
2021-12-14 2:50 ` NeelChotai
2022-02-01 16:58 ` b-l-a-i-n-e
2022-02-01 16:58 ` [PR PATCH] [Closed]: " b-l-a-i-n-e
2023-02-24 14:01 ` niels0n
2023-02-24 16:33 ` b-l-a-i-n-e
2023-02-24 16:48 ` niels0n
2023-02-24 17:10 ` b-l-a-i-n-e
2023-02-24 17:35 ` b-l-a-i-n-e
2023-02-24 18:42 ` niels0n
2023-02-24 18:47 ` niels0n
2023-02-26 8:59 ` niels0n
2023-02-26 8:59 ` niels0n
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34435@inbox.vuxu.org \
--to=b-l-a-i-n-e@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).