Package Details: airvpn-suite 1.3.0-2

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: 2
Popularity: 0.000000
First Submitted: 2021-04-17 15:57 (UTC)
Last Updated: 2024-05-20 19:21 (UTC)

Latest Comments

1 2 Next › Last »

zebulon commented on 2024-06-10 20:31 (UTC)

Hi@patlefort: many thanks, your patch worked like a charm. The .SRCINFO patching failed though, but it is not required for the compilation - PKGBUILD file was successfully patched, and lead to a successful compilation.

patlefort commented on 2024-05-24 12:30 (UTC)

Revised patch for the latest commit for the suite:

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..e367fcc 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="1c47cac6218b5268769038a54c2a60474f74e58d"
+_commit_openvpn='63f028de99548f2ed9d61bc9fb908c6fec6326d4'
 pkgdesc="AirVPN client software collection – stable"
 arch=('x86_64')
 url="https://gitlab.com/AirVPN/$_pkgname"
@@ -11,36 +12,27 @@ 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=('933e0cf26da5dd394b1179a775899e974c74ff9711c26ff095b1f7aaa9384586'
+            '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"
-    mkdir obj
-    cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.? src/
+    cd "$srcdir/$_pkgname"
+    mkdir -p obj
+    gcc $CFLAGS -c /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.c -o obj/wireguard.o
     cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.h src/include/
     ./build-bluetit.sh
     ./build-goldcrest.sh

This version expect to have a wireguard.o available.

zebulon commented on 2024-05-24 12:19 (UTC)

@opensorcerer: ok, thanks.

opensorcerer commented on 2024-05-24 11:47 (UTC) (edited on 2024-05-24 11:49 (UTC) by opensorcerer)

-_commit="ef5ce5ad8fff24f3476f3a072f44d31a5cd1d3fc"
+_commit_suite="fe687caac118868fef18bdbb17e365eb7db45cb6"

_commit != _commit_suite in your diff, that's why I asked. :D if you're going to change _commit_suite, use the newest 1c47cac6. :)

Other than that, will test the patch tomorrow and merge then. Thank you very much for your work, it is appreciated.

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

Actually no, it should keep the same as before.

My patch remove _commit and add _commit_suite and _commit_openvpn. You can change _commit_suite back to ef5ce5ad8fff24f3476f3a072f44d31a5cd1d3fc.

opensorcerer commented on 2024-05-24 11:34 (UTC) (edited on 2024-05-24 11:37 (UTC) by opensorcerer)

@zebulon Don't bother. I tried it twice already. Reason will be something along the lines of "just because the stable is open doesn't mean the beta must be, too".

@patlefort Is there a particular reason your patch is touching _commit, as in, pulling an older commit? Seems unnecessary to me. Also, with the introduction of _commit_source and _openvpn _commit became unused, and a candidate for removal.

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

Oh you are right. This is weird, Airvpn are known for their openness and tools. I will enquire.

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

It doesn't seem like it, last commit is from almost a year ago. I don't know if their beta is open sourced.

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.