Last active
October 9, 2019 14:47
-
-
Save mcharytoniuk/e1ec18406b96e283a43bd2affba20bff to your computer and use it in GitHub Desktop.
crux port: protonvpn-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drwxr-xr-x root/root etc/ | |
drwxr-xr-x root/root etc/openvpn/ | |
-rwxr-xr-x root/root etc/openvpn/update-resolv-conf | |
drwxr-xr-x root/root usr/ | |
drwxr-xr-x root/root usr/bin/ | |
-rwxr-xr-x root/root usr/bin/protonvpn-cli | |
lrwxrwxrwx root/root usr/bin/pvpn -> /usr/bin/protonvpn-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29babaaa1b57eac1fb25b9d476f58f1a update-resolv-conf.sh | |
a21bb23178fc228df0be634636bd38bb v1.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: ProtonVPN Command-Line Tool for Linux and macOS. | |
# URL: https://github.com/ProtonVPN/protonvpn-cli | |
# Maintainer: lealaps, mateusz dot charytoniuk at newride dot tech | |
# Depends on: dialog openvpn | |
name=protonvpn-cli | |
version=1.1.2 | |
release=1 | |
source=( | |
https://codeload.github.com/ProtonVPN/${name}/tar.gz/v${version} | |
# update-resolv-conf.sh commit has must be synced with protonvpn-cli release version | |
https://raw.githubusercontent.com/ProtonVPN/scripts/d5d0be1a8e4cbc062aedb2e34f8cbe97184d233a/update-resolv-conf.sh | |
) | |
build() { | |
tar zxvf v${version} | |
# install protonvpn-cli itself | |
install -m 755 -D $SRC/$name-$version/protonvpn-cli.sh $PKG/usr/bin/protonvpn-cli | |
ln -s /usr/bin/protonvpn-cli $PKG/usr/bin/pvpn | |
# install update-resolv-conf.sh script | |
install -m 755 -D $SRC/update-resolv-conf.sh $PKG/etc/openvpn/update-resolv-conf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment