Package Details: airvpn-suite 1.3.0-3

Git Clone URL: https://aur.archlinux.org/airvpn-suite.git (read-only, click to copy)
Package Base: airvpn-suite
Description: AirVPN client software collection – stable
Upstream URL: https://gitlab.com/AirVPN/AirVPN-Suite
Keywords: airvpn openvpn vpn
Licenses: GPL3
Conflicts: airvpn-suite-beta-bin, airvpn-suite-bin, hummingbird, hummingbird-bin
Provides: airvpn-suite-beta-bin, airvpn-suite-bin, hummingbird, hummingbird-bin
Submitter: opensorcerer
Maintainer: opensorcerer
Last Packager: opensorcerer
Votes: 1
Popularity: 0.000000
First Submitted: 2021-04-17 15:57 (UTC)
Last Updated: 2024-11-29 22:35 (UTC)

Latest Comments

« First ‹ Previous 1 2

zebulon commented on 2024-05-24 11:14 (UTC)

@patlefort, ok, but the gitlab head is 2.0.0 beta in development then?

patlefort commented on 2024-05-24 11:07 (UTC)

@zebulon: It does have stable releases but they aren't tagged in their repo.

patlefort commented on 2024-05-24 11:05 (UTC)

I managed to make it compile. Patch:

diff --git a/.SRCINFO b/.SRCINFO
index bd6aa23..10cbc4a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = airvpn-suite
    pkgdesc = AirVPN client software collection – stable
    pkgver = 1.3.0
-   pkgrel = 2
+   pkgrel = 3
    url = https://gitlab.com/AirVPN/AirVPN-Suite
    install = airvpn-suite.install
    changelog = Changelog-Suite.txt
@@ -10,6 +10,7 @@ pkgbase = airvpn-suite
    makedepends = git
    makedepends = wget
    makedepends = wireguard-tools
+   makedepends = asio
    depends = dbus
    depends = libxml2
    depends = crypto++
@@ -30,9 +31,9 @@ pkgbase = airvpn-suite
    conflicts = airvpn-suite-bin
    conflicts = airvpn-suite-beta-bin
    backup = etc/airvpn/bluetit.rc
-   source = git+https://gitlab.com/AirVPN/AirVPN-Suite.git#commit=ef5ce5ad8fff24f3476f3a072f44d31a5cd1d3fc
-   source = openvpn3-airvpn-source::git+https://github.com/AirVPN/openvpn3-airvpn.git
-   sha256sums = c7c823d7bb813ac384cd8feb2854bff37c03c295b3a0ed2835ac21c46485b1ff
-   sha256sums = SKIP
+   source = git+https://gitlab.com/AirVPN/AirVPN-Suite.git#commit=fe687caac118868fef18bdbb17e365eb7db45cb6
+   source = git+https://github.com/AirVPN/openvpn3-airvpn.git#commit=63f028de99548f2ed9d61bc9fb908c6fec6326d4
+   sha256sums = fd2e0ddfca070bd08a04dfccbbc4bdef5abb5124f5947da5a9104f4a4b48c18f
+   sha256sums = cdadf843ac5950a6b652f38b58b10b9adffbd821356227ee97ea29c085f604f0

 pkgname = airvpn-suite
diff --git a/PKGBUILD b/PKGBUILD
index 1a550d8..44d5495 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,9 @@
 pkgname=airvpn-suite
 _pkgname=AirVPN-Suite
 pkgver=1.3.0
-pkgrel=2
-_commit="ef5ce5ad8fff24f3476f3a072f44d31a5cd1d3fc"
+pkgrel=3
+_commit_suite="fe687caac118868fef18bdbb17e365eb7db45cb6"
+_commit_openvpn='63f028de99548f2ed9d61bc9fb908c6fec6326d4'
 pkgdesc="AirVPN client software collection – stable"
 arch=('x86_64')
 url="https://gitlab.com/AirVPN/$_pkgname"
@@ -11,34 +12,25 @@ license=('GPL3')
 provides=('hummingbird' 'hummingbird-bin' 'airvpn-suite-bin' 'airvpn-suite-beta-bin')
 conflicts=('hummingbird' 'hummingbird-bin' 'airvpn-suite-bin' 'airvpn-suite-beta-bin')
 depends=('dbus' 'libxml2' 'crypto++' 'curl' 'zlib' 'lz4' 'openssl' 'zstd' 'xz' 'glibc' 'gcc-libs')
-makedepends=('git' 'wget' 'wireguard-tools')
+makedepends=('git' 'wget' 'wireguard-tools' 'asio')
 source=(
-    "git+$url.git#commit=$_commit"
-    'openvpn3-airvpn-source::git+https://github.com/AirVPN/openvpn3-airvpn.git')
-sha256sums=('c7c823d7bb813ac384cd8feb2854bff37c03c295b3a0ed2835ac21c46485b1ff'
-            'SKIP')
+    "git+$url.git#commit=$_commit_suite"
+    "git+https://github.com/AirVPN/openvpn3-airvpn.git#commit=$_commit_openvpn")
+sha256sums=('fd2e0ddfca070bd08a04dfccbbc4bdef5abb5124f5947da5a9104f4a4b48c18f'
+            'cdadf843ac5950a6b652f38b58b10b9adffbd821356227ee97ea29c085f604f0')
 backup=('etc/airvpn/bluetit.rc')
 install="$pkgname.install"
 changelog="Changelog-Suite.txt"

-build() {
-    # set vars needed by original OpenVPN3 build scripts
-    export O3="$srcdir/O3" && mkdir "$O3"
-    export DEP_DIR="$O3/deps" && mkdir "$DEP_DIR"
-    export DL="$O3/dl" && mkdir "$DL"
-    cd "$O3"
-
-    # build OpenVPN3 core
-    ln -sf "$srcdir/openvpn3-airvpn-source" 'core'
-    cd core/scripts/linux
-    ./build-all
-
-    # move directories around for the suite build scripts
-    rm -rf "$srcdir/openvpn3-airvpn" && mv "$O3/core" "$srcdir/openvpn3-airvpn"
-    rm -rf "$srcdir/asio" && mv "$O3/deps/asio" "$srcdir"
+prepare() {
+    sed -i 's|-I${ASIO}/asio/include||' "$_pkgname/build-hummingbird.sh" "$_pkgname/build-bluetit.sh"
+    sed -i 's|-DASIO_STANDALONE|${CXXFLAGS} ${LDFLAGS} -Wno-error=format-security|' "$_pkgname/build-hummingbird.sh" "$_pkgname/build-bluetit.sh"
+    sed -i 's|-Wno-shift-count-overflow|-Wno-shift-count-overflow ${CXXFLAGS} ${LDFLAGS} -Wno-error=format-security|' "$_pkgname/build-goldcrest.sh"
+}

+build() {
     # build the suite
-    cd "$_pkgname"
+    cd "$srcdir/$_pkgname"
     mkdir obj
     cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.? src/
     cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.h src/include/

It won't need to download and compile dependencies anymore. Also, it will use flags from your makepkg.conf. I've locked the version for openvpn to the version needed for the suite.

zebulon commented on 2024-05-24 09:08 (UTC) (edited on 2024-05-24 09:32 (UTC) by zebulon)

I just had an answer from the devs at https://airvpn.org/forums/topic/56704-linux-airvpn-suite-200-beta-available/?do=findComment&comment=233437

mbedTLS does not support x509. It's not needed by the Suite but maybe the linker enters the error state anyway, or maybe the mbedTLS libraries and include files are misaligned in your system. Can you please try with OpenSSL (which is the default setting)? Please set SSL_LIB_TYPE variable to OPENSSL: 

SSL_LIB_TYPE=OPENSSL

in the following scripts: https://gitlab.com/AirVPN/AirVPN-Suite/-/blob/master/build-bluetit.sh?ref_type=heads https://gitlab.com/AirVPN/AirVPN-Suite/-/blob/master/build-bluetit-static.sh?ref_type=heads

Edit: this is already set in the aforementioned scripts. I will develop in the AirVPN forums.

zebulon commented on 2024-05-23 13:27 (UTC) (edited on 2024-05-23 13:28 (UTC) by zebulon)

Hi opensorcerer: many thanks for maintaining the package. Yes I have the same issue with the failing test suite. Their gitlab was only updated last time on June 2023. I will see if I can find infos on their forums. Also, may I suggest: normally a package built from a git repo should be named with the -git suffix. Although I am not sure there are stable releases for the suite.

opensorcerer commented on 2024-05-20 19:18 (UTC)

Same error for me. There are issues about it upstream but they explicitly reference mbedtls which this pkgbase does not depend on. Not quite sure what's wrong here; open for any hints.

Good patch. Now that I think about it, it makes more sense having the OVPN3 source as an actual source. Thank you very much!

patlefort commented on 2024-05-19 09:13 (UTC)

A test is failing: test_suite_x509parse .............................................. FAIL.

Also, here's a patch to move the OpenVPN source to the source array:

diff --git a/PKGBUILD b/PKGBUILD
index 8908166..5253ddf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,8 +12,11 @@ provides=('hummingbird' 'hummingbird-bin' 'airvpn-suite-bin' 'airvpn-suite-beta-
 conflicts=('hummingbird' 'hummingbird-bin' 'airvpn-suite-bin' 'airvpn-suite-beta-bin')
 depends=('dbus' 'libxml2' 'crypto++' 'curl' 'zlib' 'lz4' 'openssl' 'zstd' 'xz' 'glibc' 'gcc-libs')
 makedepends=('git' 'wget' 'wireguard-tools')
-source=("git+$url.git#commit=$_commit")
-sha256sums=('SKIP')
+source=(
+    "git+$url.git#commit=$_commit"
+    'openvpn3-airvpn-source::git+https://github.com/AirVPN/openvpn3-airvpn.git')
+sha256sums=('c7c823d7bb813ac384cd8feb2854bff37c03c295b3a0ed2835ac21c46485b1ff'
+            'SKIP')
 backup=('etc/airvpn/bluetit.rc')
 install="$pkgname.install"
 changelog="Changelog-Suite.txt"
@@ -25,15 +28,14 @@ build() {
     export DL="$O3/dl" && mkdir "$DL"
     cd "$O3"

-    # clone and build OpenVPN3 core
-    git clone https://github.com/AirVPN/openvpn3-airvpn.git core
+    # build OpenVPN3 core
+    ln -sf "$srcdir/openvpn3-airvpn-source" 'core'
     cd core/scripts/linux
     ./build-all

     # move directories around for the suite build scripts
-    cd "$srcdir"
-    mv "$O3/core" "$srcdir/openvpn3-airvpn"
-    mv "$O3/deps/asio" "$srcdir"
+    rm -rf "$srcdir/openvpn3-airvpn" && mv "$O3/core" "$srcdir/openvpn3-airvpn"
+    rm -rf "$srcdir/asio" && mv "$O3/deps/asio" "$srcdir"

     # build the suite
     cd "$_pkgname"

opensorcerer commented on 2021-10-11 18:28 (UTC)

Thank you, will add it shortly.

nermur commented on 2021-10-11 18:14 (UTC) (edited on 2021-10-11 18:43 (UTC) by nermur)

wget should be added as a dependency

airvpn-suite/src/O3/core/deps/functions.sh: line 23: wget: command not found