summaryrefslogtreecommitdiffstats
path: root/network/windscribe
diff options
context:
space:
mode:
author Pouria Rezaei2022-03-02 08:20:41 +0100
committer Willy Sudiarto Raharjo2022-03-03 09:56:40 +0100
commitcdfdae2fbd03f7265e7806628aa655169e1f26cd (patch)
tree57841d359a99f587b7a8435c9b55fe161de506f5 /network/windscribe
parent7ed30a64cac4ca5f0989ffb2efadfbbdbed7cd6b (diff)
downloadslackbuilds-cdfdae2fbd03f7265e7806628aa655169e1f26cd.tar.gz
network/windscribe: Fix path
Move app folder under lib64. Signed-off-by: Pouria Rezaei <Pouria.rz@outlook.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/windscribe')
-rw-r--r--network/windscribe/path.diff41
-rw-r--r--network/windscribe/rc.windscribe2
-rw-r--r--network/windscribe/windscribe.SlackBuild7
3 files changed, 48 insertions, 2 deletions
diff --git a/network/windscribe/path.diff b/network/windscribe/path.diff
new file mode 100644
index 0000000000..aded7fb016
--- /dev/null
+++ b/network/windscribe/path.diff
@@ -0,0 +1,41 @@
+diff --git a/etc/systemd/system/windscribe-helper.service b/etc/systemd/system/windscribe-helper.service
+index 602d584..d9baeab 100644
+--- a/etc/systemd/system/windscribe-helper.service
++++ b/etc/systemd/system/windscribe-helper.service
+@@ -5,7 +5,7 @@ Wants=network-pre.target
+
+ [Service]
+ Type=simple
+-ExecStart=/usr/local/windscribe/helper
++ExecStart=/usr/lib64/windscribe/helper
+
+ [Install]
+ WantedBy=multi-user.target
+\ No newline at end of file
+diff --git a/usr/polkit-1/actions/com.windscribe.authhelper.policy b/usr/polkit-1/actions/com.windscribe.authhelper.policy
+index 4d81580..301fb8d 100644
+--- a/usr/polkit-1/actions/com.windscribe.authhelper.policy
++++ b/usr/polkit-1/actions/com.windscribe.authhelper.policy
+@@ -11,7 +11,7 @@
+ <allow_inactive>auth_admin_keep</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+- <annotate key="org.freedesktop.policykit.exec.path">/usr/local/windscribe/windscribe-authhelper</annotate>
++ <annotate key="org.freedesktop.policykit.exec.path">/usr/lib64/windscribe/windscribe-authhelper</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+ </policyconfig>
+diff --git a/usr/share/applications/windscribe.desktop b/usr/share/applications/windscribe.desktop
+index 8118766..731074b 100644
+--- a/usr/share/applications/windscribe.desktop
++++ b/usr/share/applications/windscribe.desktop
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Type=Application
+ Terminal=false
+-Exec=/usr/local/windscribe/Windscribe %F
++Exec=/usr/lib64/windscribe/Windscribe %F
+ Name=Windscribe
+ Icon=windscribe
+ Categories=Utility;Security
+\ No newline at end of file
diff --git a/network/windscribe/rc.windscribe b/network/windscribe/rc.windscribe
index a05aee131d..ac5a403403 100644
--- a/network/windscribe/rc.windscribe
+++ b/network/windscribe/rc.windscribe
@@ -4,7 +4,7 @@
PRGNAM=helper
PID=/var/run/$PRGNAM.pid
-DAEMON=/usr/local/windscribe/helper
+DAEMON=/usr/lib64/windscribe/helper
#
diff --git a/network/windscribe/windscribe.SlackBuild b/network/windscribe/windscribe.SlackBuild
index 1d52e1798a..a515980daa 100644
--- a/network/windscribe/windscribe.SlackBuild
+++ b/network/windscribe/windscribe.SlackBuild
@@ -68,9 +68,14 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
+
cd $PRGNAM-$VERSION
rpm2cpio $CWD/${PRGNAM}_${VERSION}_beta_${ARCH}.rpm | cpio -idmv
-rm -fR etc/{systemd,windscribe/update-systemd-resolved}
+mkdir -p usr/lib64
+mv usr/local/$PRGNAM usr/lib64/
+patch -p1 < $CWD/path.diff
+rm -fR etc/{systemd,windscribe/update-systemd-resolved} usr/local
+
mv * $PKG/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION