aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 9b9cc414ba4dafb4ef78fba6f0393b93e14d8714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Windscribe for OpenRC

Make windscribe linux client use openrc instead of systemd.

This downloads the upstream release, removes systemd, and then puts these:

- `/etc/init.d/windscribe-helper` - openrc windscribe helper daemon's service
- `/opt/windscribe/systemctl` - translates systemd calls and such to openrc
- `/usr/bin/windscribe-cli` - symlink to CLI binary

Upon install, the package also creates the `windscribe` user and group, enables and
starts `windscribe-helper` at default priority, and sets the proper group id on the
GUI binary so it can talk to the helper.

## Install

Install `base-devel` and sudo if not already installed.

```bash
git clone <this-repo>
cd windscribe-openrc
makepkg -si # interacts with pacman to fix dependencies, permission, etc.
```

## Usage

```bash
rc-service windscribe-helper status   # check the helper daemon
Windscribe                            # start the GUI
windscribe-cli login                  # log into the CLI
windscribe-cli connect                # connect using the CLI
```

The helper auto-starts at boot once enabled at `default` runlevel.

## Upgrade

The upstream version is pinned by `pkgver` and the `sha1sums` in PKGBUILD,
so both must be updated together for a new release:

```bash
# edit pkgver= in PKGBUILD, then refresh the checksum
updpkgsums
makepkg -si
```

## Uninstall

```bash
sudo pacman -Rns windscribe-openrc
```

Removal stops the helper, removes it from runlevel, resets MAC addresses the
helper changed, deletes the `windscribe` user, group, and configuration
directories.

## And

- systemctl "shim" is only symlinked into `/usr/local/bin` when no real systemctl
  exists on system.
- `options=('!strip')` is intentional as the upstream bin is already stripped
  and stripping it again will break it.