commit e5b26a13019d5f96456ef4a86d6f7c8ea84430b5 Author: erik Date: Mon May 19 16:57:24 2025 +0200 initial commit diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ac98a8e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Erik erik@pixeloasis.eu +pkgname=windscribe-cli-runit +pkgver=1.0.0 +pkgrel=1 +arch=('x86_64') +pkgdesc="Windscribe VPN service for runit" +url="https://windscribe.com" +license=('none') +depends=() +source=() +sha256sums=() # + +package() { + # create the runit dirs + install -d "$pkgdir"/etc/sv/windscribe-helper/log \ + "$pkgdir"/var/log/windscribe-helper + + # install the helper’s run scripts + install -m755 "$srcdir"/windscribe-helper/run \ + "$pkgdir"/etc/sv/windscribe-helper/run + install -m755 "$srcdir"/windscribe-helper/log/run \ + "$pkgdir"/etc/sv/windscribe-helper/log/run +} + diff --git a/README b/README new file mode 100644 index 0000000..76016e2 --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +# Runit service for windscribe tested on aritx linux + +## Installation +git clone https://git.pixeloasis.eu/Erik/windscribe-cli-runit.git +cd windscribe-cli-runit +makepkg -si +ln -s /etc/sv/windscribe-helper /run/runit/service/ + diff --git a/src/windscribe-helper/log/run b/src/windscribe-helper/log/run new file mode 100644 index 0000000..43c01c7 --- /dev/null +++ b/src/windscribe-helper/log/run @@ -0,0 +1,4 @@ +#!/bin/sh +# /etc/sv/windscribe-helper/log/run +exec svlogd -tt /var/log/windscribe-helper + diff --git a/src/windscribe-helper/run b/src/windscribe-helper/run new file mode 100644 index 0000000..38c5438 --- /dev/null +++ b/src/windscribe-helper/run @@ -0,0 +1,5 @@ +#!/bin/sh +# /etc/sv/windscribe-helper/run +exec 2>&1 # stderr→stdout +exec chpst -u root:root /opt/windscribe/helper +