AUR package

8vn5acnmf5

Junior Member
Have fun, I'll try to update if needed


Bash:
# Maintainer: 8vn5acnmf5
pkgname=perfect-privacy-vpn
pkgver=1.3.14
pkgrel=1
pkgdesc='perfect privacy client'
arch=('x86_64')
license=('custom')
url='https://www.perfect-privacy.com'
depends=('openvpn' 'python2-requests' 'python2-blinker' 'python2-gobject' 'polkit' 'gtk3' 'pango' 'glib2' 'gdk-pixbuf2' 'libappindicator-gtk3' 'python2')
optdepends=('resolvconf')

source=('https://www.perfect-privacy.com/downloads/perfect-privacy-vpn.deb')
sha256sums=('bded6f5aef6102d5a6592a47656b7c74d5c708cf71f56be998084dc14a068b63')

package() {
    tar -xf data.tar.xz -C "${pkgdir}"
    
    # not needed
    rm -rf "${pkgdir}/etc"
    
    # fix polkit policy
    sed -i '15s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
    sed -i '16s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy

    # use python2
    sed -i ' 1 s/.*/&2/' ${pkgdir}/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn
}
 

helium

New Member
Perfect, thank you for that 👏! After a 'makepkg -si' the client seems to have been installed alright.

Nevertheless - unfortunately it won't launch, at least not for me using XFCE :confused:.
 

8vn5acnmf5

Junior Member
Perfect, thank you for that 👏! After a 'makepkg -si' the client seems to have been installed alright.

Nevertheless - unfortunately it won't launch, at least not for me using XFCE :confused:.
What's the output when running "sudo perfect-privacy-vpn" from the terminal?
 

helium

New Member
First it was missing 'blinker', although 'python2-blinker' is installed. I additionally installed 'python-blinker', so now the output is:
File "/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn", line 44, in <module>
import perfect_privacy_vpn
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn/__init__.py", line 30, in <module>
from perfect_privacy_vpn import PerfectPrivacyVpnWindow
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn/PerfectPrivacyVpnWindow.py", line 21, in <module>
from perfect_privacy_vpn_lib.helpers import get_media_file
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn_lib/__init__.py", line 25, in <module>
from . core import Core
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn_lib/core.py", line 21, in <module>
from perfect_privacy_api import UserApiAsync
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_api/__init__.py", line 23, in <module>
from . userapi.userapi_async import UserApiAsync
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_api/userapi/userapi_async.py", line 20, in <module>
from userapi import UserApi
ModuleNotFoundError: No module named 'userapi'

Don't know what to do with that now.
 

8vn5acnmf5

Junior Member
First it was missing 'blinker', although 'python2-blinker' is installed. I additionally installed 'python-blinker', so now the output is:


Don't know what to do with that now.
Seems like the VPN manager is executed via python3 not python2, the shebang is supposed to be #!/usr/bin/python2 in
/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn
Should normally be done by the PKGBUILD.
 

helium

New Member
Changing the shebang did the trick 😊!
Apart from missing status icons and that it won't minimize to tray, everything else seems to be working fine 👍
 

wellywu

Freshly Joined Member
I am using Manjaro 20.1 64-bit "Mikah" GNU/Linux on my late 2019 Computer Upgrade King Hewlett Packard Omen 15t gaming notebook PC. It says that python2-blinker is missing. This is my terminal output:

Code:
~/.../VPN/Perfect-Privacy >>> cd ..                                         [1]
~/Downloads/VPN >>> ls                                                         
Perfect-Privacy  PKGBUILD
~/Downloads/VPN >>> makepkg -si                                               
/home/wellywu/Downloads/VPN/PKGBUILD: line 1: Bash:: command not found
==> Making package: perfect-privacy-vpn 1.3.14-1 (Wed 16 Sep 2020 08:34:09 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python2-blinker
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python2-blinker
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
~/Downloads/VPN >>>

How do I fix this so it will build the package and install it? Thanks.
 

8vn5acnmf5

Junior Member
I am using Manjaro 20.1 64-bit "Mikah" GNU/Linux on my late 2019 Computer Upgrade King Hewlett Packard Omen 15t gaming notebook PC. It says that python2-blinker is missing. This is my terminal output:

Code:
~/.../VPN/Perfect-Privacy >>> cd ..                                         [1]
~/Downloads/VPN >>> ls                                                        
Perfect-Privacy  PKGBUILD
~/Downloads/VPN >>> makepkg -si                                              
/home/wellywu/Downloads/VPN/PKGBUILD: line 1: Bash:: command not found
==> Making package: perfect-privacy-vpn 1.3.14-1 (Wed 16 Sep 2020 08:34:09 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python2-blinker
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python2-blinker
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
~/Downloads/VPN >>>

How do I fix this so it will build the package and install it? Thanks.

Perfect Privacy updated the VPN manager to python3. I've updated the PKGBUILD:
Code:
# Maintainer: 8vn5acnmf5
pkgname=perfect-privacy-vpn
pkgver=1.3.27
pkgrel=1
pkgdesc='perfect privacy client'
arch=('x86_64')
license=('custom')
url='https://www.perfect-privacy.com'
depends=('openvpn' 'python-requests' 'python-blinker' 'python-gobject' 'polkit' 'gtk3' 'pango' 'glib2' 'gdk-pixbuf2' 'libappindicator-gtk3')
optdepends=('resolvconf')

source=('https://www.perfect-privacy.com/downloads/perfect-privacy-vpn.deb')
sha256sums=('9eccf94ad15d4d1c82fa6c1156ca0343e6c29db97f964fd1dbc7865ef687c6b8')

package() {
    tar -xf data.tar.xz -C "${pkgdir}"
    
    # not needed
    rm -rf "${pkgdir}/etc"
    
    # fix polkit policy
    sed -i '15s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
    sed -i '16s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
}
 

wellywu

Freshly Joined Member
Thanks. I installed the Perfect-Privacy VPN Manager on Manjaro 20.1 64-bit "Mikah" GNU/Linux successfully, but it keeps saying that connecting failed whenever I try to connect to one of their VPN gateway servers. Can someone help me to get connected via their VPN Manager?
 

cocoman

Freshly Joined Member
I found this information from this ProtonVPN installation guide for Arch to be helpful so that I could install the resolvconf software package to get the Perfect-Privacy VPN Manager to connect to a VPN gateway server: https://rawsec.ml/en/archlinux-How-to-use-ProtonVPN/
What did you exactly do to get it to work? I installed openvpn-update-systemd-resolved from the AUR, but that did not have any effect. I would really appreciate your answer
 

wellywu

Freshly Joined Member
I too installed openvpn-update-systemd-resolved from the AUR and for me it allowed me to connect to different VPN gateway servers worldwide. I also installed openvpn-update-resolv-conf just in case. I had problems connecting to Perfect-Privacy VPN gateway servers without these necessary software packages installed.
 

8vn5acnmf5

Junior Member
Updated

Code:
# Maintainer: 8vn5acnmf5
pkgname=perfect-privacy-vpn
pkgver=1.3.17
pkgrel=1
pkgdesc='perfect privacy client'
arch=('x86_64')
license=('custom')
url='https://www.perfect-privacy.com'
depends=('openvpn' 'python-requests' 'python-blinker' 'python-gobject' 'polkit' 'gtk3' 'pango' 'glib2' 'gdk-pixbuf2' 'libappindicator-gtk3' 'resolvconf')
optdepends=('openvpn-update-systemd-resolved')

source=('https://www.perfect-privacy.com/downloads/perfect-privacy-vpn.deb')
sha256sums=('9eccf94ad15d4d1c82fa6c1156ca0343e6c29db97f964fd1dbc7865ef687c6b8')

package() {
    tar -xf data.tar.xz -C "${pkgdir}"
   
    # not needed
    rm -rf "${pkgdir}/etc"
   
    # fix polkit policy
    sed -i '15s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
    sed -i '16s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
}
 
Top