You are not logged in.

#1 2021-11-01 20:01:01

ABOhiccups
Member
Registered: 2017-08-27
Posts: 62

[REQUEST] WeVPN on Arch Linux?

Can anyone make an unofficial AUR Package of WeVPN for Arch Linux users while waiting until WeVPN release official Arch Linux Version in the future?

Here's a download link.
https://cloudfront.wevpn.com/assets/rel … -Linux.deb

Last edited by ABOhiccups (2021-11-01 22:11:43)

Offline

#2 2021-11-01 21:12:44

Morta
Member
Registered: 2019-07-07
Posts: 229

Re: [REQUEST] WeVPN on Arch Linux?

The downloadlink need a login. Plz post a direct link.
You can self build a PKGBUILD isn’t so hard if a source exists for compiling a binary

Offline

#3 2021-11-01 21:39:03

Ammako
Member
Registered: 2021-07-16
Posts: 266

Re: [REQUEST] WeVPN on Arch Linux?

I'm sorry, but a PKGBUILD using a discord link as a source would be very questionable at best.

If you'd like someone to consider this, I suggest going to their website and finding the download link for the program's source, or a pre-compiled binary for linux if the program is closed-source. People might be a lot more willing to help if you at least try to do the bare minimum.

Offline

#4 2021-11-01 21:49:25

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: [REQUEST] WeVPN on Arch Linux?

Not seeing a download link on https://wevpn.com/wevpn-linux Perhaps it is behind a subscriber only login?

Offline

#5 2021-11-01 22:12:33

ABOhiccups
Member
Registered: 2017-08-27
Posts: 62

Re: [REQUEST] WeVPN on Arch Linux?

Sorry about that! I copied the wrong link! Here's the real link to download Debian/Ubuntu Version of WeVPN.
https://cloudfront.wevpn.com/assets/rel … -Linux.deb

Offline

#6 2021-11-02 00:53:12

Ammako
Member
Registered: 2021-07-16
Posts: 266

Re: [REQUEST] WeVPN on Arch Linux?

For what it's worth, they already have logic for Arch support:

if [ -f "/etc/debian_version" ]; then
    # Debian/Ubuntu logic
    which systemctl &>/dev/null
    if [ $? -eq 0 ]; then
	install_systemd
    else
	# Assuming sysv
	install_init
	install_update_rcd
    fi
elif [ -f "/etc/os-release" ]; then
    source /etc/os-release
    if [ $ID = "arch" ]; then
    # Arch Linux
    install_systemd
    fi
else
    printf "Error: Distribution not verified \nContact WeVPN customer support for details. \n"
    exit 1
fi

Also, the package has no dependencies?

Does this work for you? Just repackaging the .deb into an arch package.
(Not installing nor running that on my own PC, sorry.)

pkgname=wevpn-bin
pkgver=0.3.0
pkgrel=1
pkgdesc="WeVPN Linux Application"
arch=('x86_64')
url="https://wevpn.com/wevpn-linux"
license=('unknown')

source=("https://cloudfront.wevpn.com/assets/releases/WeVPN-Linux.deb")
sha256sums=('2e897ee7c09010aa3ebe160066b1d8c90a833f3d50d20a33bbe2a99191cdfc7f')

prepare() {
    tar xf data.tar.xz
}

package() {
    mv etc/ "${pkgdir}"
    mv usr/ "${pkgdir}"
}

If it doesn't run, run it in terminal, and post what errors it's giving.

Last edited by Ammako (2021-11-02 00:59:09)

Offline

#7 2021-11-02 01:03:34

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: [REQUEST] WeVPN on Arch Linux?

@Ammako

error: failed to commit transaction (conflicting files)
wevpn-bin: /usr/sbin exists in filesystem (owned by filesystem)

Edit:
I think prepare can be skipped and package reduced to

    bsdtar xf data.tar.xz -C "$pkgdir" -s '/sbin/bin/' --no-same-owner

Last edited by loqs (2021-11-02 01:21:37)

Offline

#8 2021-11-02 01:47:25

Ammako
Member
Registered: 2021-07-16
Posts: 266

Re: [REQUEST] WeVPN on Arch Linux?

It complains about libGL.so.1, on headless VM. So clearly the control lied and there *are* dependencies. Fun. Also needs FUSE because this is an appimage, explicitly asks for fuse2 though.

Unfortunately this will not run as-is, I think the program is incompatible with glib 2.70 as with https://bbs.archlinux.org/viewtopic.php?id=269838

Would need extra steps to fix the AppImage, shouldn't be too difficult but I don't have time anymore tonight. Maybe someone else might be willing to do it in the meantime, otherwise that has to wait until tomorrow.

Edit: your way is much more elegant than the original PKGBUILD I made this from lol.

pkgname=wevpn-bin
pkgver=0.3.0
pkgrel=1
pkgdesc="WeVPN Linux Application"
arch=('x86_64')
url="https://wevpn.com/wevpn-linux"
license=('unknown')

depends=('fuse2')
options=('!emptydirs' '!strip')
source=("https://cloudfront.wevpn.com/assets/releases/WeVPN-Linux.deb")
sha256sums=('2e897ee7c09010aa3ebe160066b1d8c90a833f3d50d20a33bbe2a99191cdfc7f')

package() {
    bsdtar xf data.tar.xz -C "$pkgdir" -s '/sbin/bin/' --no-same-owner
}

Last edited by Ammako (2021-11-02 01:50:20)

Offline

#9 2021-11-02 05:53:00

ABOhiccups
Member
Registered: 2017-08-27
Posts: 62

Re: [REQUEST] WeVPN on Arch Linux?

wevpn: symbol lookup error: /usr/lib/libgio-2.0.so.0: undefined symbol: g_module_open_full

Offline

#10 2021-11-20 17:17:20

Twiki
Member
Registered: 2018-03-30
Posts: 23

Re: [REQUEST] WeVPN on Arch Linux?

If you have access to a Ubuntu or Mint or Debian VM, you could install the WeVPN app in the VM and then do "apt-cache depends package_name_here". Which will give you just the depends and recommends. If you want to find out much more (in addition) you could do "apt show package_name_here". Or without installation, you could do "dpkg -I path/to/deb_file/WeVPN-Linux.deb".

Last edited by Twiki (2021-11-20 17:19:20)


Bidi-bidi-bidi-bidi.

Offline

#11 2021-11-23 15:41:51

aliess
Member
Registered: 2021-11-23
Posts: 2

Re: [REQUEST] WeVPN on Arch Linux?

did anyone manage to package it ?

Twiki wrote:

If you have access to a Ubuntu or Mint or Debian VM, you could install the WeVPN app in the VM and then do "apt-cache depends package_name_here". Which will give you just the depends and recommends. If you want to find out much more (in addition) you could do "apt show package_name_here". Or without installation, you could do "dpkg -I path/to/deb_file/WeVPN-Linux.deb".

$ sudo dpkg-deb -I WeVPN-Linux.deb 
 new Debian package, version 2.0.
 size 63765824 bytes: control archive=1476 bytes.
     222 bytes,     9 lines      control              
    1176 bytes,    56 lines   *  postinst             #!/bin/bash
     482 bytes,    21 lines   *  postrm               #!/bin/bash
    2012 bytes,   100 lines   *  prerm                #!/bin/bash
 Package: wevpn
 Version: 0.3.0
 Section: utils
 Vendor: WeVPN
 Priority: Free WeVPN
 Architecture: amd64
 Maintainer: WeVPN Developers <[url]https://www.wevpn.com[/url]>
 Homepage: [url]https://www.wevpn.com[/url]
 Description: WeVPN Linux Application

Last edited by aliess (2021-11-23 16:01:22)

Offline

#12 2021-11-23 23:38:53

Twiki
Member
Registered: 2018-03-30
Posts: 23

Re: [REQUEST] WeVPN on Arch Linux?

aliess wrote:

did anyone manage to package it ?

Twiki wrote:

If you have access to a Ubuntu or Mint or Debian VM, you could install the WeVPN app in the VM and then do "apt-cache depends package_name_here". Which will give you just the depends and recommends. If you want to find out much more (in addition) you could do "apt show package_name_here". Or without installation, you could do "dpkg -I path/to/deb_file/WeVPN-Linux.deb".

$ sudo dpkg-deb -I WeVPN-Linux.deb 
 new Debian package, version 2.0.
 size 63765824 bytes: control archive=1476 bytes.
     222 bytes,     9 lines      control              
    1176 bytes,    56 lines   *  postinst             #!/bin/bash
     482 bytes,    21 lines   *  postrm               #!/bin/bash
    2012 bytes,   100 lines   *  prerm                #!/bin/bash
 Package: wevpn
 Version: 0.3.0
 Section: utils
 Vendor: WeVPN
 Priority: Free WeVPN
 Architecture: amd64
 Maintainer: WeVPN Developers <[url]https://www.wevpn.com[/url]>
 Homepage: [url]https://www.wevpn.com[/url]
 Description: WeVPN Linux Application

dpkg, not dpkg-deb. Then there will be a line starting with “Depends:”. wink


Bidi-bidi-bidi-bidi.

Offline

#13 2021-11-24 00:00:42

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: [REQUEST] WeVPN on Arch Linux?

@Twiki how will that information help?  See post #8.

Offline

#14 2021-11-24 07:59:21

Twiki
Member
Registered: 2018-03-30
Posts: 23

Re: [REQUEST] WeVPN on Arch Linux?

loqs wrote:

@Twiki how will that information help?  See post #8.

First step is to get all dependencies (if any, because apparently it’s an appimage). Then the link in the very same post #8 which you refer to, there is a solution to patch a different version of glib into the appimage.
These problems is why I always up a VPN from the command line.


Bidi-bidi-bidi-bidi.

Offline

#15 2021-11-24 08:00:23

aliess
Member
Registered: 2021-11-23
Posts: 2

Re: [REQUEST] WeVPN on Arch Linux?

Twiki wrote:
aliess wrote:

did anyone manage to package it ?

Twiki wrote:

If you have access to a Ubuntu or Mint or Debian VM, you could install the WeVPN app in the VM and then do "apt-cache depends package_name_here". Which will give you just the depends and recommends. If you want to find out much more (in addition) you could do "apt show package_name_here". Or without installation, you could do "dpkg -I path/to/deb_file/WeVPN-Linux.deb".

$ sudo dpkg-deb -I WeVPN-Linux.deb 
 new Debian package, version 2.0.
 size 63765824 bytes: control archive=1476 bytes.
     222 bytes,     9 lines      control              
    1176 bytes,    56 lines   *  postinst             #!/bin/bash
     482 bytes,    21 lines   *  postrm               #!/bin/bash
    2012 bytes,   100 lines   *  prerm                #!/bin/bash
 Package: wevpn
 Version: 0.3.0
 Section: utils
 Vendor: WeVPN
 Priority: Free WeVPN
 Architecture: amd64
 Maintainer: WeVPN Developers <[url]https://www.wevpn.com[/url]>
 Homepage: [url]https://www.wevpn.com[/url]
 Description: WeVPN Linux Application

dpkg, not dpkg-deb. Then there will be a line starting with “Depends:”. wink


I tried it with dpkg also and got the same output, maybe there's no dependencies ?

Offline

#16 2021-11-24 08:52:49

Twiki
Member
Registered: 2018-03-30
Posts: 23

Re: [REQUEST] WeVPN on Arch Linux?

aliess wrote:

I tried it with dpkg also and got the same output, maybe there's no dependencies ?

That’s why I opened with:

“First step is to get all dependencies (if any, because apparently it’s an appimage).“

”One app = one file
….. Every AppImage is a regular file, and every AppImage contains exactly one app with all its dependencies. Once the AppImage is made executable, a user can just run it, either by double clicking it in their desktop environment’s file manager, by running it from the console etc.”
Source:  https://docs.appimage.org/introduction/concepts.html

I can’t be sure. Because the OP (ABOhiccups) links to a .deb file. The helpful member (Ammako) writes: “ Would need extra steps to fix the AppImage, shouldn't be too difficult …..”. And I haven’t looked into the .deb file.

Last edited by Twiki (2021-11-24 08:55:31)


Bidi-bidi-bidi-bidi.

Offline

#17 2021-11-24 15:16:55

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: [REQUEST] WeVPN on Arch Linux?

Twiki wrote:

First step is to get all dependencies (if any, because apparently it’s an appimage)

control

Package: wevpn
Version: 0.3.0
Section: utils
Vendor: WeVPN
Priority: Free WeVPN
Architecture: amd64
Maintainer: WeVPN Developers <https://www.wevpn.com>
Homepage: https://www.wevpn.com
Description: WeVPN Linux Application
Ammako wrote:

It complains about libGL.so.1, on headless VM. So clearly the control lied and there *are* dependencies. Fun. Also needs FUSE because this is an appimage, explicitly asks for fuse2 though.

Last edited by loqs (2021-11-24 15:24:13)

Offline

Board footer

Powered by FluxBB